conditional formatting 2 formulas

thegrump179

New Member
Joined
Jun 2, 2011
Messages
4
Sorry if I posted this before, but I can not find it.
I have been using two formulas that work well, but if I put them in the same column the latter does not seem to work.
=AND(NOT(ISERR(SEARCH("TP",E1))),F1="")
and
=OR(NOT(ISERR(SEARCH("TP",E3))),F3 <> "")
aim is to highlight a number in column E, that starts with a alphanumeric TP, or LP. ie: TP45678 ( but not CP or PC ) until a number is placed in the corresponding row, column F. That is the first formula shown above and it works well. BUT I would also like it to highlight the number in column E, if the number has a leading zero after the alphanumeric. ie: TP07654. or LP00654, as I need to remove this zero ( additionally it could auto remove the leading zeros ). After cut and pasting thousands of numbers every day from one screen to another the leading zero is hard to pickup. I am using the second formula in column N and it is working well. Regards Ross
 

Excel Facts

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

Forum statistics

Threads
1,224,551
Messages
6,179,472
Members
452,915
Latest member
hannnahheileen

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