conditional formating to compare columns

hitch_hiker

Active Member
Joined
Feb 21, 2012
Messages
294
I am trying to set up conditional formating to colour the cell if for example L10 < E10, but only if data exists in E10 for the entire column(s)

the perfect world would be if L10 < E10 only if G10 exists, but that might just be pushing a bit too much
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
I am trying to set up conditional formating to colour the cell if for example L10 < E10, but only if data exists in E10 for the entire column(s)

the perfect world would be if L10 < E10 only if G10 exists, but that might just be pushing a bit too much
Not real clear.

Can you post some sample data and tell us what result you expect?

What version of Excel are you using?
 
Upvote 0
Thanks T. Valko,

sorry about the delay in responding, see below

column E | column G | column L
10 | 12.5 | 9.38
9.5 | 12.5 | 11
| |
29 | | 12
17.5 | 15 | 18
| |
6.5 | 38 | 4.8
13.5 | 7 | 12

this would be the prefered format


10 | 12.5 | 9.38
9.5 | 12.5 | 11
| |
29 | |
12
17.5 | 15 | 18
| |
6.5 | 38 |
4.8
13.5 | 7 | 12


this would be suitable

My appologies for not using html maker, but I'm not at my computer



 
Upvote 0
Hi

Select the range in column L. If the first cell the selection is in row 10, use this formula in Conditional Formatting
=AND(G10<>"",L10 less than E10)<e1)<e1)
<e1)<e10)


Replace "less than" with <
(parts of the formula disappeared after L10 when I used < in this post. Strange :eek:)

And choose the format of the cell when the conditions is TRUE

Vidar</e1)<e10)
</e1)<e1)
<e10)<e1)<e1)
<e10)<e1)<e1)
<e10) <="" strong=""></e10)><e10) <="" strong=""><e1)<e1)
</e1)<e1)
</e10)>
</e10)<e1)<e1)
</e10)<e1)<e1)
 
Last edited:
Upvote 0
Thanks Vidar,
I will have to try it tomorrow, i left my laptop at work, I really have only done system conditions up till now, the range in column L will be L:L so obviously I make the formula L1 etc
 
Upvote 0
Hi

Select the range in column L. If the first cell the selection is in row 10, use this formula in Conditional Formatting
=AND(G10<>"",L10 less than E10)<E1)<E1)
<E1)<E10)


Replace "less than" with <
(parts of the formula disappeared after L10 when I used < in this post. Strange :eek:)

And choose the format of the cell when the conditions is TRUE

Vidar</E1)<E10)
</E1)<E1)
<E10)<E1)<E1)
<E10)<E1)<E1)
<E10) strong="" <=""></E10)><E10) strong="" <=""><E1)<E1)
</E1)<E1)
</E10)>
</E10)<E1)<E1)
</E10)<E1)<E1)[ QUOTE]

If L10 can be an empty cell then you might want to add another test:

=AND(G10<>"",L10<>"",L10 < E10)
 
Upvote 0
thanks Biff,
there certainly will be empty cells in L , so thanks for the heads up, didn't think about that
 
Upvote 0

Forum statistics

Threads
1,217,382
Messages
6,136,231
Members
450,000
Latest member
jgp19

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