![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 7
|
I have a list of 10 numbers (columns J7 thru S7) and I want to tabulate all of the combinations of 2 numbers or 3 numbers, etc. Any suggestions on how to do this?
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
2 excellent suggestions here, from a similar earlier post
http://www.mrexcel.com/board/viewtop...c=5621&forum=2
__________________
:: Pharma Z - Family drugstore :: |
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 7
|
Chris, I tried the VBA solution from Tommy Bak....but it did not work. I will admit that I am a novice when it comes to VBA, so I may be doing something wrong. Is there not a "non-macro" solution to this problem??
|
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
Quote:
any permutation of 10 numbers from any 10 numbers is a possible 3,628,800 combinations which may be difficult to tabulate given Excel's column and row limits of 255 and 65,536 respectively.... I'm not entirely sure a non-VBA method is possible, although I'd be very surprised if there is one....
__________________
:: Pharma Z - Family drugstore :: |
|
|
|
|
|
|
#5 |
|
New Member
Join Date: Apr 2002
Posts: 7
|
No....I mainly am interested in the groups of two numbers. But I sometimes will have a larger population of numbers to choose from (say 15 or 20), but I figured if I could figure out the 10 number procedure, I could apply it to a larger set of numbers.
|
|
|
|
|
|
#6 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
how about a simple 10x10 grid ?
with your population of 10 numbers along the x and y axes... here's a simpler 5x5 example... just copy the formula in the first cell over then down (this assumes you want to add them)
resulting in :
[ This Message was edited by: Chris Davison on 2002-04-30 13:39 ] |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Feb 2002
Posts: 3,065
|
chris that looks good if a shade wide.
well done nice!
__________________
Free Excel based Web Toolbar available here. Jack in the UK J & R Excel Solutions "making Excel work for you" |
|
|
|
|
|
#8 | |
|
New Member
Join Date: Apr 2002
Posts: 7
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|