Excel help required...
 

MegaSack DRAW - 6pm Christmas Eve - LIVE on our YouTube Channel

[Closed] Excel help required!

15 Posts
9 Users
0 Reactions
72 Views
Posts: 0
Free Member
Topic starter
 

I have a spread sheet with 2000 lines on it. In column A there are different reference numbers. I need to find all duplicate reference numbers.

How do I do this?

Wish was riding my bike 😐


 
Posted : 15/07/2009 2:58 pm
Posts: 0
Full Member
 

Look under help for 'Remove duplicate rows' or 'Count unique values among duplicates'

and where the hell is Stoner? 🙄


 
Posted : 15/07/2009 3:02 pm
 mrmo
Posts: 10710
Free Member
 

i tend to run a pivot table which identifies all the unique numbers, it will also tell you the number of occurances of each. what are you trying to do?


 
Posted : 15/07/2009 3:05 pm
Posts: 0
Free Member
Topic starter
 

I tried that geoffj, no luck.

I've just ordered the line numerically and looked through, deleting as I go. If anyone knows a less soul destroying method please post on here.

Living life on the edge 😥


 
Posted : 15/07/2009 3:22 pm
Posts: 34471
Full Member
 

=countif(range,"criteria")

EDIT: forget this it'll just tell you how many...sorry. Must read post...


 
Posted : 15/07/2009 3:25 pm
Posts: 0
Free Member
Topic starter
 

Thanks 😀


 
Posted : 15/07/2009 3:25 pm
Posts: 36
Free Member
 

waiting for a train. sorry


 
Posted : 15/07/2009 3:27 pm
Posts: 34471
Full Member
 

Lookup.


 
Posted : 15/07/2009 3:28 pm
Posts: 79
Free Member
 

Try this. It will show True or False. Edit cells to fit yours

=COUNTIF(A:A,A1)>1

Drag down column & then sort


 
Posted : 15/07/2009 3:29 pm
Posts: 36
Free Member
 

trying to do this on phone
which incidence of a given ref no. do you want to keep and which delete?


 
Posted : 15/07/2009 3:30 pm
Posts: 0
Free Member
 

I'm not sure if there's a flash function but when I used to do this manually I used to:

1 - sort in ascending order
2 - add another column called 'duplicate'
3 - use an IF to set the duplicate cell to 1 if the number above it was the same (e.g. IF(A2=A1,1,0))
4 - copy and paste values in this column
5 - sort the whole sheet according to the duplicate column (make sure you're not just sorting the reference column but the whole data set)
6 - delete out all the duplicates and remove the extra column if necessary.

Shouldn't take more than 2 mins.

Hope that helps.


 
Posted : 15/07/2009 3:31 pm
Posts: 0
Free Member
 

If you have already sorted them into ref number order you could add another column to identify duplicates. Have your records starting at row 2 with a blank row in row 1, refnos in column A, enter the formula =(A2=A1) into the first record's new column and copy down. This will return FALSE if the the ref no is different to the one in the record above, TRUE if it is the same.


 
Posted : 15/07/2009 3:31 pm
Posts: 0
Free Member
Topic starter
 

Top work Chaps/Girls i've managed to bodge it now 🙂

Only 60 mins to go!


 
Posted : 15/07/2009 3:32 pm
Posts: 0
Free Member
 

Reread your post. Obviously you don't need to do the delete part if you're not removing them.

Also work with a copy in the first instance!


 
Posted : 15/07/2009 3:32 pm
Posts: 0
Free Member
Topic starter
 

Also work with a copy in the first instance!

I like to live dangerously 😆


 
Posted : 15/07/2009 3:59 pm
Posts: 6817
Full Member
 

Try running auto_close macros that shut the worbook without saving, now that's living dangerously.


 
Posted : 15/07/2009 9:23 pm