View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default Sumproduct and Networkdays Together

NETWORKDAYS won't work on arrays. You'd have to use an extra column and
calculate the NETWORKDAYS separately.

=NETWORKDAYS(B2,C2)
=NETWORKDAYS(B3,C3)
etc
etc


Then:

=SUMPRODUCT(--('Remedy Data'!$D$2:$D$20<=2),--(TEXT('Remedy
Data'!$A$2:$A$20,"mmmm")=MONTH))


--
Biff
Microsoft Excel MVP


"J_L_G" wrote in message
...
I have an Excel 2003 spreadsheet that looks like this:

Submit Date Close Date Inspection Date
November-08 11/14/08 11/14/08
November-08 11/20/08 11/21/08
October-08 10/15/08 10/17/08
October-08 10/20/08 10/31/08

I need to Return the Total number of times an items was CLOSED and
INSPECTED
within two WORKING DAYS or less.

Thus far I'm using this formula, but not getting any results:
=SUMPRODUCT(--(NETWORKDAYS('Remedy Data'!$B$2:$B$20,'Remedy
Data'!$C$2:$F$20)<=2),--(TEXT('Remedy Data'!$A$2:$A$20,"mmmm")=MONTH))

The MONTH is a value that I change depending on which month I'm searching
for.

Row A is a date that is formatted to display mmmm-yy.

If the formula was working properly, my results would be:

PASS
OCT 1
NOV 2

Thanks for the help!