Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Show only rows with duplicate values in a column?

I've a spreadsheet with thousands of rows of people (last name, first
name, address, etc.)
I need to weed out duplicates, and sorting by lastname, firstname and
then scanning the firstnames for duplicates that have the same last
name is onerous!!

Is there a way to have Excel (2003) show only rows in which there are
more than one of a given value in a column?
So let's say there's only one row with a value of "Jones" in the
lastname, it'll now show that row but it'll show the three rows with
"Smith" in the column?

(Would be really cool if it showed rows in which there are more than
one with the same value in TWO columns, but I won't dream that big.)

Thanks for any suggestions!
Liam
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 913
Default Show only rows with duplicate values in a column?

On Wed, 1 Jul 2009 07:00:42 -0700 (PDT), Mechphisto
wrote:

I've a spreadsheet with thousands of rows of people (last name, first
name, address, etc.)
I need to weed out duplicates, and sorting by lastname, firstname and
then scanning the firstnames for duplicates that have the same last
name is onerous!!

Is there a way to have Excel (2003) show only rows in which there are
more than one of a given value in a column?
So let's say there's only one row with a value of "Jones" in the
lastname, it'll now show that row but it'll show the three rows with
"Smith" in the column?

(Would be really cool if it showed rows in which there are more than
one with the same value in TWO columns, but I won't dream that big.)

Thanks for any suggestions!
Liam


If your data is in column A and B from row 1 to row 100, you can
introduce a helper column C and put the following formula in C1:
=A1&B1

(this could be expanded to combine as many columns you want, but this
example just takes two columns)

Copy cell C1 down as far as you have data in columns A and B, to row
100 in this example.

In cell D1 you put the following formula:

=IF(SUMPRODUCT(--(C$1:C$100=C2))1,"DUPLICATE","")

change the 100 to suit the number of data row that you have.

Copy cell D1 down to D100.

You can now apply an autofilter on column D to only display the rows
with DUPLICATE.

Hope this helps / Lars-Åke

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
Show only rows with duplicate values in a column? BRO[_2_] Excel Discussion (Misc queries) 2 July 2nd 09 08:53 PM
duplicate data to show/print in a column PAT Excel Discussion (Misc queries) 1 August 5th 08 04:06 PM
Delete rows with duplicate values One-Leg Excel Discussion (Misc queries) 1 February 17th 08 06:49 PM
one column of cells show ####. Values show when I open it. Help grantljg Excel Discussion (Misc queries) 3 September 18th 07 09:19 PM
Delete rows with duplicate values Smohrman Excel Worksheet Functions 14 May 5th 06 12:20 PM


All times are GMT +1. The time now is 03:08 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"