Try this one... see attached.
Formula in A6, confirmed with CTRL+SHIFT+ENTER, then copied down as far as you want and across as far as needed.
=INDEX('NEW DATA'!A$3:A$2000,MIN(IF(ISNA(MATCH('NEW DATA'!$E$3:$E$2000,$E$2:INDEX($E$2:$E5,MATCH(REPT("z",255),$A$2:$A5)),0)),ROW('NEW DATA'!$E$3:$E$2000)-ROW('NEW DATA'!$E$3)+1)))
Note: This covers for upto 2000 records - 3. You can update the 2000's in the formula to cover more....but the more you cover the more likely the sheet will slow down.
After adjusting fomrula you must reconfirm with CSE keys.
Also...if you want to suppress all the zeroes... go to Tools|Options and check off Zero Values in the View Tab.
Bookmarks