Revenue Allocation by Week

ChetanPuri

Board Regular
Joined
Sep 5, 2018
Messages
70
Office Version
  1. 365
Platform
  1. Windows
Hello Excel Community,

I need some help with Revenue allocation per week. Attached is a screenshot what I am trying to achieve but so far it has been very frustrating. As you will notice that un Column N row 2 & 3 I have 2 dates one for the Start of the Financial year and another one reporting date i.e. 09 Feb 2024. Similarly in column I 10 & J 10, I have 2 dates which are the starting & end dates for a contract.

I want the formula to do the following:
- Look at the Start Date in Column I and if its less than the Financial Reporting Date 01 July 2023 then it defaults to 01 July 2023 to calculate the revenue based on column N under Plan Amount.
- if the End date is less than the Reporting Date in my case 09 Feb 2024, then it evenly calculates and allocate revenue between 01 July 2023 and End Date in Column J. For example Column O 11 to column AK it stops but it only calculates 1, 626 instead of 2,846.72. (148,937.36/52)
-In another Scenario, if Start Date is greater than the Financial Year Start Date i.e 1. 01 July 2023 then the formula should calculate using the Start date giving in column I, also if the end date in Column J is greater than the reporting date i.e. 09 Feb 2024, then it should divide the revenue by 52 weeks and evenly distribute to the reporting week. For example $ 167k in Column n should be allocated across from 12 Dec to 09 FeB 2024 for 3,216.43. The revenue must be divided by 52 weeks.

I understand these are very complex scenarios, but I would appreciate any help.

Many thanks,
Regards,
Chetan
 

Attachments

  • Revenue Allocation Help.jpg
    Revenue Allocation Help.jpg
    174.9 KB · Views: 35

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
In O11 copied to full range.
Excel Formula:
=IF(AND(O$10<=MIN($K11,$N$3),(O$10+6)>=MAX($J11,$N$2)),($N11/52)*((MEDIAN(MIN($K11,$N$3),O$10,O$10+6)-MEDIAN(MAX($J11,$N$2)-1,O$10-1,O$10+6))/7),"")
 
Upvote 0
Better formula. In O11and copied to full range.
Excel Formula:
=IFERROR(($N11/52)*((1/(1/(MEDIAN(MIN($K11,$N$3),O$10-1,O$10+6)-MEDIAN(MAX($J11,$N$2)-1,O$10-1,O$10+6))))/7),"")
 
Upvote 0
Better formula. In O11and copied to full range.
Excel Formula:
=IFERROR(($N11/52)*((1/(1/(MEDIAN(MIN($K11,$N$3),O$10-1,O$10+6)-MEDIAN(MAX($J11,$N$2)-1,O$10-1,O$10+6))))/7),"")
Thank you Mate, you are a legend. Also thanks for answering my other queries,. Many thanks, regards, Chetan
 
Upvote 0

Forum statistics

Threads
1,223,705
Messages
6,173,985
Members
452,540
Latest member
haasro02

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