Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Steve-in-austin
 
Posts: n/a
Default List combinations of a range

I need a formula to find the actual combinations in a 2-column, 50-row range.
Both columns are constrained to 10 text characters if that makes it easier.
e.g.
Data: (may be in random order)
A A
A B
B A
B B
B C
B C
B B
J A
J A

Looking for this result:
A A
A B
B A
B B
B C
J A

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default List combinations of a range

Try this:

With your list is in A1:B100, with A1 and B1 as the Heading: eg MyCol_A,
MyCol_B, respectively.

D1: MyCol_A (the same col heading as A1)
E1: MyCol_B (the same col heading as B1)

Select your list (A1:B100)
<Data<Filter<Advanced Filter
List Range: (already selected $A$1:$B$100)
Check: Copy to another location
Copy to: $D$1:$E$1 (which contains the col headings)
Check: Unique Records
Click the [OK] button

That will create a list, under D1:E1, of the unique combinations in A:B

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Steve-in-austin" wrote:

I need a formula to find the actual combinations in a 2-column, 50-row range.
Both columns are constrained to 10 text characters if that makes it easier.
e.g.
Data: (may be in random order)
A A
A B
B A
B B
B C
B C
B B
J A
J A

Looking for this result:
A A
A B
B A
B B
B C
J A

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
Steve-in-austin
 
Posts: n/a
Default List combinations of a range

I need to do this automatically if possible; the results will be linked to
another worksheet.

"Ron Coderre" wrote:

Try this:

With your list is in A1:B100, with A1 and B1 as the Heading: eg MyCol_A,
MyCol_B, respectively.

D1: MyCol_A (the same col heading as A1)
E1: MyCol_B (the same col heading as B1)

Select your list (A1:B100)
<Data<Filter<Advanced Filter
List Range: (already selected $A$1:$B$100)
Check: Copy to another location
Copy to: $D$1:$E$1 (which contains the col headings)
Check: Unique Records
Click the [OK] button

That will create a list, under D1:E1, of the unique combinations in A:B

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Steve-in-austin" wrote:

I need a formula to find the actual combinations in a 2-column, 50-row range.
Both columns are constrained to 10 text characters if that makes it easier.
e.g.
Data: (may be in random order)
A A
A B
B A
B B
B C
B C
B B
J A
J A

Looking for this result:
A A
A B
B A
B B
B C
J A

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
Steve-in-austin
 
Posts: n/a
Default List combinations of a range

I forgot to mention, without a macro. Thx

"Ron Coderre" wrote:

Try this:

With your list is in A1:B100, with A1 and B1 as the Heading: eg MyCol_A,
MyCol_B, respectively.

D1: MyCol_A (the same col heading as A1)
E1: MyCol_B (the same col heading as B1)

Select your list (A1:B100)
<Data<Filter<Advanced Filter
List Range: (already selected $A$1:$B$100)
Check: Copy to another location
Copy to: $D$1:$E$1 (which contains the col headings)
Check: Unique Records
Click the [OK] button

That will create a list, under D1:E1, of the unique combinations in A:B

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Steve-in-austin" wrote:

I need a formula to find the actual combinations in a 2-column, 50-row range.
Both columns are constrained to 10 text characters if that makes it easier.
e.g.
Data: (may be in random order)
A A
A B
B A
B B
B C
B C
B B
J A
J A

Looking for this result:
A A
A B
B A
B B
B C
J A

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default List combinations of a range

Ok...see if this ARRAY FORMULA* works for you....

Same rules as my previous post:
With your list is in A1:B100, with A1 and B1 as the Heading: eg MyCol_A,
MyCol_B, respectively.

D1: Unique Combos
D2:
=IF(SUMPRODUCT(($A$2:$A$10&$B$2:$B$10<"")*ISERROR (MATCH($A$2:$A$10&$B$2:$B$10,$D$1:D1,0)))<0,INDEX ($A$2:$A$10&$B$2:$B$10,MATCH(TRUE,ISERROR(IF(ISBLA NK($A$2:$A$10),FALSE,MATCH($A$2:$A$10&$B$2:$B$10,$ D$1:$D1,0))),0),1),"")

*Note: For that array formula, hold down [Ctrl] and [Shift] when you press
[Enter], instead of just pressing [Enter].

Copy from D2 into D3 and down as far as you need.

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Steve-in-austin" wrote:

I forgot to mention, without a macro. Thx

"Ron Coderre" wrote:

Try this:

With your list is in A1:B100, with A1 and B1 as the Heading: eg MyCol_A,
MyCol_B, respectively.

D1: MyCol_A (the same col heading as A1)
E1: MyCol_B (the same col heading as B1)

Select your list (A1:B100)
<Data<Filter<Advanced Filter
List Range: (already selected $A$1:$B$100)
Check: Copy to another location
Copy to: $D$1:$E$1 (which contains the col headings)
Check: Unique Records
Click the [OK] button

That will create a list, under D1:E1, of the unique combinations in A:B

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Steve-in-austin" wrote:

I need a formula to find the actual combinations in a 2-column, 50-row range.
Both columns are constrained to 10 text characters if that makes it easier.
e.g.
Data: (may be in random order)
A A
A B
B A
B B
B C
B C
B B
J A
J A

Looking for this result:
A A
A B
B A
B B
B C
J A

Thanks



  #6   Report Post  
