Calculate difference between two dates in whole months

Danjones23

New Member
Joined
Aug 19, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I'm after some help.

We have some dates of cases reported and want to work out how long they take in months for business reporting. Would it be possible for someone to help me with the formula. I have tried used DATEDIF and others like Round, but I'm confused!

My work computer doesnt allow me to do Mini Sheets so hopefully the image covers me.

Essentially I want Date Closed - Date of report in months as a whole number. The date should be in a whole number to include the month the case is closed. Where the date closed is the calendar after, the months would then be expected to cover across e.g. Dec to Jan =2.

Thanks in advance
 

Attachments

  • Excel help.png
    Excel help.png
    40.8 KB · Views: 13
Book1
ABC
1Date of ReportDate ClosedTime (Months)
204/01/202405/02/20241
329/04/202401/09/20244
422/05/202425/05/20240
514/06/202416/06/20240
620/09/202401/03/20255
730/10/202401/12/20241
808/11/202401/01/20252
904/12/202425/02/20253
1010/12/202426/02/20253
1112/12/202427/02/20253
1211/12/202428/02/20253
1324/12/202401/03/20252
Sheet1
Cell Formulas
RangeFormula
C2:C13C2=ROUND(YEARFRAC(A2,B2)*12,0)
 
Upvote 0
Solution
Book1
ABC
1Date of ReportDate ClosedTime (Months)
204/01/202405/02/20241
329/04/202401/09/20244
422/05/202425/05/20240
514/06/202416/06/20240
620/09/202401/03/20255
730/10/202401/12/20241
808/11/202401/01/20252
904/12/202425/02/20253
1010/12/202426/02/20253
1112/12/202427/02/20253
1211/12/202428/02/20253
1324/12/202401/03/20252
Sheet1
Cell Formulas
RangeFormula
C2:C13C2=ROUND(YEARFRAC(A2,B2)*12,0)
That works really well, thank you!
 
Upvote 0

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