conditional formatting based on other cell (over multiple cells)

Benjaminmin

Board Regular
Joined
Nov 20, 2009
Messages
116
Hi,

I have a list of names with a different count next to each of them looking like this:


a: 10
b: 5
c: 52
d: 8
e: 14

Ive applied conditional formatting for the 2nd column (with the numbers) so:

0-10 = shaded green
11-50 = shaded yellow
51+ = shaded red

That was no problem. But now I would like the names in the 1st column to get the same colour as their corresponding number.

I've tried conditional formatting with a "formula is= B1>10" etc. But that doesnt work since that only accounts for one cell, how do I make it dynamic so each cell takes its corresponding right cells color?

Thank you very much in advance!
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
If you copy the conditional formatting down the reference to B1 will adjust relatively (provided that it doesn't contain any $ signs).
 
Upvote 0
A small problem (sorry for bothering you again), but my condition for the values between 10 and 51 wont color at all.

Shouldnt =51>$J2&AND&$J2>10 work for that?
 
Upvote 0
Thanks for the note about the $ Andrew, I was having the same problem and didn't realise that taking out the $'s could fix it.
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,294
Members
449,077
Latest member
Rkmenon

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
Back
Top