Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

datedif function calc

Forum home » Delegate support and help forum » Microsoft Excel Training and help » DATEDIF function - calc no. of months when above 1 year

DATEDIF function - calc no. of months when above 1 year

ResolvedVersion 365

Jessica has attended:
Excel Advanced - Formulas & Functions course

DATEDIF function - calc no. of months when above 1 year

Within my work I need to know the number of months between two dates. This is so I can know the duration of the grant.

I was hoping to use the DATEDIF function but can't get it to work as the dates are all over 12 months. The function only goes up to 11 months.

If the dates are 12 months or over apart it will just display 0.

for example
01/09/2021
31/08/2023

As the grant runs up to 23:59 on 31/08/2023 the duration for this example grant would be 24 months.
Through Datedif I get 0.

Is there a way to do this through a function?

RE: DATEDIF function - calc no. of months when above 1 year

Hi Jessica,

Thank you for the forum question.

when I try with your dates the datedif function return the right result.

=Datedif(start date, end date, "m")

01/09/2021 if this date is in A1
31/08/2023 if this date is in B1

=Datedif(a1,b1,"m")


Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Tue 14 Mar 2023: Automatically marked as resolved.

Excel tip:

Change Excel's default font

You can change the default font and font size for all spreadsheets created in Excel by:

1. Going to Tools on the menu bar.
2. Select Options, then General.
3. Next to Standard Font you can change the font and font size.
4. Click OK.

Each new file you start from this point onward should use the font and font size you have selected.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.