Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 80
Default Filter unique on key fields only

I know how Advanced Filter Unique works, but I would like to have something
different. Suppose I have a little table like this :

Henk 1 4 6 7
Koos 2 5 7 1
Toos 4 3 2 4
Henk 1 5 7 3

If I use Advanced Filter Unique records, the result will be the same as the
tabel itself, because the table contains unique records only. But I want to
see Henk only once with data 1 4 6 7, or with 1 5 7 3. E.g.

Henk 1 4 6 7
Koos 2 5 7 1
Toos 4 3 2 4

How do I do this?

Thanks in advance filter,

Henk




  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default Filter unique on key fields only

Old but kuldgy way - only filter the single column of names (copied to a new
location) then use VLOOKUP (or other techniques such as OFFSET/MATCH) to pull
the other values in for each name

if you have Excel 2007 you can use the "Remove duplicates" function on the
data ribbon which allows you to define which fields to check for dupes, in
your case you tick just the name column and the second instance of Henk would
be removed.

"Henk" wrote:

I know how Advanced Filter Unique works, but I would like to have something
different. Suppose I have a little table like this :

Henk 1 4 6 7
Koos 2 5 7 1
Toos 4 3 2 4
Henk 1 5 7 3

If I use Advanced Filter Unique records, the result will be the same as the
tabel itself, because the table contains unique records only. But I want to
see Henk only once with data 1 4 6 7, or with 1 5 7 3. E.g.

Henk 1 4 6 7
Koos 2 5 7 1
Toos 4 3 2 4

How do I do this?

Thanks in advance filter,

Henk




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 80
Default Filter unique on key fields only

Adam,

That is exactly what I did (VLOOKUP). I do have Excel 2007 and I know about
the beautiful "Remove duplicates" button. But I am training some people that
use Excel 2003.

Anyhow,

tHenks for your reply.

"AdamV" wrote:

Old but kuldgy way - only filter the single column of names (copied to a new
location) then use VLOOKUP (or other techniques such as OFFSET/MATCH) to pull
the other values in for each name

if you have Excel 2007 you can use the "Remove duplicates" function on the
data ribbon which allows you to define which fields to check for dupes, in
your case you tick just the name column and the second instance of Henk would
be removed.

"Henk" wrote:

I know how Advanced Filter Unique works, but I would like to have something
different. Suppose I have a little table like this :

Henk 1 4 6 7
Koos 2 5 7 1
Toos 4 3 2 4
Henk 1 5 7 3

If I use Advanced Filter Unique records, the result will be the same as the
tabel itself, because the table contains unique records only. But I want to
see Henk only once with data 1 4 6 7, or with 1 5 7 3. E.g.

Henk 1 4 6 7
Koos 2 5 7 1
Toos 4 3 2 4

How do I do this?

Thanks in advance filter,

Henk




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Filter unique on key fields only

Try this little number, which extracts the uniques* dynamically into adjacent
cols to the right ..
*1st occurences of the key col (names)

Source data assumed in cols A to E, from row1 down, with key col = col A
(names)

In G1:
=IF(A1="","",IF(COUNTIF(A$1:A1,A1)1,"",ROW()))

In H1:
=IF(ROW()COUNT($G:$G),"",INDEX(A:A,SMALL($G:$G,RO W())))
Copy H1 to K1. Select G1:K1, fill down to cover the max expected extent of
source data, say down to K200. Minimize/hide away col G. Cols H to K will
auto-return the expected results, all neatly bunched at the top.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Henk" wrote:
.. I would like to have something different.
Suppose I have a little table like this :
Henk 1 4 6 7
Koos 2 5 7 1
Toos 4 3 2 4
Henk 1 5 7 3

If I use Advanced Filter Unique records, the result will be the same as the
tabel itself, because the table contains unique records only. But I want to
see Henk only once with data 1 4 6 7, or with 1 5 7 3. E.g.

Henk 1 4 6 7
Koos 2 5 7 1
Toos 4 3 2 4


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 80
Default Filter unique on key fields only

Max,

Perfect solution!

tHenks


"Max" wrote:

Try this little number, which extracts the uniques* dynamically into adjacent
cols to the right ..
*1st occurences of the key col (names)

Source data assumed in cols A to E, from row1 down, with key col = col A
(names)

