Excel If function

konquistador

New Member
Joined
Oct 23, 2007
Messages
21
hi gurus, How to write a forumula which returns TRUE or FALSE based on a condition

My condition is:

If a cell say A2 = "red" or "Green" or "Yellow" then TRUE else FALSE

I did not find any Inlist kind of function in Excel....any ideas?


Thanks
 

Some videos you may like

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

jardenp

Active Member
Joined
May 12, 2009
Messages
367
Are these fill/font colors or do the cells contain the words "Red", "Green", or "Yellow"? And do you want to use this in another formula? Is that why you want to return TRUE or FALSE? If so, which formula?
 

ljungren13

Board Regular
Joined
Jun 4, 2010
Messages
195
If your referring the the value of the cell and not a fill color, try this for one criteria:

=A2="Red"

if you are looking for a list to work:

=OR(A2="red",A2="green",A2="yellow")
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,123,531
Messages
5,602,202
Members
414,513
Latest member
junbuggle

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
Top