Conditional Formatting Multiple Text

bullcreel

Board Regular
Joined
Aug 25, 2016
Messages
148
I have a worksheet and in the worksheet i want to change multiple texts into one formatting. For example: I have g1c, g5c, f9x, f8x, etc. and want to use only one conditional formatting to highlight those text as "red".

Jim
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Assuming your data starts at A2.
Put the following formula in conditional formatting.
Choose the format you want.

Excel Formula:
=SEARCH("|"&A2&"|","|g1c|g5c|f9x|f8x|etc|")
 
Upvote 0
It highlighted other text I didnt want it to highlight. It didnt highlight the text that I put into the formula.

I have a full worksheet that I am trying to conditional format.
 
Upvote 0
Then change to A1

VBA Code:
=SEARCH("|"&A1&"|","|g1c|g5c|f9x|f8x|etc|")

Applies to:
=$1:$1048576
 
Upvote 0
Thank You so much. I got it to work and added a bunch more text to the formula. This is going to save me a ton of work.
 
Upvote 0
Or in another sheet you can put the list of values, let's say from A1 to A9, with that range of cells you create a named range with the name "xvalues" and use the following formula:

Excel Formula:
=SUMPRODUCT(--ISNUMBER(SEARCH("|"&A1&"|","|"&xvalues&"|")))


Named Ranges Name: xvalues
Refers To Cells: =Sheet3!$A$1:$A$9F4
 
Upvote 0
Or in another sheet you can put the list of values, let's say from A1 to A9, with that range of cells you create a named range with the name "xvalues" and use the following formula:

Excel Formula:
=SUMPRODUCT(--ISNUMBER(SEARCH("|"&A1&"|","|"&xvalues&"|")))

A!
Named Ranges Name: xvalues
Refers To Cells: =Sheet3!$A$1:$A$9F4
I may try that...however, I thought it was working and when I went back to the worksheet, it had screwed it all up with different colors in other rows and it had deleted some data...I probably screwed something up. I am going to try and use the list.

Maybe the problem is that i am only wanting the conditional formatting to work on 18 sections and not the whole worksheet. Wondering by putting in A1 for the whole sheet it messed everything else up.
 
Upvote 0
Also, I just found out that it doesnt like "format painter" to allow this conditional formatting onto another sheet. It messed up the next sheet. Glad I am using a test worksheet now...lo
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,701
Members
448,980
Latest member
CarlosWin

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