Conditional Formatting of cells containing text

E

Elin

Hi!
In Excel 2003, I have a column looking like this:

CORP-SOP-0012
CORP-WI-0123
CORP-SOP-0034
CORP-WI-0165

How can I make all the cells beginning with "CORP-SOP" one colour and all
the cells beginning with "CORP-WI" another?
 
J

Jacob Skaria

1. Suppose the data is in Column A. Select Column A.

2. From menu Format>Conditional Formatting>

3. For Condition1>Select 'Formula Is' and enter the below formula
=FIND("CORP-WI",A1)

Click Format Button>Pattern and select your color (say Red)

4. Click on Add button.

5. For Condition2>Select 'Formula Is' and enter the below formula

=FIND("CORP-SOP",A1)

6. Hit OK

If this post helps click Yes
 
J

Joel

You need two conditions with each condition using FORMULA IS

=LEFT(A8,9)="CORP-SOP-"

=LEFT(A8,8)="CORP-WI-"
 
D

David Biddulph

Format/Conditional Formatting/ Formula Is (not cell value is)/
=LEFT(A2,8)="CORP-SOP" choose your first colour
Add/ Formula Is / =LEFT(A2,7)="CORP-WI" choose your second colour
 
E

Elin

Thank you for putting me on track, it did not exactly work. I had to use this
formula to make it work correctly:

=LEFT(A1;9)="CORP-SOP-"

But that was just a small matter of trial and error :)

Thanks!
Elin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top