Conditional Formatting For Multiple Strings of Text in One Cell

mongoruth

New Member
Joined
Oct 16, 2014
Messages
3
I'd like to use conditional formatting to shade a cell that contains, for example, "G8 Math 2". If it says, "G8 Math 3", I'd like it to be a different color. And, if it says, "G6 Math 2", yet another color. Some of my cells also contain additional text, such as a co-teacher's initials, and I want the rule to ignore any additional text in the cell. Basically, I want it to highlight different for each grade, and each class. There are three grades (G6, G7, G8), and four classes (1, 2, 3, 4). But also within a given cell would be the subject name and potentially other text.

Is this possible?

Thank you!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
How about
=AND(ISNUMBER(SEARCH("G8",J4)),ISNUMBER(SEARCH("1",J4)))

Change the J4 to match the first cell in the applies to range
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,310
Members
452,634
Latest member
cpostell

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