Allocate the amount from the number of days

ExcelNewbie2020

Active Member
Joined
Dec 3, 2020
Messages
289
Office Version
  1. 365
Platform
  1. Windows
how to allocate the amount from the number of days in a month from start to end.

below table shows an amount of 30000 to be proportionally allocated per month based on the number of days in each month starting from 13/01/2023 to 30/04/2023? thank you


Book1
ABCDEFGH
1startendamountexpected result
213-01-2330-04-2330000janfebmarapr
35,046.737,850.478,691.598,411.21
4
5
6
Sheet3
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hello @ExcelNewbie2020

Dates are numbers so you can do something like:
1678972396768.png

You can say End date - Start date and you get 107.

Look at this page for more date information: Dates And Times In Excel

Hope this helps

Monty
 
Upvote 0
N.B. Jan-23 etc. are real dates like Jan 1 2023 formatted to show mmm-yy

T202303a.xlsm
ABCDEFGHI
1Allocate by days in month
2StartEndAmountTotal DaysJan-23Feb-23Mar-23Apr-23May-23
313-Jan-2330-Apr-2330,000.001085,277.787,777.788,611.118,333.330.00
4
2c
Cell Formulas
RangeFormula
D3D3=B3-A3+1
E3:I3E3=MAX(0, MIN(EOMONTH(E$2, 0), $B3) + 1 - MAX(E$2, $A3))*$C3/$D3
 
Upvote 0
Solution
N.B. Jan-23 etc. are real dates like Jan 1 2023 formatted to show mmm-yy

T202303a.xlsm
ABCDEFGHI
1Allocate by days in month
2StartEndAmountTotal DaysJan-23Feb-23Mar-23Apr-23May-23
313-Jan-2330-Apr-2330,000.001085,277.787,777.788,611.118,333.330.00
4
2c
Cell Formulas
RangeFormula
D3D3=B3-A3+1
E3:I3E3=MAX(0, MIN(EOMONTH(E$2, 0), $B3) + 1 - MAX(E$2, $A3))*$C3/$D3
thanks man, but it does not give the expected result..
 
Upvote 0
You stated "starting from 13/01/2023 to 30/04/2023".
If your count is different, just edit the formula!
 
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,393
Members
449,081
Latest member
JAMES KECULAH

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