Formula to Calculate Payment

oldguy46

New Member
Joined
May 26, 2010
Messages
30
Hello to all Excelers,

I need help in coming up with a proper formula to determine payment.

Payment is due every month on the same day starting from a given date. If payment is made on the same day every month, it's simple. But payment can be made on any day so I need a formula to determine how much is due including any missed payments from previous months.

today's date: B1 = today()
start date: B3 = any date
last payment date: B5 = any date after start date
monthly payment: B7 = 10
payment due today: B9 = formula to determine payment

If payment was made every month formula would be:
=IF(DAY(B1)>=DAY(B3),B7,0)

To include missed payments I tried this formula:
=IF(DATEDIF(B5,B1,"m")>=1,DATEDIF(B5,B1,"m")*B7,IF(DAY(B1)>=DAY(B3),B7,0))
but it doesn't work for all situations.

If anyone can help it would be much appreciated. I've tried so many if statements it's driving me nuts and now I need professional assistance. Thank you.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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