简体   繁体   English

Excel - IF 函数如何在不同单元格中返回多个值?

[英]Excel - How can IF function return multiple values in different cells?

This is what I want: If A1 = "Red", return "yes" in the current cell and "good" in A3.这就是我想要的:如果 A1 = "Red",则在当前单元格中返回 "yes",在 A3 中返回 "good"。 And I don't want any code in A3.而且我不想要 A3 中的任何代码。

You can use this formula:你可以使用这个公式:

=IF(A1="Red", {"yes","good"},"")

After entering the formula select the cell and extend the selection to its right side so that the cell with the formula and its adjacent right side cell is also selected输入公式后选择单元格并将选择范围扩展到其右侧,以便同时选择带有公式的单元格及其相邻的右侧单元格

Now press F2;现在按F2; excel will enter in edit mode for the formula cell, now press Ctrl+Shift+ Enter excel 将进入公式单元格的编辑模式,现在按 Ctrl+Shift+Enter

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用VBA在excel中的不同单元格中返回多个值 - return multiple values in different cells in excel using VBA 如果包含我正在比较的值的单元格,我如何在 Excel 工作表中返回最小值,这些值是由函数创建的 - How can I return a minimum value in excel work sheet if the cells containing the values I am comparing , the values were created by a function 在不同的单元格或列表中返回多个值 - Return multiple values in different cells or list Excel,如何将多个电子表格链接到具有更改值的单元格? - Excel, how can I link multiple spreadsheets to cells with changing values? 如何在Excel中测试两个不同单元格的值? - How to test the values of two different cells in excel? 如何在Excel中将具有相同值的多个单元格分组 - How to group multiple cells with the same values in Excel 如何将Excel中的多个值复制到其他单元格 - How to copy multiple values in Excel to other cells Excel:如何分析具有多个值的单元格? - Excel: How to analyze cells with multiple values? 根据excel中的2个条件返回多个不同的值 - return multiple different values based on 2 criteria in excel 比较Excel中具有随机值的多个单元格并返回条件输出的公式 - Formula for comparing multiple cells with random values in excel and return conditional output
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM