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.
 

Some videos you may like

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

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,760
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,760
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")
 

Watch MrExcel Video

Forum statistics

Threads
1,109,366
Messages
5,528,269
Members
409,813
Latest member
robyrux

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top