If/Then Date Range

pjandshelly

Board Regular
Joined
Jan 25, 2017
Messages
61
Good morning Group,

I have a date column that may be causing the problem. Output for Date Column: AUG 18,2017@15:48:01. I am looking for an If/Then Statement that states if Date Range is between "Oct 01,2016@0000" and "Sep 30,2017@2359", then "FY17", if date range is greater than "Oct 01,2017@0000" then "FY18".

Any help is greatly appreciate.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
With A1 being the date you look for:
Code:
=IF(AND(A1>=DATE(2016,10,1),A1<DATE(2017,10,1)),FY17,IF(A1>=DATE(2017,10,1),FY18,"Date before 1/10/2016"))
 
Upvote 0
I get an error, When the first character is an equal or minus sign...

=IF(AND(c2>=DATE(2016,10,1),c2<<date(2017,10,1)),fy17,if(a1>=DATE(2017,09,30),FY18,FY17))

I get the same error with your formula.
</date(2017,10,1)),fy17,if(a1>
 
Upvote 0
That is because it is not a date anymore. If you put =1/1/12018, it becomes a division and negative date is impossible.
 
Upvote 0

Forum statistics

Threads
1,223,907
Messages
6,175,301
Members
452,633
Latest member
DougMo

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