HOW CAN I APPLY CONDITIONAL FORMATTING BASED TO AN ENTIRE ROW?

G

Guest

I have a reasonably large spreadsheet (about 2000 rows) and i need to format
each row based on the value of a cell in a specific column.

For example, if there is a "B" in Cell I20, I need to fill the whole of Row
20 with the colour green. I then need to apply this to every row.

Similarly if there is a different letter, I need to make the row a different
colour...

All help gratefully appreciated!

J
 
G

Guest

Assuming you have three or fewer conditions, then conditional formatting can
handle this. In A20, for example, set the first CF to read 'formula is'
=$I20="B".
You can fill this across and down. Additional conditions can be applied
just like normal.
 
T

Tom Ogilvy

If you have only 3 letters to react to, you can do this with conditional
formatting.

Select your row with the activecell in column A for instance.

in conditional formatting, change Cell Value is to formula is, then enter a
formula like

So assume we have selected rows 1 to 100 and the active Cell is A1.

=A1=$I1

then click the format button and choose the pattern.
 
G

Guest

Fantastic! I knew it had to be something simple.. If I have more conditions,
do you have any ideas?

Also, I know this odd but is there a way of doing this in reverse?... i.e.
if it is green insert a "b"?

J
 
J

Jim

bpeltzer said:
Assuming you have three or fewer conditions, then conditional formatting can
handle this. In A20, for example, set the first CF to read 'formula is'
=$I20="B".
You can fill this across and down. Additional conditions can be applied
just like normal.
 

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