简体   繁体   中英

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. And I don't want any code in 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; excel will enter in edit mode for the formula cell, now press Ctrl+Shift+ Enter

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM