Solved

How would I identify each unique subject ID in the attached  excel spreadsheet.

Posted on 2014-10-25
5
170 Views
Last Modified: 2014-10-28
I have an excel spreadsheet with several thousand subject ID entrees in column A and most are repeated many times.

How would I extract the unique subject IDs into a separate column C in the excel spreadsheet?  Please see attached example.

Thanks,
EE.xlsx
0
Comment
Question by:PDSWSS
  • 3
  • 2
5 Comments
 
LVL 21

Accepted Solution

by:
Ejgil Hedegaard earned 500 total points
ID: 40404167
Copy all values to column C, and use the Remove Duplicates function on the Data tab.
0
 

Author Comment

by:PDSWSS
ID: 40404176
Thank you.  You answered my question and will give you the points.
However, I should have been clearer. I wanted to delete the rows that included the duplicate subject IDs as well.

Could you answer this one or should it be a separate question.  Thanks again.
0
 

Author Closing Comment

by:PDSWSS
ID: 40404345
Thanks for the quick solution.
0
 
LVL 21

Expert Comment

by:Ejgil Hedegaard
ID: 40405100
Use the Remove Duplicates on column A instead.

Or insert this formula in B2 =IF(COUNTIF($A$2:A2,A2)>1,"Remove","Keep")
Copy down, double click on the black square in the lower right corner of the cell marker.

Mark result in column B.
Copy and paste as values (=Right click somewhere in column B, select Insert special in the menu, select values, Ok)
Sort on column B, to get "Remove" at the bottom of the list.
Then delete all with "Remove" in column B.
Delete the result "Keep" in column B.

You can also filter on column B to show only "Remove", select all rows, (entire rows) in the list, right click and select Delete rows.
Delete the formulas in column B.
0
 

Author Comment

by:PDSWSS
ID: 40409342
Thank you very much.
0

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question