Date Calculations

smarynuk

New Member
Joined
Jan 14, 2012
Messages
8
Hello,

Can someone help me with this. I have a spreadsheet to track vehicle buyouts, each vehicle has a row and the columns would look something like this;

Vehicle Number, Start Date, End Date, Monthly Amount, Term

00698 - Ford, 1-Sep-10, 1-Sep-14, $1,238.16, 48

What I would like to do for each vehicle is add 2 new columns with Remaining Months and Buyout where the remaining months is calculated each time the spreadsheet is opened and the buyout is simply calculated by using the remaining months multiplied by the monthly amount.

I keep running into trouble with the date calculations.

Thanks
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Is "Remaining Months" to be constantly recalculated using today's date ?

How do you deal with part months ?

And what exactly should the results be for your example, if today's date is 5th Feb 2012 ?
 
Upvote 0
You should be able to use something like this -

=(YEAR(C1)-YEAR(TODAY()))*12+(MONTH(C1)-MONTH(TODAY()))

However, be advised that this expression relies on the change on the calendar month not the number of days. For instance, a current date of February 29th that ends on March 1 will give a number of months as 1 whereas a current date of February 5th with an end date of February 29th will give a number of months as 0.

This may not be what you are looking for, but it can be fixed if necessary.

Cheers, :)
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,485
Members
448,967
Latest member
visheshkotha

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