Array formula using NETWORKDAYS

nicostick

New Member
Joined
Aug 1, 2003
Messages
25
I'm having difficulty with an array formula using dates. What I'd like to do is, for a range of dates (in columns A and K), calculate the average of the NETWORKDAYS between them.

The formula I have now is:
{=AVERAGE(NETWORKDAYS(A9:A16,K9:K16))}
which returns a #VALUE! error.

Is it possible to use NETWORKDAYS in an array formula? It's very important that I calculate these numbers using business days.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
No way of creating a {possibly hidden} column to derive the NETWORDAYS on a by-row basis, then average that data? Could even be on another sheet.
 
Upvote 0
I could go this route, but I'd like to keep this spreadsheet as lean as possible (I'm trying to tidy up a spreadsheet that was left by a prevous employee).

Shouldn't an array formula be possible?
 
Upvote 0
I can't think of anything offhand that would produce the desired result, given that NETWORKDAYS is not an option. (In terms of array formulas.)

Alternatively, if it is a "visually clean" look you are after in the workbook, you could perform the calculation using a UDF, I suppose.
 
Upvote 0
User Defined Function; basically a macro that is callable from a cell like --

=FunctionNameHere(ArgumentListHere)

Where FunctionName refers to a macro FUNCTION, and the argument list are any required variables passed to the function.
 
Upvote 0
Sorry, I didn't notice Mark's post re: NETWORKDAYS.

In this case, just_jon, I'm going to run with what you suggested first -- probably a hidden sheet with the formulas contained there.

Thanks very much.
 
Upvote 0

Forum statistics

Threads
1,217,385
Messages
6,136,277
Members
450,001
Latest member
KWeekley08

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