Formatting colour of cell based on specific text

fredderf

New Member
Joined
Mar 25, 2021
Messages
2
Hello,

I am trying to work out how to change the colour of a cell based on specific textual content.

The 'logic' that I want is:

If cell I1 is equal to "5E" or "5D" or "5C" or "5B" or "5A" then colour cell I1 red

[I have already combined the content of cells E1 and G1 (in the attached image) into cell I1 using =E1&G1]

Though I can express this in words I cannot figure out how to do it in Excel,

Thanks, in advance, for your help.

Fred
 

Attachments

  • image_2021-03-25_105458.png
    image_2021-03-25_105458.png
    1.8 KB · Views: 7

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
this would be conditional formatting with the formula
Excel Formula:
=OR($I$1="5E",$I$1="5D",$I$1="5C",$I$1="5B",$I$1="5A")
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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