
Originally Posted by
Pete_UK
I would suggest a slight change to your layout - insert a blank row at the top, so that your data starts on row 2, and use column C as a helper column so that the output that you are wanting will be in column D (or E).
Put zero in cell C1 and then this formula in C2:
=IF(B2="","",B2+C1)
Copy this down to the bottom of your data, and it will just produce a cumulative sum of the counts for each row. Then you can use this formula in D2 (or E2) to generate your list:
=IF(ROWS($1:1)>MAX(C:C),"",INDEX(A:A,MATCH(ROWS($1:1)-1,C:C)+1))
Copy this down as far as you need it (until you start to get blanks).
Hope this helps.
Pete
Bookmarks