Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
umniy
 
Posts: n/a
Default filtering unique in multiple columns


I have a range of data in multiple (10) columns with headers. Headers
may read: Name Description Holder Size Length, etc. Some of the data in
columns are duplicates. I want to filter only unique record pairs in
columns Name and Description, extracting it to a different place in the
sheet. Example of data:

Name Description Holder Size Length
.5 DRILL chuck 1/2 8
.5 DRILL collet 1/2 8
.5 REAMER collet 1/2 7
.5 DRILL chuck 1/2 7
etc.
As you will see, entries in rows 1, 2 and 5 have the same Name and
Description and may have different Holder, Size or Length. Row 4 has
the same Name, but different Description, the rest may be anything.
I want to filter the data, so that I will only get two rows: row 2 (or
3, or 5) and 4, which have unique (.5 DRILL) and (.5 REAMER)
combinations. The trick is to pull the rest of the records in rows C,
D, ... along (and I do not care which row out of multiple selection I
get; for instance, I would be happy to get either of three possible
data combination for a result of a unique .5 DRILL pair)
.5 DRILL chuck 1/2 8,
.5 DRILL collet 1/2 8,
.5 DRILL chuck 1/2 7

If I set List Range to include all data, it treats the entries in all
rows (including C, D, ...) as unique criteria. If I set List Range to
just columns A and B, it does the trick, but I would not get the rest
of the entries in columns C, D, ... copied.
Is this posiible at all to do?
Thanks for the help.


--
umniy
------------------------------------------------------------------------
umniy's Profile: http://www.excelforum.com/member.php...o&userid=32077
View this thread: http://www.excelforum.com/showthread...hreadid=518306

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Richard Buttrey
 
Posts: n/a
Default filtering unique in multiple columns

On Thu, 2 Mar 2006 10:34:24 -0600, umniy
wrote:


I have a range of data in multiple (10) columns with headers. Headers
may read: Name Description Holder Size Length, etc. Some of the data in
columns are duplicates. I want to filter only unique record pairs in
columns Name and Description, extracting it to a different place in the
sheet. Example of data:

Name Description Holder Size Length
.5 DRILL chuck 1/2 8
.5 DRILL collet 1/2 8
.5 REAMER collet 1/2 7
.5 DRILL chuck 1/2 7
etc.
As you will see, entries in rows 1, 2 and 5 have the same Name and
Description and may have different Holder, Size or Length. Row 4 has
the same Name, but different Description, the rest may be anything.
I want to filter the data, so that I will only get two rows: row 2 (or
3, or 5) and 4, which have unique (.5 DRILL) and (.5 REAMER)
combinations. The trick is to pull the rest of the records in rows C,
D, ... along (and I do not care which row out of multiple selection I
get; for instance, I would be happy to get either of three possible
data combination for a result of a unique .5 DRILL pair)
.5 DRILL chuck 1/2 8,
.5 DRILL collet 1/2 8,
.5 DRILL chuck 1/2 7

If I set List Range to include all data, it treats the entries in all
rows (including C, D, ...) as unique criteria. If I set List Range to
just columns A and B, it does the trick, but I would not get the rest
of the entries in columns C, D, ... copied.
Is this posiible at all to do?
Thanks for the help.


I think the best solution would be an additional helper column.
Assuming Name & Description are in cols. A & B then in the helper
column concatenate these with =A1&B1 then copy this down your list.

Now you can do a unique filter on this helper column.

HTH
Richard Buttrey
__
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
umniy
 
Posts: n/a
Default filtering unique in multiple columns


Thanks for the help,
I concatenated data in columns A and B. When I filter data only in that
column, it works fine. But I need to copy all the rest of data in other
columns with it. No matter what I do, it does not filter, trying to
recognize unique records in all columns, not just in that helper
column.
I am starting to beleive that my task is impossible to do.


--
umniy
------------------------------------------------------------------------
umniy's Profile: http://www.excelforum.com/member.php...o&userid=32077
View this thread: http://www.excelforum.com/showthread...hreadid=518306

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default filtering unique in multiple columns

Once you have added the helper column to join A1 and B1, you can then
sort all the data using this field - I assume this is field 11, or
column K. You can then add another helper column L and enter this
formula in L2:

=IF(K2=K1,"Duplicate","Unique")

Copy this formula down and then apply autofilter to this column and
select Unique. You can then highlight all the visible rows for the
first 10 columns, click <copy then move somewhere else (another
sheet?) and paste your data - only the visible data will be pasted, and
of course you will have data in all your columns as you requested.

Hope this helps.

Pete

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
davidthegolfer
 
Posts: n/a
Default filtering unique in multiple columns


I too had been struggling with Filter/Advanced/Unique and could not
understand why it wouldn't work. I eventually gave up, searched here
and used your technique. Worked for me.
Thank you very much.
Kind regards
David


--
davidthegolfer
------------------------------------------------------------------------
davidthegolfer's Profile: http://www.excelforum.com/member.php...o&userid=31806
View this thread: http://www.excelforum.com/showthread...hreadid=518306

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
How to print multiple columns on same page ocpsduke Excel Discussion (Misc queries) 2 October 8th 05 06:19 PM
how do I filter for 1 variable in multiple columns California Excel Worksheet Functions 1 March 18th 05 10:36 PM
drop down list multiple columns c Excel Discussion (Misc queries) 9 January 27th 05 03:13 PM
Drop-down selection fills data across multiple columns Tom Excel Discussion (Misc queries) 7 December 2nd 04 12:43 AM
compare unique identifiers in multiple ranges bawilli_91125 Charts and Charting in Excel 1 November 30th 04 06:34 PM


All times are GMT +1. The time now is 07:21 PM.

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

About Us

"It's about Microsoft Excel"