PC Review


Reply
Thread Tools Rate Thread

How to delete duplicates based on data in 2 columns?

 
 
Max
Guest
Posts: n/a
 
      9th Apr 2008
Hello,

I have a 2 column spreadsheet. Column A contains a part number. Column B
contains a country of origin. Column A may or may not contain duplicate part
numbers and Column B may or may not contain a duplicate country of origin's.


WS23403 USA
WS23403 USA
WS23600 MEXICO
WS23600 USA
WS23600 USA

What I want to do is to get rid of those lines that are duplicates.

In the example I'd want to get rid of the first line and the last line.
I've played with countif but it really isnt useful in this case.
Suggestions?

Regards
Max
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      9th Apr 2008
I'd use a helper column and concatenate the values:

=a1&"..."&b1
and drag down.

Then use the techniques at Chip Pearson's site:
http://www.cpearson.com/excel/Duplicates.aspx

Max wrote:
>
> Hello,
>
> I have a 2 column spreadsheet. Column A contains a part number. Column B
> contains a country of origin. Column A may or may not contain duplicate part
> numbers and Column B may or may not contain a duplicate country of origin's.
>
>
> WS23403 USA
> WS23403 USA
> WS23600 MEXICO
> WS23600 USA
> WS23600 USA
>
> What I want to do is to get rid of those lines that are duplicates.
>
> In the example I'd want to get rid of the first line and the last line.
> I've played with countif but it really isnt useful in this case.
> Suggestions?
>
> Regards
> Max


--

Dave Peterson
 
Reply With Quote
 
Max
Guest
Posts: n/a
 
      9th Apr 2008
Thanks Dave... that did help. I also found that filtering for unique records
was helpful.

Regards
Max

"Dave Peterson" wrote:

> I'd use a helper column and concatenate the values:
>
> =a1&"..."&b1
> and drag down.
>
> Then use the techniques at Chip Pearson's site:
> http://www.cpearson.com/excel/Duplicates.aspx
>
> Max wrote:
> >
> > Hello,
> >
> > I have a 2 column spreadsheet. Column A contains a part number. Column B
> > contains a country of origin. Column A may or may not contain duplicate part
> > numbers and Column B may or may not contain a duplicate country of origin's.
> >
> >
> > WS23403 USA
> > WS23403 USA
> > WS23600 MEXICO
> > WS23600 USA
> > WS23600 USA
> >
> > What I want to do is to get rid of those lines that are duplicates.
> >
> > In the example I'd want to get rid of the first line and the last line.
> > I've played with countif but it really isnt useful in this case.
> > Suggestions?
> >
> > Regards
> > Max

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete Row based on 2 duplicates Les Microsoft Excel Programming 3 29th Jul 2008 07:33 PM
Find Duplicates Rows Based Own Multiple Columns Cue Microsoft Excel Misc 2 20th Jun 2008 11:43 PM
VBA Delete row based on multiple columns of data jlclyde Microsoft Excel Misc 3 26th Nov 2007 07:46 PM
Finding duplicates based on 2 columns omnicrondelicious@gmail.com Microsoft Excel Worksheet Functions 5 27th Mar 2007 10:31 PM
Finding Duplicates Based on Two Columns =?Utf-8?B?Um9iZXJ0?= Microsoft Access 4 24th Oct 2006 03:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:26 PM.