Conditional formatting

JHelmore

New Member
Joined
May 10, 2019
Messages
4
I have 2 sets of dates, depart and return dates I would like both cells to change colour when both dates are in the future.
So the depart date may have past but the return date is still in the future so would like both cell filled in until both dates have past.

Hope this makes sense
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Welcome to the Board!

Let's say that those two dates are in cells A1 and B1.
Then select both, and go to Conditional Formatting, choose the Formula option, and enter this formula:
Code:
=AND($A1>TODAY(),$B1>TODAY())
and choose your formatting color option
 
Upvote 0
Hi Joe4

Many thanks for your reply
your formula this works if both dates are in the future but if the depart date has past but the return hasn't it doesn't work

Jackie
 
Upvote 0
Try:

=$B1>TODAY()

Applies to:
=$A$1:$B$1
 
Last edited:
Upvote 0
I have 2 sets of dates, depart and return dates I would like both cells to change colour when both dates are in the future.

Joe's solution provides exactly this, what are you expecting to see if:
A) Departure date is in the past & return date is in the future
B) Both dates are in the past
 
Upvote 0
Yes, this is what I programmed to:
I have 2 sets of dates, depart and return dates I would like both cells to change colour when both dates are in the future.

If you want BOTH to be highlighted if just column B is in the future (so it doesn't matter what is in column A), then use DanteAmor's formula.
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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