Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
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…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

948 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

21 Experts available now in Live!

Get 1:1 Help Now