Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 79
Default Unique couples of entries

I have the following model:

............A........B
1.........1........blank
2.........2........a
3.........3........blank
4.........1........1
5.........2........2
6.........3........blank
7.........1........1
8.........2........a
9.........3........blank


I need to show, in D1:E1 and below, the unique combinations (couples)
of entries.

In the exemple above:

............D........E
1.........1........blank
2.........2........a
3.........1........1
4.........2........2
5.........3........blank

Any ideas?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Unique couples of entries

Add headers to your data if you don't have them already.

Select A1:Bxxx
Data|Filter|advanced filter
Check copy to another location
Type D1 in that "Copy to:" box
Check "Unique records only"

remove row 1 if you don't want the headers

And sort the data in D1:E### if you want.


vsoler wrote:

I have the following model:

...........A........B
1.........1........blank
2.........2........a
3.........3........blank
4.........1........1
5.........2........2
6.........3........blank
7.........1........1
8.........2........a
9.........3........blank

I need to show, in D1:E1 and below, the unique combinations (couples)
of entries.

In the exemple above:

...........D........E
1.........1........blank
2.........2........a
3.........1........1
4.........2........2
5.........3........blank

Any ideas?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Unique couples of entries

Leave row row #1 for labels

In column C enter:
=A2 & B2 and copy down

In column D enter:
=COUNTIF($C$2:C2,C2)-1 and copy down

v1 v2 v3 v4
1 blank 1blank 0
2 a 2a 0
3 blank 3blank 0
1 1 11 0
2 2 22 0
3 blank 3blank 1
1 1 11 1
2 a 2a 1
3 blank 3blank 2


Then switch on AutoFilter on column D to show only 0:

v1 v2 v3 v4
1 blank 1blank 0
2 a 2a 0
3 blank 3blank 0
1 1 11 0
2 2 22 0

--
Gary''s Student - gsnu200725


"vsoler" wrote:

I have the following model:

............A........B
1.........1........blank
2.........2........a
3.........3........blank
4.........1........1
5.........2........2
6.........3........blank
7.........1........1
8.........2........a
9.........3........blank


I need to show, in D1:E1 and below, the unique combinations (couples)
of entries.

In the exemple above:

............D........E
1.........1........blank
2.........2........a
3.........1........1
4.........2........2
5.........3........blank

Any ideas?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Unique couples of entries

Try this:

rng1 is a define name range in column A
rng2 is a define name range in column B

D1
=IF(ISERR(SMALL(IF(FREQUENCY(MATCH(rng1&rng2,rng1& rng2,0),MATCH(rng1&rng2,rng1&rng2,0))0,ROW(INDIRE CT("1:"&ROWS(rng1)))),ROWS($1:1))),"",INDEX(rng1,S MALL(IF(FREQUENCY(MATCH(rng1&rng2,rng1&rng2,0),MAT CH(rng1&rng2,rng1&rng2,0))0,ROW(INDIRECT("1:"&ROW S(rng1)))),ROWS($1:1))))

ctrl+shift+enter, not just enter
copy down

E1
=IF(D1="","",INDEX(rng2&"",SMALL(IF(FREQUENCY(MATC H(rng1&rng2,rng1&rng2,0),MATCH(rng1&rng2,rng1&rng2 ,0))0,ROW(INDIRECT("1:"&ROWS(rng1)))),ROWS($1:1)) ))

ctrl+shift+enter, not just enter
copy down



"vsoler" wrote:

I have the following model:

............A........B
1.........1........blank
2.........2........a
3.........3........blank
4.........1........1
5.........2........2
6.........3........blank
7.........1........1
8.........2........a
9.........3........blank


I need to show, in D1:E1 and below, the unique combinations (couples)
of entries.

In the exemple above:

............D........E
1.........1........blank
2.........2........a
3.........1........1
4.........2........2
5.........3........blank

Any ideas?


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
Unique Entries SJT Excel Discussion (Misc queries) 10 November 11th 06 02:02 PM
Counting unique entries DianeandChipps Excel Discussion (Misc queries) 1 October 14th 06 07:35 PM
Problem - When couples have different last names lburg801 Excel Discussion (Misc queries) 7 October 31st 05 01:47 PM
Unique Entries Kanwaljit Singh Dhunna Excel Worksheet Functions 1 April 22nd 05 02:59 AM
Unique Entries Jason Morin Excel Worksheet Functions 0 April 21st 05 05:41 PM


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