SaraWitch
Active Member
- Joined
- Sep 29, 2015
- Messages
- 377
- Office Version
- 365
- Platform
- Windows
Hello peeps.
I am trying to work out the number of nights in the fiscal year between two dates (a start and an end date), as well as having the total number of days overall (i.e., if the start date precedes a date in April). I also want it to calculate to today as the end date if the end date is blank.
I can calculate the overall total number of days, no problem (
), but I'm having difficulty in calculating the fiscal number of days.
My start date is in A2, my end date is in B2 and my fiscal year date in C1. The formula I'm using (which isn't working!) is:
Any help would be gratefully received...
I am trying to work out the number of nights in the fiscal year between two dates (a start and an end date), as well as having the total number of days overall (i.e., if the start date precedes a date in April). I also want it to calculate to today as the end date if the end date is blank.
I can calculate the overall total number of days, no problem (
Excel Formula:
=IF(A2="","",IF(B2>0,B2-A2,TODAY()-B2))
My start date is in A2, my end date is in B2 and my fiscal year date in C1. The formula I'm using (which isn't working!) is:
Excel Formula:
=IF(A2="","",IF(A2<C1,IF(B2>0,B2-C1,TODAY()-C1)))
Any help would be gratefully received...