Months between two dates

Tentonhammer69

New Member
Joined
Jun 2, 2016
Messages
9
I am creating a pro-rated battery calculator and I need a formula to show the number of months between two dates were if it is 24 months and one day it would show as 25.
date battery was installedcurrent date=DATEDIF(A2,B2,"M")
9/25/20159/26/201724(formula answer)
9/25/20159/26/201725(answer I want)

<tbody>
</tbody>

According to the warranty company that battery is in the first day of the 25th month and it gets moved into the 25-32 month pro-rated period. I would need the formula to see that its 24 months and one day and round it up to 25 months. I hope I explained this clearly.
 
Last edited:

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Maybe: =DATEDIF(A2,B2,"M")+IF(DATEDIF(A2,B2,"MD")>0,1,0)
 
Last edited:
Upvote 0
Is this an Access or Excel question?
I ask because you posted the question in the Access forum, but the formula you posted looks like an Excel one.
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,707
Members
448,981
Latest member
recon11bucks

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