Excel formula for date

periukera

New Member
Joined
Aug 5, 2021
Messages
1
Hello, can anyone help me with excel formula for the column Month before year start, Duration (months), Month after year end and Months in 21/22 below please :-


FY 21/22Year Start: 01/08/2021Year End: 01/08/2022
ProjectProject Dates StartMonth before year startProject Dates EndDuration (months)Month after year endMonths in 21/22
101/05/202130/04/2025
201/12/202030/11/2021
301/09/202031/08/2023
401/01/202131/12/2021
501/10/202130/09/2025
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi

I have your data in my spreadsheet in this layout. Pease note that I split text and date of year start and year end into two cells.

Enter the following formulas in the given cells and copy them down,

Cell C4 - YEARFRAC(B4,$B$2)*12
Cell E4 -YEARFRAC(B4,D4)*12
Cell F4 -YEARFRAC($C$2,D4)*12
Cell G4 -MIN(12,F4)

1628194368195.png




Kind regards

Saba
 
Upvote 0
Book10
ABCDEFG
2FY 21/22Year Start: 1/8/2021Year End: 1/8/2022
3ProjectProject Dates StartMonth before year startProject Dates EndDuration (months)Month after year endMonths in 21/22
415/1/2021730/4/2025533312
521/12/2020830/11/20211204
631/9/20201131/8/2023361312
741/1/2021731/12/20211205
851/10/2021030/9/2025493910
Sheet1
Cell Formulas
RangeFormula
E4:E8E4=ROUND((D4-B4)/30,0)
F4:F8F4=IF(ROUND(($D4-$C$2)/30,0)>0,ROUND(($D4-$C$2)/30,0),0)
G4:G8G4=ROUND((MIN(D4,$C$2)-MAX(B4,$B$2))/30,0)
C4:C8C4=IF(ROUND(($B$2-$B4)/30,0)>0,ROUND(($B$2-$B4)/30,0),0)
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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