Posted to microsoft.public.excel.misc
Steve-in-austin
 
Posts: n/a
Default List combinations of a range

This is pretty spiffy--maybe better! I would add that the various column
ranges i.e. B2:B10 etc, must be extended to the bottom of the array.

"Ron Coderre" wrote:

Ok...see if this ARRAY FORMULA* works for you....

Same rules as my previous post:
With your list is in A1:B100, with A1 and B1 as the Heading: eg MyCol_A,
MyCol_B, respectively.

D1: Unique Combos
D2:
=IF(SUMPRODUCT(($A$2:$A$10&$B$2:$B$10<"")*ISERROR (MATCH($A$2:$A$10&$B$2:$B$10,$D$1:D1,0)))<0,INDEX ($A$2:$A$10&$B$2:$B$10,MATCH(TRUE,ISERROR(IF(ISBLA NK($A$2:$A$10),FALSE,MATCH($A$2:$A$10&$B$2:$B$10,$ D$1:$D1,0))),0),1),"")

*Note: For that array formula, hold down [Ctrl] and [Shift] when you press
[Enter], instead of just pressing [Enter].

Copy from D2 into D3 and down as far as you need.

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Steve-in-austin" wrote:

I forgot to mention, without a macro. Thx

"Ron Coderre" wrote:

Try this:

With your list is in A1:B100, with A1 and B1 as the Heading: eg MyCol_A,
MyCol_B, respectively.

D1: MyCol_A (the same col heading as A1)
E1: MyCol_B (the same col heading as B1)

Select your list (A1:B100)
<Data<Filter<Advanced Filter
List Range: (already selected $A$1:$B$100)
Check: Copy to another location
Copy to: $D$1:$E$1 (which contains the col headings)
Check: Unique Records
Click the [OK] button

That will create a list, under D1:E1, of the unique combinations in A:B

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Steve-in-austin" wrote:

I need a formula to find the actual combinations in a 2-column, 50-row range.
Both columns are constrained to 10 text characters if that makes it easier.
e.g.
Data: (may be in random order)
A A
A B
B A
B B
B C
B C
B B
J A
J A

Looking for this result:
A A
A B
B A
B B
B C
J A

Thanks

  #7   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default List combinations of a range

Thanks for the feedback


I would add that the various column ranges i.e. B2:B10 etc, must be extended to the bottom of the array.


I played with a shrinky-dink version of the formula on my PC and forgot to
extend the ranges to row 100 when I posted to the newsgroup.....I was sure
you'd figure that out right away, though...and you did!.

***********
Regards,
Ron

XL2002, WinXP


"Steve-in-austin" wrote:

This is pretty spiffy--maybe better! I would add that the various column
ranges i.e. B2:B10 etc, must be extended to the bottom of the array.

"Ron Coderre" wrote:

Ok...see if this ARRAY FORMULA* works for you....

Same rules as my previous post:
With your list is in A1:B100, with A1 and B1 as the Heading: eg MyCol_A,
MyCol_B, respectively.

D1: Unique Combos
D2:
=IF(SUMPRODUCT(($A$2:$A$10&$B$2:$B$10<"")*ISERROR (MATCH($A$2:$A$10&$B$2:$B$10,$D$1:D1,0)))<0,INDEX ($A$2:$A$10&$B$2:$B$10,MATCH(TRUE,ISERROR(IF(ISBLA NK($A$2:$A$10),FALSE,MATCH($A$2:$A$10&$B$2:$B$10,$ D$1:$D1,0))),0),1),"")

*Note: For that array formula, hold down [Ctrl] and [Shift] when you press
[Enter], instead of just pressing [Enter].

Copy from D2 into D3 and down as far as you need.

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Steve-in-austin" wrote:

I forgot to mention, without a macro. Thx

"Ron Coderre" wrote:

Try this:

With your list is in A1:B100, with A1 and B1 as the Heading: eg MyCol_A,
MyCol_B, respectively.

D1: MyCol_A (the same col heading as A1)
E1: MyCol_B (the same col heading as B1)

Select your list (A1:B100)
<Data<Filter<Advanced Filter
List Range: (already selected $A$1:$B$100)
Check: Copy to another location
Copy to: $D$1:$E$1 (which contains the col headings)
Check: Unique Records
Click the [OK] button

That will create a list, under D1:E1, of the unique combinations in A:B

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Steve-in-austin" wrote:

I need a formula to find the actual combinations in a 2-column, 50-row range.
Both columns are constrained to 10 text characters if that makes it easier.
e.g.
Data: (may be in random order)
A A
A B
B A
B B
B C
B C
B B
J A
J A

Looking for this result:
A A
A B
B A
B B
B C
J A

Thanks

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
FORMULA at Source range (in Data-validation-List) gives wrong re Eddy Stan Excel Worksheet Functions 6 March 17th 06 07:19 AM
Excel auto filtering to find a range of dates in a list Candy Excel Discussion (Misc queries) 2 January 31st 06 02:32 PM
named range, data validation: list non-selected items, and new added items KR Excel Discussion (Misc queries) 1 June 24th 05 05:21 AM
I have a list of dates that I need to count based on a date range ejb030353 Excel Worksheet Functions 4 November 24th 04 02:27 PM
How can I sum information in a list with a date range? Dave Excel Worksheet Functions 2 November 23rd 04 08:17 PM


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