2010 - you do not have Filter... okay so the fastest route would be add a helper column. Light weight as its a per line review...
Insert a column in front of A so your AB becomes BC. Then in A2 put this
=IF(C2=0,A1,A1+1)
Send the formula down to the length of your data. What you will see is something like this
1
1
1
2
3
3
3
etc...
Each time it hits a record that is not 0 it will add a number to the previous otherwise it will repeat the previous.
You can now match on that value based on position in your list
Index your range then match on the count of records from header to current position.
Then Match on COL reference also by getting a count of columns again from headers.
This formula will go into what is now your column E row 2 and throughout the light green table you have!
=IFERROR(INDEX($B$2:$C$27,MATCH(COUNTA($E$1:$E1),$A$2:$A$27,0),COUNTA($E$1:E$1)),"")
Bookmarks