conditional formatting

tanny81

Board Regular
Joined
Mar 2, 2006
Messages
175
Hi,

I am hoping somebody can help with the following. Essentially i want to use conditional formatting to highlight text where the cell value begins IE. If anybody could point me in the right direction with this it would be greatly appreciated.

Thanks.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Select your range

Go to Format|Conditional Formatting

Choose Formula is from 1st drop down

enter =Left(A1,2)="IE" (where A1 is the top left-most cell in your selected range)

Click Format and choose your color scheme

Click Ok

Click Ok.
 
Upvote 0
firstly select the first cell you wish to apply this formatting to, select conditional formatting and select for condition 1 "formula is" and type the following assuming cell A1,

=LEFT(A3,2)="IE"

then select the formatting you require

you can then use the format painter, paint brush icon to apply this to other cells, select say A1, double click on brush, then apply to all other cells, and click on brush when finished
 
Upvote 0
Hi,

Thanks for the replies, in addtion to the above, is it also possible to amend the formula so that if for example cell E1 contained the word YES it wouldn't apply the formatting, but if E1 contained any other word it would still be applied?
 
Upvote 0
all you need to do is extend your previous formula to

=AND(LEFT(A1,2)="IE",E1<>"YES")
 
Upvote 0

Forum statistics

Threads
1,213,551
Messages
6,114,273
Members
448,559
Latest member
MrPJ_Harper

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