Spread cost over time using multiple dates

daviesj93

New Member
Joined
Jun 12, 2020
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
Hi Guys,

I am currently trying to put a sheet together that will automatically spread cost over time using multiple date sets. I have the formula working for one set of dates however some items need to be spread across more than one activity i.e. up to 4 sets of dates and i was wondering if there was a way to do this?

My amount to be spread is in column K
Date set 1 start is in column M
Date set 1 finish is in column N
Date set 2 start is in column P
Date set 2 finish is in column Q
Date set 3 start is in column S
Date set 3 finish is in column T
Date set 4 start is in column V
Date set 4 finish is in column W

My monthly cells for the cost to be spread in are then from Column X onwards with dates in Row 3 using start date of each month

My current formula that works for just 1 date set is as follows: =IF(OR(X$3<=$M5-DAY($M5),X$3>EOMONTH($N5,0)),"",MAX(MIN(EDATE(X$3,1)-$M5,EDATE(X$3,1)-X$3,$N5-X$3+1,$N5-$M5+1),0)*$K5/($N5-$M5+1))

Any help would be greatly appreciated

Thanks

Jack
 

Some videos you may like

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,324
Office Version
  1. 365
Platform
  1. Windows
Cross posted Spread cost over time automatically using multiple activity start and finishes

While we do allow Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 

Watch MrExcel Video

Forum statistics

Threads
1,123,426
Messages
5,601,587
Members
414,460
Latest member
uctc

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
Top