Multiple IF/OR Statements in Excel

Sundance_Kid

Board Regular
Joined
Sep 2, 2017
Messages
128
Office Version
  1. 365
Platform
  1. Windows
Hey Folks

Just need a small bit of help with an IF & OR formula.

I am trying to say IF cell A1 is equal to Blue or Green then the answer is Home, if cell A1 is equal to Red then the answer is Away, otherwise I want to insert the word Check into the cell if A1 does not say Blue, Green or Red.

I could do it by doing multiple IF statements, like if A1 = Blue then Home, if A1 = Green then Home, if A1 = Red then Away but I am trying to see can I incorporate the OR function as Blue or Green can both return the same answer. Or just see is there a more efficient way to write a formula.

Thanks
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
...as usual I'm too slow
=IF(OR(A1="Blue",A1="Green"),"Home",IF(A1="Red","Away","Check"))
 
Upvote 0
=IF(OR(UPPER(A1)="BLUE",UPPER(A1)="GREEN",UPPER(A1)="RED"),IF(OR(UPPER(A1)="BLUE",UPPER(A1)="GREEN"),"Home",IF(UPPER(A1)="RED","Away",)),"Check")
 
Upvote 0
=IF(OR(UPPER(A1)="BLUE",UPPER(A1)="GREEN",UPPER(A1)="RED"),IF(OR(UPPER(A1)="BLUE",UPPER(A1)="GREEN"),"Home",IF(UPPER(A1)="RED","Away",)),"Check")

If isn't case sensitive. The UPPER is unnecessary.
 
Upvote 0
=IF(OR(A1={"Blue","Green"}),"Home",IF(A1="Red","Away","Check"))
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,331
Members
449,077
Latest member
jmsotelo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top