Adding only academic months to a date

viktoriacarr

New Member
Joined
Dec 7, 2023
Messages
10
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I am brand new to this thread and am not the most experienced Excel user so maybe I am missing something simple and I would so appreciate anyone's help :)

I work in the school system with multilanguage learners and when these students come to the USA from another county, we receive federal funding to support them for 33 academic months. I know how to add months to a date so that's no problem but I was wondering if there was any way to add only academic months to a date.

For example, Student A's first day in a US school is 1/4/23 and we are able to claim them for 33 academic months. Is there is a way to add months to a date so I can track when their funding will end while NOT counting the months of June, August, and July to the total number of months?

Thank you in advance for any advice you can give me!! If you need any additional details please let me know
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Are you using 365 as per your profile?
 
Upvote 0
My quick thought was the formula in D2
I included Fluff's suggestion.
Please test with your dates.

Cell Formulas
RangeFormula
B2:B4B2=OR(MONTH(A2)={1,2,3,4,5,9,10,11,12})
C2:C4C2=COUNTIF($B$2:B2,TRUE)
D2D2=EDATE(A2,33+10-(OR(MONTH(A2)={1,2,3,4,5,9,10,11,12})*2))
E2E2=LET(d,EDATE(A2,SEQUENCE(50)),CHOOSEROWS(FILTER(d,(MONTH(d)<6)+(MONTH(d)>8)),33))
A3:A4A3=EDATE(A2,1)
 
Upvote 0
Are you using 365 as per your profile?
Oops my apologizes I was using my desktop version which I forgot to list but when trying it in 365 it works great!! Would there happen to be another version of that formula that would work on the desktop version of Excel as well?
 
Upvote 0
What version are you running on the desktop?
 
Upvote 0
Ok, how about
Excel Formula:
=AGGREGATE(15,6,EDATE(A2,(ROW($A$1:$A$50)-ROW($A$1)+1))/((MONTH(EDATE(A2,ROW($A$1:$A$50)-ROW($A$1)+1))<6)+(MONTH(EDATE(A2,ROW($A$1:$A$50)-ROW($A$1)+1))>8)),33)
But if you normally need to use 2019, please update your profile.
 
Upvote 1
Solution
It is possible that the sequence of dates should start with the date in A2,
the formula would then be as follows. Please test with your data.

Dates Time.xlsm
ABCDE
201-Jan-23TRUE101-Sep-26
4n
Cell Formulas
RangeFormula
B2B2=OR(MONTH(A2)={1,2,3,4,5,9,10,11,12})
C2C2=COUNTIF($B$2:B2,TRUE)
E2E2=LET(d,EDATE(A2,SEQUENCE(50,,0)),CHOOSEROWS(FILTER(d,(MONTH(d)<6)+(MONTH(d)>8)),33))
 
Upvote 1
It is possible that the sequence of dates should start with the date in A2,
the formula would then be as follows. Please test with your data.

Dates Time.xlsm
ABCDE
201-Jan-23TRUE101-Sep-26
4n
Cell Formulas
RangeFormula
B2B2=OR(MONTH(A2)={1,2,3,4,5,9,10,11,12})
C2C2=COUNTIF($B$2:B2,TRUE)
E2E2=LET(d,EDATE(A2,SEQUENCE(50,,0)),CHOOSEROWS(FILTER(d,(MONTH(d)<6)+(MONTH(d)>8)),33))
this is perfect!! thank you so much!
 
Upvote 0
I thought you said that the formula I posted in post#10 worked, but that you needed a formula that works in 2019?
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,623
Latest member
Techenthusiast

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