Dummy question concerning dates

sapper

New Member
Joined
Aug 29, 2012
Messages
33
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Start Date
[/TD]
[TD]End Date
[/TD]
[TD]Today's Date
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]12 Sep 18
[/TD]
[TD]12 Nov 18
[/TD]
[TD]23 Jul 18
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]10 Jun 18
[/TD]
[TD]12 Nov 18
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

How do you write a formula if you have dates in threedifferent columns. I am trying to determine if the ‘Start Date’ is prior to ‘Today’sDate’ and before the ‘End Date’. The reverse is also a concern, if the ‘StartDate’ is after ‘Today’s Date’ and before the ‘End Date’.


I hope this understandable. Thanks in advance.

 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Assuming you wouldn't enter an End Date that's before the Start Date, in D2 and copy down:

Code:
=IF($C$2>B2,"Today is beyond End Date",IF(AND($C$2>=A2,$C$2<=B2),"today is between start and end dates",IF($C$2  <  A2,"today is before start date")))
  <a2,"today is="" before="" start="" date","today="" on="" the="" date")))
</a2,"today>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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