Some alternative formula using the workbook posted by icestationzbra in post #4,
F2
Formula:
=IF(ROWS(F$2:F2)>COUNTIF(A:A,"AT"),"-","AT")
G2 ** this is an array formula and must be confirmed with Shift Ctrl Enter **
Formula:
=IF(F2="AT",SMALL(IF($A$2:$A$22="AT",$B$2:$B$22),ROWS(G$2:G2)),"-")
H2 ** if editing, note that the first lookup range excludes the last row in the table, the second range excludes the first row **
Formula:
=IF(N(G2),LOOKUP(G2,$B$2:$B$21,$B$3:$B$22),"-")
I2
Formula:
=IF(N(H2),H2-G2,"-")
Bookmarks