Hi Elizabeth, okay, these two should give you your incident numbers as you want them, as well as a running total of hours in each incident, and have the bonus of being easier to understand:
In D2:
=IF(ROW()=ROW($2:$2),1,$D1+IF(OR($A2<>$A1,AND($A2=$A1,NETWORKDAYS($B1,$B2)>2)),1,0))
In E2:
=SUMIF($D$2:$D2,$D2,$C$2:$C2)
Copied downward.
Does that help?
---------- Post added at 08:15 AM ---------- Previous post was at 07:58 AM ----------
As an aside, this might be useful in your "Help1" column:
=TEXT($B2,"dddd")
and this is how I would normally have used the first formula in post #10:
=IF(ROW()=ROW($2:$2),1,$D1+($A2<>$A1)+($A2=$A1)*(NETWORKDAYS($B1,$B2)>2))
---------- Post added at 08:18 AM ---------- Previous post was at 08:15 AM ----------
As an aside, this might be useful in your "Help1" column:
=TEXT($B2,"dddd")
and this is how I would normally have used the first formula in post #10:
=IF(ROW()=ROW($2:$2),1,$D1+($A2<>$A1)+($A2=$A1)*(NETWORKDAYS($B1,$B2)>2))
Bookmarks