Condtional format a rangeof cells based on the value of one cell.

Permagrin

New Member
Joined
Jul 1, 2009
Messages
12
Hello everyone.

I need to conditionally shade a range based on the value of single cell.

See Image:

rIzcPid.png


I need to shade g25:m30 based on the value of G28. (edit - was G26)

I have selected the entire block, went to conditional formatting and set up a formula based rule with =g28="QPM"

What is happening is only the upper left cell of the range is changed.

I've used conditional formatting many times but this one has me stumped and Google isn't being much help.

Im sure this is very simple.

Thanks!
 
Last edited:

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
You need to add $ to the cell reference. Conditional Formatting is smart, so if you have a multi-cell range, Excel will adjust your CF formula as if you were manually dragging it across/down the selected range.

Try this:

=$G$28="QPM"
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,987
Members
452,373
Latest member
TimReeks

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