Solved

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

Posted on 2014-10-25
5
165 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
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 demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now