Conditional formating

TMac52

New Member
Joined
Jan 30, 2012
Messages
17
I have a cell with a string of text. I need to select 3 words of that text and format it per my selection. Example: bolt, stud, 1/2", A193, B7, ATS.
Pick out bolt, stud, 1/2 & B7 and format these cells red letters & yellow fill.
The size & grade (B7) will change as needed per size & grade needed.
 
Good morning JoeMo. Just getting back to this.
I entered the formula attached and I'm pretty sure it's exactly as yours - maybe I'm not seeing something? Is the 1/2 piece throwing it off?
=AND(ISNUMBER(SEARCH("Bolt",C2)),ISNUMBER(SEARCH("stud",C2)),ISNUMBER(SEARCH("1/2",C2)),ISNUMBER(SEARCH("B7",C2)))
 
Upvote 0

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Hello again JoeMo. I don't know what I did, but it is working as you said now. The only thing I can figure is when I closed my file without saving, it cleared out something that was holding on to previous formatting. Anyway, thanks to you again. I really appreciate your support! Hope you have a great day.
 
Upvote 0
=AND(ISNUMBER(SEARCH("Bolt",C2)),ISNUMBER(SEARCH("stud",C2)),ISNUMBER(SEARCH("1/2",C2)),ISNUMBER(SEARCH("B7",C2)))
If that CF formula is doing what you want, then I believe this considerably shorter one will too.

=SEARCH("Bolt",C2)+SEARCH("stud",C2)+SEARCH("1/2",C2)+SEARCH("B7",C2)
 
Upvote 0
Hello again JoeMo. I don't know what I did, but it is working as you said now. The only thing I can figure is when I closed my file without saving, it cleared out something that was holding on to previous formatting. Anyway, thanks to you again. I really appreciate your support! Hope you have a great day.
Glad you got it sorted out.
 
Upvote 0

Forum statistics

Threads
1,214,940
Messages
6,122,356
Members
449,080
Latest member
Armadillos

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