In G1:
=IF(A1="","",IF(COUNTIF(A$1:A1,A1)1,"",ROW()))

In H1:
=IF(ROW()COUNT($G:$G),"",INDEX(A:A,SMALL($G:$G,RO W())))
Copy H1 to K1. Select G1:K1, fill down to cover the max expected extent of
source data, say down to K200. Minimize/hide away col G. Cols H to K will
auto-return the expected results, all neatly bunched at the top.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Henk" wrote:
.. I would like to have something different.
Suppose I have a little table like this :
Henk 1 4 6 7
Koos 2 5 7 1
Toos 4 3 2 4
Henk 1 5 7 3

If I use Advanced Filter Unique records, the result will be the same as the
tabel itself, because the table contains unique records only. But I want to
see Henk only once with data 1 4 6 7, or with 1 5 7 3. E.g.

Henk 1 4 6 7
Koos 2 5 7 1
Toos 4 3 2 4




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Filter unique on key fields only

Welcome, Henk. Glad you liked it, and thanks for feeding back.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Henk" wrote in message
...
Max,

Perfect solution!

tHenks



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Filter unique on key fields only

Make sure your list range is only column A.

Henk wrote:

I know how Advanced Filter Unique works, but I would like to have something
different. Suppose I have a little table like this :

Henk 1 4 6 7
Koos 2 5 7 1
Toos 4 3 2 4
Henk 1 5 7 3

If I use Advanced Filter Unique records, the result will be the same as the
tabel itself, because the table contains unique records only. But I want to
see Henk only once with data 1 4 6 7, or with 1 5 7 3. E.g.

Henk 1 4 6 7
Koos 2 5 7 1
Toos 4 3 2 4

How do I do this?

Thanks in advance filter,

Henk


--

Dave Peterson
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 80
Default Filter unique on key fields only

Dave,

I that works, but that is exactly what I do not want. I want the data next
to the unique Henk (one ore the other), not only Henk.

Anyhow, tHenks for your reply.

"Dave Peterson" wrote:

Make sure your list range is only column A.

Henk wrote:

I know how Advanced Filter Unique works, but I would like to have something
different. Suppose I have a little table like this :

Henk 1 4 6 7
Koos 2 5 7 1
Toos 4 3 2 4
Henk 1 5 7 3

If I use Advanced Filter Unique records, the result will be the same as the
tabel itself, because the table contains unique records only. But I want to
see Henk only once with data 1 4 6 7, or with 1 5 7 3. E.g.

Henk 1 4 6 7
Koos 2 5 7 1
Toos 4 3 2 4

How do I do this?

Thanks in advance filter,

Henk


--

Dave Peterson

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Filter unique on key fields only

If you're filtering to a new location, then try...

Use the advanced filter, but filter in place (list range still just column A)
Then copy the visible rows to the new location.

Henk wrote:

Dave,

I that works, but that is exactly what I do not want. I want the data next
to the unique Henk (one ore the other), not only Henk.

Anyhow, tHenks for your reply.

"Dave Peterson" wrote:

Make sure your list range is only column A.

Henk wrote:

I know how Advanced Filter Unique works, but I would like to have something
different. Suppose I have a little table like this :

Henk 1 4 6 7
Koos 2 5 7 1
Toos 4 3 2 4
Henk 1 5 7 3

If I use Advanced Filter Unique records, the result will be the same as the
tabel itself, because the table contains unique records only. But I want to
see Henk only once with data 1 4 6 7, or with 1 5 7 3. E.g.

Henk 1 4 6 7
Koos 2 5 7 1
Toos 4 3 2 4

How do I do this?

Thanks in advance filter,

Henk


--

Dave Peterson


--

Dave Peterson
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
count unique fields megz12 Excel Worksheet Functions 2 February 8th 08 04:53 PM
Counting Unique Text Fields MWall Excel Discussion (Misc queries) 3 September 11th 07 08:55 PM
unique filter results in some non-unique records. Serials Librarian Excel Discussion (Misc queries) 2 May 26th 06 09:58 PM
Vlookup for non-unique fields EdwardG Excel Discussion (Misc queries) 0 May 13th 06 09:17 AM
Return unique fields only - but not a filter? Matt Excel Worksheet Functions 7 October 20th 05 12:12 AM


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