How to calculate the Average with Condition of Networking days from the reference dates

shoun2502

New Member
Joined
Nov 14, 2018
Messages
45
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi Team,
I need a dynamic formula in Cell F2 which will stretched to N2 to calculate the
1. Average of Network days between "Request Received date and F1, G1, H1 and so on".
2. Consider those dates having Rows with Column A Status "Open"
3. Ignore Status "Open" , Request Received dates in Average where Any date in Request Received date >= Reference dates (as it will give the wrong average)
4. Answers that I need are there from Cell F3 to N3 ( can be used for crosscheck)

I tried using Formula below but getting #Value! Error . Dates in Cell F1 to N1 are in "Date format" Can anyone please help with the solution .

=AVERAGEIFS(NETWORKDAYS.INTL(Sheet1!$B$2:$B$5, F$1, 1), Sheet1!$A$2:$A$5, "Open", Sheet1!$B$2:$B$5, "<" & F$1)





1716481761793.png
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Try:
Book1
ABCDEFGHIJKLMN
1StatusRequest Received12/4/2312/18/231/1/241/15/241/29/242/12/242/26/243/11/243/25/24
2Closed12/4/23Drag formula ->1213.516263646566676
3Open12/31/23Spill range ->1213.516263646566676
4Open11/17/23
5Open12/12/23
Sheet3
Cell Formulas
RangeFormula
F2:N2G2=AVERAGE(MAP(FILTER($B$2:$B$5,($A$2:$A$5="Open")*($B$2:$B$5<=G1)),LAMBDA(m,NETWORKDAYS(m,G1))))
F3:N3F3=BYCOL(F1:N1,LAMBDA(b,AVERAGE(MAP(FILTER($B$2:$B$5,($A$2:$A$5="Open")*($B$2:$B$5<=b)),LAMBDA(m,NETWORKDAYS(m,b))))))
Dynamic array formulas.
 
Upvote 0
Solution

Forum statistics

Threads
1,217,372
Messages
6,136,182
Members
449,996
Latest member
duraichandra

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