It works!!! Thanks Max.
The only problem encounter now is data "0" was captured at SubjectID column
on new sheet due to the empty cell at sheet X. Hence, I have to do a filter
to take out all the "0" data.
Overall, it make me save lots of time.
> It works!!! Thanks Max.
Glad to hear it worked for you here. .. btw, perhaps you could also provide
feedback to responses given to your earlier other postings.
> The only problem encounter now is data "0" was captured at SubjectID column
> on new sheet due to the empty cell at sheet X. Hence, I have to do a filter
> to take out all the "0" data.
well, if you want it automated all the way through to the final results,
instead of killing the formulas and then filtering for zeros in col
C/deleting manually, you could extend the earlier set-up like this ..
In D2:
=IF(C2=0,"",ROW())
In E2:
=IF(ROWS($1:1)>COUNT($D:$D),"",INDEX(A:A,SMALL($D:$D,ROWS($1:1))))
Copy E2 to G2. Select D2:G2, copy down to G2321 (ie to the last row in cols
A to C). Then you can hide away cols A to D. Cols E to G will auto-return the
final results that you're after, ie the extracts from X w/o the empty lines,
with all result lines neatly bunched at the top.

Signature
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---