index or filter?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a table of sampleIDs and tests. The sampleIDs are in a column and
appear multiple times because there are multiple tests done on each sample. I
want to find and copy a list of unique sampleIDs that have been analyzed on
another sheet.

table:
sampleID test
A x
B x
B z
A z
C y
C w
B w
A y


I want a list:
A
B
C

thanks
 
In a helper column (i.e. directly to the right of your data) enter this
formula:

=IF(COUNTIF($A$1:A1,A1)>1,"",A1)

Drag this formula down to the end of your data. Then, copy this range and
do a "Paste Special"->Values on your other sheet. Finally, sort this range
to get rid of all the blank spaces in between.

Does that help?
 
Great, it worked!

thanks,
sue


David Billigmeier said:
In a helper column (i.e. directly to the right of your data) enter this
formula:

=IF(COUNTIF($A$1:A1,A1)>1,"",A1)

Drag this formula down to the end of your data. Then, copy this range and
do a "Paste Special"->Values on your other sheet. Finally, sort this range
to get rid of all the blank spaces in between.

Does that help?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top