Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Warzel
 
Posts: n/a
Default removing duplicates testing in 2 coloms

I want to remove duplicates from a sheet testing for values in two coloms

in the first colom are hunderds of firstnames
in the second colom hunderds of lastnames

What i want is to remove duplicates when both first and last name in a
row are equal
--

Mvg Warzel
  #2   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

You could mark the duplicates, then delete the marked rows. Try the
following on a copy of your workbook:

In a blank column, in the first row with data, enter a formula that
compares the two columns to previous entries, e.g.:

=IF(SUMPRODUCT(--($A$1:A2=A2),--($B$1:B2=B2))1,1,"")

Copy the formula down to the last row of data
Select the column with the formula
Choose EditGo to
Click the Special button
Choose Formulas, and clear all the check boxes except Numbers
Click OK

Choose EditDelete
Select Entire Row
Click OK


Warzel wrote:
I want to remove duplicates from a sheet testing for values in two coloms

in the first colom are hunderds of firstnames
in the second colom hunderds of lastnames

What i want is to remove duplicates when both first and last name in a
row are equal



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #3   Report Post  
Herbert Seidenberg
 
Posts: n/a
Default

Select all names, including headers. Name selection ArrayS.
Select equal size destination area and name it ArrayD.

Data | Filter | Advanced Filter | Copy to another location |
List range: ArrayS | Copy to: ArrayD | Unique records only | OK

Instead of | Copy to another location |, you can | Filter the list,
in-place |,
but this merely hides the duplicate rows.

  #4   Report Post  
Ola
 
Posts: n/a
Default

Try this:
A2: =IF(SUMPRODUCT(--(A2&B2=$A$2:A2&$B$2:B2))1,"Duplicate","")
A3: copy down

Ola Sandstrom

Note:
The & joins the First&Lastname.
-- is a trick to turn True into 1 and False into 0, so they can be added.
The 2nd time a Names comes up will be called a duplicate due to the $A$2 and
$B$2. If it should be the opposite (the last name is the most current
address) 'fix' the last cell ($A$500$ and $B$500$) instead of the first cell
($A$2 and $B$2).

You can also use the formula in combination with Conditional formatting :
Formula is =... to highlight new duplicates as they are entered.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find duplicates R. Choate Excel Discussion (Misc queries) 5 November 28th 04 10:14 PM


All times are GMT +1. The time now is 07:53 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"