Array Formula
I tried getting rid of the IF as well with the same result. The values in
A2, C1 and D1 are 02548, 12/31/07 and 1/31/08, repectively while the second
sheet looks like this.
ID Beg Date Fin Date
02548 01/01/08 05/04/08
02548 05/05/08 08/31/08
=SUM((-(BegDateTestD1)-(FinDateTest<=C1)+1)*(AttyIDTest=A2)*NETWORKDAYS(M AX(C1,BegDateTest),MIN(D1,FinDateTest)))
"Erin Searfoss" wrote:
Can anyone tell what I'm doing wrong here? If (on another sheet) IDTest =
$A$2:$A2, BegDateTest = $B$2:$B$2, and FinDateTest = $C$2:$C$2 the following
formula evaluates to 23. If IDTest = $A$3:$A3, BegDateTest = $B$3:$B$3, and
FinDateTest = $C$3:$C$3 the formula evaluates to 0. However, if IDTest =
$A$2:$A3, BegDateTest = $B$2:$B$3, and FinDateTest = $C$2:$C$3 the formula
evaluates to -68. I would expect 0 + 23. Anyone know why it isn't
evaluating to 23?
=SUM(IF((BegDateTestD1)+(FinDateTest<=C1)0,0,(ID Test=A2)*NETWORKDAYS(MAX(C1,BegDateTest),MIN(D1,Fi nDateTest))))
Any suggestions would be appreciated. Thanks.
Erin
|