MEDIAN, EOMONTHS and NETWORK DAYS Formula

wesselsV

New Member
Joined
Apr 18, 2018
Messages
12
Hi,

I'm trying to spread the cost of a resource between two dates. The start and finish dates vary and may fall within the same week or run across several months. I've managed to stumble across a formula I've found elsewhere and tweaked it to suit the format of my table but I'm struggling for it to accurately take account of network days and actual work days based on a five day week.


=$D6*(H$1=MEDIAN(EOMONTH($B6,-1)+1,EOMONTH($C6,0),H$1))*(MIN($C6,EOMONTH(H$1,0))-MAX($B6,H$1-1))

https://1drv.ms/x/s!As-9OWf6QipWg05iIjaIL8wyN9Lm

In above file and on Row 6 for September there should be £5,000 cost spread and in Row 7 there should be a cost spread of £20,000 for September and £8,000 for October all based on actual work days. However this is higher as it is strictly based on the start and finish dates.

Can anyone kindly assist?

Thanks
 

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".
yea looks like you need to modify just a little bit. Try this in cell F4 and then copy to the right and down:

=$D4*(F$1=MEDIAN(EOMONTH($B4,-1)+1,EOMONTH($C4,0),F$1))*NETWORKDAYS(MAX($B4,F$1),MIN($C4,EOMONTH(F$1,0)))
 
Upvote 0
I think this will work as well:

=$D4*MAX(NETWORKDAYS(MAX($B4,F$1),MIN($C4,EOMONTH(F$1,0))),0)
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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