Average of Networkdays

stephi0330

New Member
Joined
Sep 29, 2010
Messages
1
Good afternoon everyone,

I am trying to figure out a formual that would allow me to calculate the average number of working days between two columns. So far, I have this, which works:

=AVERAGE(NETWORKDAYS(D1, E1,HOLS)),(NETWORKDAYS(D2,E2,HOLS)), NETWORKS(D3,E3,HOLS))

Problem is, I have AT LEAST 50 more cells of networkdays to add to the formula, which would make it impossibly long. Is there a shorter way of doing this?

Thanks in advance!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Networkdays is not array-compatible, so it would be easiest to just enter the formula in a convenient column, copy it down, and take the average of the column.
 
Upvote 0
In Excel 2007 and later NETWORKDAYS will accept an array (not a range) so this formula works

=AVERAGE(NETWORKDAYS(D1:D50+0,E1:E50+0,HOLS))

confirmed with CTRL+SHIFT+ENTER

because of the +0 you can't have any text values in the ranges
 
Upvote 0

Forum statistics

Threads
1,214,638
Messages
6,120,674
Members
448,977
Latest member
moonlight6

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