Apr 09 2024 08:24 AM
Hi,
I have an IF equation with a Yes/No Response [=IF(C3="Yes","Buy Cupcakes",IF(C3="No","Buy Brownies")). This works fine. What I am now trying to do is have an explanation in the next column, kind of like if someone selects yes in C3, then it would display buy cupcakes which is fine. I then want another If equation that says "Yum" for the cupcakes but leaves the cell blank if they select No, what I am getting with this a return of FALSE. This was the equation I used:
=IF(C3="Yes","Yum").
I think I need some sort of condition for no that leaves the cell blank. How do I do that?
Apr 09 2024 08:35 AM
If you omit the false argument, Excel will default to showing FALSE:
To show a blank instead, you could use:
=IF(C3="Yes","Yum","")
Apr 09 2024 08:48 AM
Apr 09 2024 10:46 AM
You can arrange it as an IF-OR:
=IF(OR(C6="Yes","Explanation not required",C6="Not applicable"),"Explanation not required","")
Apr 09 2024 12:10 PM
As variant
=SWITCH(
TRUE,
OR( C6 = {"Yes","Not applicable"} ), "Explanation not required",
"")