Conditional Formatting override

thegrump179

New Member
Joined
Jun 2, 2011
Messages
4
I am trying to come up with a way of overriding a conditional Format in column F.
I am using =NOT(ISERR(SEARCH("TP",E1))) to highlight column F, if the figure in column E starts with TP ie TP25478. The promt is to remind me to put a number in column F. So if I put a number into the highlighted Cell (in F) I want the highlight to be removed.
There are other prefexes such as LP SP RP that I could also use but TP is the main problem because 99% of the time it is number 1 and I keep forgetting.

Thanks Ross
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Maybe:

=OR(NOT(ISERR(SEARCH("TP",E1))),F1 <> "")

?
 
Upvote 0
Sorry Glen. It doesn't seem to work. It highlights the heading in F1, no mater where in column E you put the TP

Regards Ross
 
Upvote 0
Sorry, I got my logic the wrong way round. Try this:

=AND(NOT(ISERR(SEARCH("TP",E1))),F1="")
 
Upvote 0
Glad the OP got the issue sorted...

Just a tip...

Most of the time, you don't need to test for errors in conditional formatting.
Because CF considers errors as FALSE.
Or more accurately, it considers errors NOT TRUE..
Also, search returns a number greater than 0 when the string is found.
Any # Greater than 0 is considered TRUE by conditional formatting.

So you can remove the Not(Iserr, and just use Search by itself.

=AND(SEARCH("TP",E1),F1="")


Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,134
Members
452,890
Latest member
Nikhil Ramesh

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