conditional formatting -

crave4excel

New Member
Joined
Feb 2, 2012
Messages
45
Hello!
I'm hoping someone can advise me how to create a condition format for the following:

If the text of a certain cell equals to "apple", or "oranges", then the cell would be highlighted yellow. I've tried to use the "Use a formula to determine which cells to format", but i can't seem to get the OR formula to work.

Thank you!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
use

or(cell="apples", cell="oranges")
where cell is the first cell in the range you are testing

What is the range of cells you want to conditional format and what is the cell

ie is it
A2 to A200
and the cell is in A2 onwards
 
Upvote 0
Excel Workbook
A
1apples
2oranges
3lemons
4fruit
5oranges
6lemons
7fruit
8apples
9oranges
10lemons
11oranges
12lemons
13fruit
14oranges
15lemons
16fruit
17apples
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A11. / Formula is =OR(A1="apples", A1="oranges")Abc
A21. / Formula is =OR(A1="apples", A1="oranges")Abc
A31. / Formula is =OR(A1="apples", A1="oranges")Abc
A41. / Formula is =OR(A1="apples", A1="oranges")Abc
A51. / Formula is =OR(A1="apples", A1="oranges")Abc
A61. / Formula is =OR(A1="apples", A1="oranges")Abc
A71. / Formula is =OR(A1="apples", A1="oranges")Abc
A81. / Formula is =OR(A1="apples", A1="oranges")Abc
A91. / Formula is =OR(A1="apples", A1="oranges")Abc
A101. / Formula is =OR(A1="apples", A1="oranges")Abc
A111. / Formula is =OR(A1="apples", A1="oranges")Abc
A121. / Formula is =OR(A1="apples", A1="oranges")Abc
A131. / Formula is =OR(A1="apples", A1="oranges")Abc
A141. / Formula is =OR(A1="apples", A1="oranges")Abc
A151. / Formula is =OR(A1="apples", A1="oranges")Abc
A161. / Formula is =OR(A1="apples", A1="oranges")Abc
A171. / Formula is =OR(A1="apples", A1="oranges")Abc
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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