Allocation Across Months

ChetanPuri

Board Regular
Joined
Sep 5, 2018
Messages
97
Office Version
  1. 365
Platform
  1. Windows
Good Afternoon Excel Expert team,

Need some help regarding Revenue Allocation across Month Formula, I am trying to create formula which Calculate the amount in K3, first based on Number of days between Column I3 Start Date and Column J3 End Date, then in Column R3, It should refer to EOM Dates on Column R2 to AC2 and allocate Revenue based on number of days in that month for example 158.71* 31 Days or 158.71*28 etc. There is one more criteria that I need to consider is in Column R 1 and S1, I have a Start date of the Financial Year and in S1 I have the month end Date. I need a formula where the Daily amount is based on Start and End Date of the contract but should only calculate up to EOM column as per date in S1. Thank you for all your help in advance
AR SDA Review -24 May 2024.xlsx
IJKLMNOPQRSTUVWXYZAAABAC
11/07/202330/04/2024
2START_DATEEND_DATEALLOCATED_AMOUNTREMAINING_AMOUNTACCRUAL_AMOUNTLAST_MODIF_DATESTATUSNo. of DaysDaily Amount31-Jul-2331-Aug-2330-Sep-2331-Oct-2330-Nov-2331-Dec-2331-Jan-2429-Feb-2431-Mar-2430-Apr-2431-May-2430-Jun-24
31/07/202311/12/2023$26,028.00$18,134.2629/02/2024Active164158.714,919.934,919.934,919.934,919.934,919.934,919.934,919.934,919.934,919.934,919.934,919.934,919.93
412/12/202311/12/2024$26,028.00$18,134.2629/02/2024Active36671.110.000.000.000.000.001,422.302,204.562,062.332,204.562,133.440.000.00
516/05/202315/05/2024$9,572.30$1,193.5014/04/2024Active36626.15810.77810.77784.61810.77784.61810.77810.77758.46810.77784.610.000.00
610/11/20239/11/2024$12,703.86$8,076.2914/04/2024Active36634.710.000.000.000.00728.911,076.011,076.011,006.591,076.011,041.300.000.00
717/11/202216/11/2024$17,282.04$5,995.6914/04/2024Active73123.64732.89732.89709.25732.89709.25732.89732.89685.61732.89709.250.000.00
86/03/20235/03/2025$18,632.73$9,303.625/03/2024Active73125.49790.17790.17764.68790.17764.68790.17790.17739.19790.17764.680.000.00
930/01/202429/01/2025$68,273.64$56,731.8014/04/2024Active366186.540.000.000.000.000.000.00373.085,409.665,782.745,596.200.000.00
1010/02/202329/01/2024$60,609.72$9,036.9530/01/2024Inactive354171.215,307.635,307.635,136.425,307.635,136.425,307.635,307.634,965.205,307.635,136.420.000.00
118/09/20237/09/2024$24,492.85$24,492.858/09/2023Active36666.920.000.001,539.172,074.532,007.612,074.532,074.531,940.692,074.532,007.610.000.00
1219/09/202318/09/2024$0.00$0.0030/11/2023Active3660.000.000.000.000.000.000.000.000.000.000.000.000.00
1310/01/20249/01/2025$12,703.92$9,862.2014/04/2024Active36634.710.000.000.000.000.000.00763.621,006.591,076.021,041.300.000.00
1423/03/202222/03/2025$34,481.00$12,393.0522/03/2024Active109631.46975.28975.28943.82975.28943.82975.28975.28912.36975.28943.820.000.00
NDIS-SCS 29042024
Cell Formulas
RangeFormula
S1S1='3 Way Rec - 2'!E1
R2:AC2R2='3 Way Rec - 2'!C3
P3:P14P3=J3-I3+1
Q3:Q14Q3=K3/P3
R3:AC3R3=IFERROR(($K3/($J3-$I3+1))*(EOMONTH(MIN(MAX($I3,$R$1),$S$1),0)-MAX($I3,$R$1)+1),"")
R4:AC14R4=IFERROR($Q4*((MAX(R$2-$I4,0)-MAX(EOMONTH(R$2,-1)-$I4,0))-(MAX(R$2-$S$1,0)-MAX(EOMONTH(R$2,-1)-$S$1,0))+(EOMONTH(R$2,0)=EOMONTH($I4,0))),"")
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hello - try these formulas, I have inserted some additional columns and some slight variations to your formulas;

I have inserted in column K next to the end date (labelled it) No Of Days In Month - =IF(DAY(EOMONTH(I3,0))>0,DAY(EOMONTH(I3,0). This will give number of days, in this instance, 31 being for July
I have inserted in column Q next to the status heading, No Of Days (As You Have Above) - =IF(I3<EOMONTH($S$1,0),IF(J3<EOMONTH($S$1,0),DATEDIF(I3,J3,"D")+1),""). This will give number of days in month between your current dates in I3 & J3.
Under daily amount, I have used, =IFERROR(ROUND(IF(DAY(EOMONTH(I3,0)<EOMONTH($S$1,0)),L3/Q3),2),"")
Then from S3 to AD3 to give same monthly amount, = IFERROR(IF(ISTEXT(Q3&R3),IF(DATE(YEAR(S2),MONTH(S2),DAY(S2)<EOMONTH($I$3,0)),MAX(INT($K$3)),DATE(YEAR(S2),MONTH(S2),DAY(S2)<EOMONTH($I$3,0)))*$R$3),"")))

If you were to change the date in cell I3 being the start date after 30/04/2024 and in J3, exactly the same, the number of days, daily amount and each monthly amount will be blank or zero.

Hope this may help.
 
Upvote 0
Hello - try these formulas, I have inserted some additional columns and some slight variations to your formulas;

I have inserted in column K next to the end date (labelled it) No Of Days In Month - =IF(DAY(EOMONTH(I3,0))>0,DAY(EOMONTH(I3,0). This will give number of days, in this instance, 31 being for July
I have inserted in column Q next to the status heading, No Of Days (As You Have Above) - =IF(I3<EOMONTH($S$1,0),IF(J3<EOMONTH($S$1,0),DATEDIF(I3,J3,"D")+1),""). This will give number of days in month between your current dates in I3 & J3.
Under daily amount, I have used, =IFERROR(ROUND(IF(DAY(EOMONTH(I3,0)<EOMONTH($S$1,0)),L3/Q3),2),"")
Then from S3 to AD3 to give same monthly amount, = IFERROR(IF(ISTEXT(Q3&R3),IF(DATE(YEAR(S2),MONTH(S2),DAY(S2)<EOMONTH($I$3,0)),MAX(INT($K$3)),DATE(YEAR(S2),MONTH(S2),DAY(S2)<EOMONTH($I$3,0)))*$R$3),"")))

If you were to change the date in cell I3 being the start date after 30/04/2024 and in J3, exactly the same, the number of days, daily amount and each monthly amount will be blank or zero.

Hope this may help.
Hi Nick,
Thank you for all your help, and I apologise for the late response. I just saw this message
 
Upvote 0
Hi Chetan - ah no problem at all, yes, I thought that I'd have more columns inserted to add to your original data so that you can see the difference in days as well as recognising what month is relative to the calculations prior to 30/04/2024.

Take care and best wishes.
 
Upvote 0

Forum statistics

Threads
1,224,812
Messages
6,181,105
Members
453,021
Latest member
Justyna P

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