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
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
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?
 
Upvote 0
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:
Upvote 0

Forum statistics

Threads
1,215,442
Messages
6,124,886
Members
449,194
Latest member
ronnyf85

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