Allocate costs by Week

_eNVy_

Board Regular
Joined
Feb 9, 2018
Messages
66
Office Version
  1. 365
Platform
  1. Windows
Large dataset with varying Start and End Dates.
The Week Numbers need to fall in financial year (01/04/2023 - 31/03/2023).
01/04/2023 needs to be Week 1, 10/04/2023 is Week 2 and so forth with possible carry over into the new year.

Using the Start and End Date, allocate the weekly cost to the weeks relating to the Start and End Dates.
e.g Weekly Cost is £1,000 during the course of 3 weeks, easy £1,000 per week for 3 weeks.
If an End Date is during a Week, calculate the point difference.

How do I allocate the Weekly Cost and any cost that ended during a week to its appropriate Week Number?

This will span across 52 weeks.
 

Attachments

  • MrExcel_Issue01.PNG
    MrExcel_Issue01.PNG
    68.4 KB · Views: 19

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Data 1st Row is 5
In Q5 then copied to full range.
Excel Formula:
=($P5/$M5)*(MEDIAN(MEDIAN($K5,IF(R$3>0,R$3,Q$3+7),Q$3),$A$3,$B$3)-MEDIAN(MEDIAN($J5,IF(R$3>0,R$3,Q$3+7),Q$3),$A$3,$B$3))

1700833121471.png
 

Attachments

  • 1700833024292.png
    1700833024292.png
    44.3 KB · Views: 14
Upvote 0
Solution

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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