in the first row of each section copy
=SMALL(IF(ISNA(range in column E appropriate for present set),TRUE,range in column E appropriate for present set),ROW(1:1))
then copy down all current set
With data layout you are dealing with, it would be quite compliacted "one for all formula" - notice that in each set the formula has to refers to this set only.
Bookmarks