late fee formula

apgmin

Board Regular
Joined
Mar 1, 2010
Messages
150
Office Version
  1. 2013
Platform
  1. Windows
In cell A1 I put the date when the fees is supposed/committed to be paid by the student
In cell B1 I put the date when the fees is actually paid by the student

In cell C1 I put the amount which is supposed/committed to be paid by the student on date A1
In cell D1 I put the amount that is actually paid by the student
Now if he pays after the committed date or pays less than the combined amount he needs to pay a penalty which should be calculated in cell E1

The rules are as follow for computing the penalty :
If he pays less than commited then automatically 100 USD is to be paid by him
or if he pays after the comitted date then the amount should be USD 100 per month delay

the results in cell E! sould be higher of the 2 above
 
thanks works perfectly

You're welcome and thanks for the feedback.

By the way, try this small modification in my last suggestion:

In E2 and copy down

=MAX((DATEDIF(A2,B2,"m")+(DAY(B2) > DAY(A2)))*100,(D2 < C2)*150)


[TABLE="class: grid, width: 392"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Date 01[/TD]
[TD]Date 02[/TD]
[TD]Value 1[/TD]
[TD]Value 2[/TD]
[TD]Result[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD="align: right"]02/01/2018[/TD]
[TD="align: right"]12/01/2019[/TD]
[TD="align: right"]500[/TD]
[TD="align: right"]500[/TD]
[TD="align: right"]1300[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD="align: right"]02/01/2018[/TD]
[TD="align: right"]02/01/2018[/TD]
[TD="align: right"]500[/TD]
[TD="align: right"]400[/TD]
[TD="align: right"]150[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD="align: right"]02/01/2018[/TD]
[TD="align: right"]12/03/2018[/TD]
[TD="align: right"]500[/TD]
[TD="align: right"]300[/TD]
[TD="align: right"]300[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]***[/TD]
[TD]**********[/TD]
[TD]**********[/TD]
[TD]********[/TD]
[TD]********[/TD]
[TD]********[/TD]
[TD]**[/TD]
[/TR]
</tbody>[/TABLE]


Markmzz
 
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,223,714
Messages
6,174,051
Members
452,542
Latest member
Bricklin

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