Highlight the greater date of two dates

theaveragenoob

New Member
Joined
Jun 23, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Web
I have two columns (a and b) both populated with dates down to the 10th row. How would I compare column a to column b (for the entire column so, a2 to b2, a3 to b3, etc) and then highlight which of the cells in those 2 cells pairs is the more recent date? I was able to figure out the MAX formula but while it was generating a 3rd row with the correct answer I have been unable to figure out the highlighting and would prefer to just highlight the greater date without generating another column of data (if possible).
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
you can use conditional formatting like this

Book1
AB
108/06/202215/06/2022
212/07/202203/07/2022
308/07/202202/06/2022
417/06/202201/07/2022
519/06/202205/06/2022
619/06/202222/06/2022
702/07/202230/06/2022
814/06/202205/07/2022
905/07/202210/06/2022
1027/06/202208/06/2022
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B1:B10Expression=B1>A1textNO
A1:A10Expression=A1>B1textNO
 
Upvote 0
use this in A1, in conditional formatting/use a formula:
Code:
=A1=MAX($A1:$B1)
apply to whole range: A1:B10
1655974185154.png
 
Upvote 0
Solution

Forum statistics

Threads
1,214,832
Messages
6,121,843
Members
449,051
Latest member
excelquestion515

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