Compare value in last cell of column to another cell in other column

skyport

Active Member
Joined
Aug 3, 2014
Messages
374
How can I take a column that contains dates (column E) that continues to have more dates added and then have the last cell in that column (E) be filled with red using conditional formatting, ONLY if the value of that last cell in Column E is less than the value I have in cell H1 otherwise, that last cell in E would stay normal with out change
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
1. Select Column E
2. Click Home - Conditional Formatting - New Rule
3. Click "Use a formula to determine which cells to format"
4. Enter this formula in the box below the words: "Format Values where this format is true"
Code:
=AND(E1<>"",E2="",E1<H$1)
5. Click the Format icon, go to Fill tab and click on a red color, then OK, OK
 
Upvote 0
thanks so much for helping me. I tried the formula but it fills the last cell in column E regardless of whether it's value is less or greater than cell H1. What I need it to do is only fill with color if the last cell in E is less in value than the value that sits in cell H1 or H1 greater than the value in last cell of column E.
 
Upvote 0
The last part of the formula got cut off and I didn't catch it when I posted. Here's the complete formula:
=AND(E1<>"",E2="",E1<h$1)<h$1)[ code]<="" html=""><h$1)< h$1)<h$1)[=""> < H$1)</h$1)<></h$1)<h$1)[>
 
Upvote 0
Perfectly well done - works like a charm now. thanks so very much. this forum has been so great and responders like yourself are of great value to the community. We are so grateful.
 
Upvote 0

Forum statistics

Threads
1,216,095
Messages
6,128,794
Members
449,468
Latest member
AGreen17

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