Simple conditional formula

bugalabuga

New Member
Joined
Jan 21, 2015
Messages
18
Losing my mind...I have done this so many times...failing now I am...

Two columns I would like to compare. Green if less. Red if more.

Trying:

Conditional Formatting, Use Formula (Highlighting all the cells in column E before I begin the process)
Formula:
=$E2>$D2 (and applying the format I would like to see if this is true)

Nothing...

If E2 is > than D2, Red. If E2 is < D2, Green.

No matter how many ways I enter it...no luck (=$E$2>$D$2, Format)...tried just those two cells...a range...etc etc...where is my error?
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
This is assuming the information is in columns A and B instead.

Conditional Formatting, new rule, use a formula...

=A1=MAX($A1,$B1) -- then select Green fill

Conditional Formatting, new rule, use a formula...

=A1=MIN($A1,$B1) -- then select Red fill

 
Upvote 0
This is assuming the information is in columns A and B instead.

Conditional Formatting, new rule, use a formula...

=A1=MAX($A1,$B1) -- then select Green fill

Conditional Formatting, new rule, use a formula...

=A1=MIN($A1,$B1) -- then select Red fill


This is turning all of the selected range green even though the numbers are equal right now?
 
Upvote 0
Conditional Formatting, Use Formula (Highlighting all the cells in column E before I begin the process)
Formula:
=$E2>$D2 (and applying the format I would like to see if this is true)

Nothing...
When applying that formula, you need to ensure that cell E2 is the active cell. If you have highlighted the whole column, E1 will be the active cell. Is that the issue?
 
Upvote 0
When applying that formula, you need to ensure that cell E2 is the active cell. If you have highlighted the whole column, E1 will be the active cell. Is that the issue?

I am only highlighting the cells in which I wish to use that formula. However, even when I try it with only E2, it still does not work. =(

Appreciate your help.
 
Upvote 0
Sorry but it works fine for me, the below was produced with the range E2:E14 selected (E2 being the active cell) when typing in and applying the formula =$E2>$D2 and $E2<$D2 .

Excel Workbook
DE
255
351
411
555
643
735
841
954
1022
1131
1213
1345
1454
Sheet3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E21. / Formula is =$E2>$D2Abc
E22. / Formula is =$E2<$D2Abc
E31. / Formula is =$E2>$D2Abc
E32. / Formula is =$E2<$D2Abc
E41. / Formula is =$E2>$D2Abc
E42. / Formula is =$E2<$D2Abc
 
Last edited:
Upvote 0
even when I try it with only E2, it still does not work.
Perhaps you have a mixture of text and numbers?

If it isn't working with row 2, what do these formulas return if you put them in vacant cells?
=ISNUMBER(D2)
=ISNUMBER(E2)
 
Upvote 0

Forum statistics

Threads
1,215,619
Messages
6,125,873
Members
449,267
Latest member
ajaykosuri

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