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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

NBVC

Well-known Member
Joined
Aug 31, 2005
Messages
5,828
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.
 

jimrward

Well-known Member
Joined
Feb 24, 2003
Messages
1,792
Office Version
  1. 2016
  2. 2013
  3. 2011
  4. 2010
  5. 2007
Platform
  1. Windows
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
 

tanny81

Board Regular
Joined
Mar 2, 2006
Messages
175
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?
 

jimrward

Well-known Member
Joined
Feb 24, 2003
Messages
1,792
Office Version
  1. 2016
  2. 2013
  3. 2011
  4. 2010
  5. 2007
Platform
  1. Windows
all you need to do is extend your previous formula to

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

Forum statistics

Threads
1,141,139
Messages
5,704,508
Members
421,353
Latest member
jekoxien15

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
Top