Color Entire Rows depending on Text in Column A

R

Rashid Khan

Hello All,

I am using Office 2000 and have the following problem

A B C D .... .... ....
Fit Sam William etc ....
Reject Harry Jones etc ....
Active Bob Howe etc. ...

....
.....
Fit ... ... .... .....
Fit
Active
Active
Reject
etc

I wish to put a commandbutton on the worksheet when clicked all Rows
depending upon the text in Column A (eg Fit should be green color, Reject
should be Red color, and Active should be Yellow color )

I tried conditional formatting but it just changes the cell and not the
entire row.. I wish to change the color of the entire row.
Can somebody please help me out

TIA

Rashid
 
J

JE McGimpsey

Use CF:

Select the entire Sheet (or just the entire range you want to have
colored). With Cell A1 active, choose Format/Conditional Formatting and
enter

CF1: Formula is =$A1="Fit"
Format1: Green

CF2: Formula is =$A1="Reject"
Format2: Red

CF3: Formula is =$A1="Active"
Format3 Yellow

The key is to keep column A absolute (using the $) while allowing the
row to be relative.
 
B

Bob Phillips

Conditional formatting will work if you select the whole row and use a
formula like

=$A1="Reject"

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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