# Number of months between two dates

#### Mldeuser

##### Well-known Member
Does anyone know how to calculate the number of months between two dates when the first and last months are not full months.

For example:

Start date 02/05/2010
End date 08/14/2011

Any help would be appreciated

### Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

#### njimack

##### Well-known Member
=DATEDIF(A1,A2,"m")

#### Mldeuser

##### Well-known Member
What I am looking for is a formula that will calculate the number of months between the two dates out two decimals since the first month and the last month are not complete months.

#### njimack

##### Well-known Member
What would the desired result be, given the 2 dates you posted?

#### Mldeuser

##### Well-known Member
It should be 18.31, when calculating the months individually

#### schielrn

##### Well-known Member
Maybe something like this? I am adding 2 to add back in the 2 dates that are used int eh subtraction, but I am not sure if that is correct or not depending on what you need?
Excel Workbook
WX
452/5/2010
468/14/201118.3123
Data Check
Cell Formulas
RangeFormula
X46=(W46-W45+2)/365*12

Hope that helps.

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,164,446
Messages
5,837,292
Members
430,493
Latest member
prontonz

### 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?

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