[英]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.