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

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
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,223,888
Messages
6,175,219
Members
452,620
Latest member
dsubash

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