Need help with a formula that can prorate

Sean15

Well-known Member
Joined
Jun 25, 2005
Messages
698
Office Version
  1. 2010
Platform
  1. Windows
Hi,

I am trying to calculate prorate amounts where applicable in column L. So, I’m looking for a formula that looks at Date in H1, if Date in range H3:H8 is less than H1, return zero, if Date in range H3:H8 falls with MONTH (H1), return prorate of amount in column J, all else return value in column J.

Book1
HIJKLM
15/1/2022Required
2value
307/05/221,575.001,575.00
408/16/221,628.001,628.00
509/25/234,582.004,582.00
605/12/223,575.002,191.13date in H6 in within current month, so prorate 19 days
705/30/222,572.00165.94date in H7 in within current month, so prorate 2 days
804/15/221,452.00N/Adate is less than H1, return zero
9
10
Sheet1
Cell Formulas
RangeFormula
L3:L5L3=J3
L6L6=19/31*J6
L7L7=2/31*J7


Thanks for your help.

Regards,
Sean
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Do a search for Excel Interpolate (which is the mathematical term for "prorate").
 
Upvote 0
Hi, I've searched Excel Interpolate but I can't find an example that is related to mine. Anyone else?

Sean
 
Upvote 0
Okay, here's another look.

First, you either want to prorate 5/12 and 5/30 by 19 and 1 days or 20 and 2 days. I'll assume 19 and 1 days.

Put this formula in L3:
Excel Formula:
=IFS(H3<$H$1,0,H3>EOMONTH($H$1,0),J3,TRUE,(EOMONTH($H$1,0)-H3)/(EOMONTH($H$1,0)+1-$H$1)*J3)

If you want to prorate 20 and 2 days, use this formula instead:
Excel Formula:
=IFS(H3<$H$1,0,H3>EOMONTH($H$1,0),J3,TRUE,(EOMONTH($H$1,0)+1-H3)/(EOMONTH($H$1,0)+1-$H$1)*J3)
 
Upvote 0

Forum statistics

Threads
1,215,463
Messages
6,124,963
Members
449,200
Latest member
indiansth

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