# Solved: Calculating Formulas

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

#### Rustyhj

How can I calculate the number of payments left between 2 dates (start and end date) on a spreadsheet, having those dates in A1, A2 and the monthly payment in say A3, doing a payment on the 2nd of each month, and is it possible for the number of payments(months) to be shown getting less as each month passes. The payments is fixed. I have been using the formula "=(YEAR(B2)-YEAR(A2))*12+MONTH(B2)-MONTH(A2)" to show the months left but cannot get it to go minus one each month. What am I doing wrong
Oh yes the deposit amount from which the payments are made may increase as time go on

Im using MS Windows XP, Version 2002, SP 3

Thanks in advance for any help!

#### etaf

Wayne
Moderator
does this work start date in B1 - End Date in B2

Start Date 01/01/2012
End Date 01/01/2014
Number of payments =(YEAR(B2)-YEAR(B1))*12+MONTH(B2)-MONTH(B1)
Remaining payments =DATEDIF(TODAY(),DATE(YEAR(B1),MONTH(B1)+B3,DAY(B1)),"m")

#### Attachments

• 24.5 KB Views: 35

#### Rustyhj

Hi Wayne
Thanks looks as if the formulas are doing the trick, but unfortunately are unable to open the attached file , maybe your MS Excel are 2007 cause myne is 2002 so I could not see what was in the file.
Thanks again, keeping this open if you would like to reply?

Rusty

#### etaf

Wayne
Moderator
changed the attachment to a 2002 compatible file

#### Rustyhj

Hi
Think I made a boo boo with my reply, but just to say thanks again this will help, good to see what is meant in the spreadsheet, and the opening of the file

Great help
Rusty

#### etaf

Wayne
Moderator
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

As Seen On