Hi,
I still have one more question. Is the late fee waived (or imposed) if a
partial payment is made on or before 11th? So, I am suggesting formulas for
both scenarios.
In a blank cell enter the month number (1 for Jan, .... 12 for Dec). I
have assumed the cell it to be A4 in my formulas. You can use any other cell
in the same row, eg., X4 or Y4 ....., that suits you instead, and
appropriately replace A4 by that in the formulas.
Scenario 1: Late fee is imposed unless payment is made IN FULL before 11th
of the month.
In J4 enter the formula
=IF(MONTH(D4)<A4,0,IF(MONTH(D4)=A4,IF(AND(DAY(D4)<11,C4>=E4),0,25),25))
In K4 enter the formula
=E4+J4-C4
Scenario 2: Late fee is waived if a partial payment is made before the 11th
of the month.
In J4 enter the formula
=IF(MONTH(D4)<A4,0,IF(MONTH(D4)=A4,IF(AND(DAY(D4)<11,C4>=1),0,25),25))
In K4 enter the formula
=E4+J4-C4
(if Scenario 2 is the case, and if you require a certain minimum payment
before 11th of the month to waive the late fee, for example, $50.00, modify
the J4 equation where C4>=1 ad C4>=50 (or whatever).
One more thing you should keep in mind: the formula wouldn't work for
December (i.e., if someone makes a payment due in December in January, the
formula would think that the payment was made on time. Since 1<12! I can
modify the formula to account for that also, but it would get even more
complex.
Hope this helps. Regards.
B. R. Ramachandran