Trying to create a formula for prorating

cswilki

New Member
Joined
Sep 13, 2023
Messages
2
Office Version
  1. 365
Platform
  1. MacOS
I need a formula for figuring out the number of days in the month and then figuring the prorated amount.

EX:
Contract Start: 9/7/23
All contracts based on 30 days/month
Monthly amount: $2,000
Prorated amount based on # of days in effect: ?

So I need:
30 days - the date of the month = #of days in effect
(30-7=23 +1)
($2,000/30 = $66.67/daily
(24 * 66.67 = $1600.08

I would also like to add - if it's less than 15 days just the prorated amount, if it's greater than 15 days then the prorated amount plus the monthly amount
So: 9/7/23 would bring the above total and 9/23/23 would be $2,000 + the prorated amount.

Hope I made that understandable.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
if it's less than 15 days just the prorated amount, if it's greater than 15 days then the prorated amount plus the monthly amount
So: 9/7/23 would bring the above total and 9/23/23 would be $2,000 + the prorated amount.
That is the wrong way round isn't it?

I think it is:

Excel Formula:
=(IF(DAY(A1)>15,1,0)+(30-MIN(30,DAY(A1))+1)/30)*A2
 
Upvote 0
EOMONTH and DAYS are the pieces missing I think.
=EOMONTH(dateofmonth,0) gives last day of month.
=EOMONTH(dateofmonth,-1)+1 gives first day of month.
I think RoryA was right, the prorate would be =DAYS(dateofmonth,EOMONTH(dateofmonth,-1)+1)+1 would give days in effect.
 
Upvote 0
So this is my spreadsheet right now, figuring manually. How would I put these formulas in?
Prorating Calculator.xlsx
C
7
Prorating Calculator
 
Upvote 0
When posting your mini-sheet, you need to select the range of cells you want to copy over/display.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,329
Members
452,635
Latest member
laura12345

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