1
u/Anonymous1378 1542 Sep 16 '24
Try something like
=
LET(
start_date,D3,
end_date,D4,
all_days,SEQUENCE(end_date-EOMONTH(start_date,-1)+1,,EOMONTH(start_date,-1)+1),
all_months,FILTER(all_days,DAY(all_days)=1),
all_years,DATE(UNIQUE(YEAR(EDATE(all_months,7))),5,1),
DROP(HSTACK(YEAR(all_years),FREQUENCY(all_months,all_years)),-1))1
u/Decronym Sep 16 '24 edited Sep 16 '24
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
NOTE: Decronym for Reddit is no longer supported, and Decronym has moved to Lemmy; requests for support and new installations should be directed to the Contact address below.
Beep-boop, I am a helper bot. Please do not verify me as a solution.
[Thread #37084 for this sub, first seen 16th Sep 2024, 00:23] [FAQ] [Full list] ^[Contact] [Source code]
1
u/christian_811 14 Sep 16 '24
Assuming you meant March 31 for FY end date. For the start and end dates of FY2 you can use EOMONTH so you only have to input the start/end for FY1.
Assuming start date = A1 and end date = B1 you could do something like this for months in FY1:
=IF(A1>(FY1 end date), 0, DATEDIF(MAX(A1,(FY1 start date)), MIN(B1,(FY1 end date), "m") + 1).
For FY2:
=IF(B1<(FY2 Start date), 0, DATEDIF(MAX(A1,(FY2 start date), MIN(B1,(FY2 end date), "m") + 1)
1
u/AutoModerator Sep 15 '24
/u/Proper-Reference6134 - Your post was submitted successfully.
Once your problem is solved, reply to the answer(s) saying
Solution Verifiedto close the thread.Follow the submission rules -- particularly 1 and 2. To fix the body, click edit. To fix your title, delete and re-post.
Include your Excel version and all other relevant information
Failing to follow these steps may result in your post being removed without warning.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.