Conditional Formatting

deck-b

New Member
Joined
Aug 1, 2013
Messages
19
Hi All

Need some help with a conditional formatting problem

I want to format a row of cells based on the value of the cell beneath it, eg. highlight in green if value in the cell is greater than the cell beneath it, and highlight in red if the value is less than the cell beneath it.
So, cell value < D$28, Format is Red, Applies to $D$27:$Z$27. <d$28 $D$27:$D$60
This work fine in column D, but column E,F,G etc are reading the value from cell D28 and not moving across to E28, F28 etc. Is there an easy way of changing this without having to manually change each cell?

Thanks in advance
Declan</d$28>
 
Last edited:

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
If you highlight the whole range you want to apply it to, D27:Z27, and then write the formula (using the Formula option) as it pertains to the first cell in your selection, Excel is smart enough to adjust it for all the other cells.

So, I would use the formulas:
Code:
=D$27 > D$28
and
Code:
=D$27 < D$28

Note: If you view the formulas in the other cells after you do this, they will still show the formula for the first cell, but rest assured it is being calculated properly for the other ones.
 
Upvote 0
You are welcome!
Glad I could help!:)
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

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