# Produce A List Of Combinations From A Range Of Numbers?

May 9, 2014
Am looking for an easy way to produce a list of combinations (maximum 6 numbers) from a range of numbers listed in 6 different columns:

Example

Column A contains : 1,2,3

Column B contains : 7,8,11,15

Column C contains : 12,16,18,19

Column D contains : 17,30,31

Column E contains : 30,31,32,33,34

Column F contains : 37,39,40

The rules are:

In each combination of 6 numbers, numbers should always be taken from ALL 6 columns. In each combination, numbers cannot repeat.

show me a formula to arrive the results.

View 3 Replies
ADVERTISEMENT
Dec 2, 2009

I have a workbook with 2 worksheets, Sheet1 & Sheet2.

Sheet1 has a list of products on it, with a code, pack size and cost.

Sheet2 has got 8 columns in it.

The first column will be A , B , C

The second will be D, E, F

Third will be G, H, I

Going right through to column 8 which will be V, W X

In the second column in each on I will be have a (sell by date) So B, E, H, through to W will have sell by dates in them.

What I am looking for is a macro that will give me a list of short sell by dates when I click the button. So if today’s date is 02/12/09 when the button is clicked it will give me a list of all the product that have lets say a month sell by date left, I would like to be able to change the month to anything I want, just in case I want to do a longer check on the sell by date.

When it finds a short date I would like it to check against the code, so in the first column the code will be in A, it will match that code up against the code in Sheet1 and give me a list of the Code, and the Product from sheet1 and the sell by date that’s in Sheet2. The problem I have is when data is put into the second column on sheet2 which is D.E.F, I would want it just to check that column and not the A,B,C from column 1.

View 14 Replies
View Related
May 10, 2014

I need to be able to create a list of all combinations (where position doesn't matter, therefore its not a permutation) of a list of numbers with repetition enabled. I need to provide anywhere up to at least 10-15 numbers if possible and they are integers normally between 1 and 72. Example: (for numbers 1, 2, 3)

VB:

1

2

3

[Code]....

View 5 Replies
View Related
Feb 9, 2008

I have 7 cells containing strings but not numbers on a row.

Now I want to list out all the combinations of drawing out 3 cells out of these 7 cells while the remaining cells that haven't been drawn out could also be listed out one column next to the drawn cells.

For example, I got 7 cells like this.

A B C D E F G (each letter in ONE cell)

And I want to list out all the combinations like this:

ABC DEFG

ABD CEFG

ABE CDFG

ABF CDEG

etc.

For more details, please refer to the attached sample (an .xls file being zipped).

View 14 Replies
View Related
Dec 15, 2008

I have 25 random numbers and I would like to get a possible 5 digit combinations of these numbers. Can anybody help me with the possible formula?

View 9 Replies
View Related
Apr 25, 2013

I have a single rangle of numbers in Column A, and in Columns B and C and want to list all possible combinations of these numbers. If there is a possible solution without using a Macro I would perfer that, but if not I'll take what I can get.

Example Desired Output:

Column A:

Column B:

Column C

0001

0001

0001

[Code] ......

View 7 Replies
View Related
Jun 5, 2009

i want to do is, have a list that picks from a color and then beside it, it will show the possible fruit that is that color for example

Red

apple

cherry

strawberry

OR

Green

watermelon

grapes

The number of fruit will differ by the color so i know i need a counter there, but i am not sure how to list the fruit after i've picked the color

View 6 Replies
View Related
Feb 22, 2008

Im wondering is there any way/method to make a certain number of cells randomly produce to an amount you want.

For Example:

1 92

2 150

3 37

4 86

5 38

6 97

7 =500

View 9 Replies
View Related
Feb 8, 2012

How to write code to produce 17 rows of 0s, then 17 rows of 1s ....all the way up to 120. So that would be 2040 rows altogether. It takes forever to do it manually.

View 5 Replies
View Related
Oct 23, 2012

When I enter the function below as a User Defined Function it gives me a "#NAME?" error. I entered in J12 as:

Code:

"=condense(D12,E12,F12,G12,H12)"

I have values for each column is row 12.

Code:

Function condense(ByVal d1, ByVal d2, ByVal d3, ByVal d4, ByVal d5)

condense = d1 & d2 & d3 & d4 & d5

End Function

How do produce a 5 position number from 5 single numbers?

View 1 Replies
View Related
Oct 24, 2011

I have a set of unique customer names in a column A, say A1 to A200 in my data sheet. These customers have route numbers assigned to them (defined by the client) column B - B1 to B200. The route no.s are 1,2,3,4,5,6,7, & 8. The column lists can be of varying lengths but no more than 500 rows. I want to relate the routes to 8 separate sheets in the workbook. In each sheet I want to extract a column of customers based on the route number. So if the first customer in column A is route '1' (column B) it populates the first entry in sheet 'Route 1' with the customer name as so on for the rest of the sheets.

View 9 Replies
View Related
Jan 21, 2012

I was trying to produce a list of unique values from a much larger list. I'm using this array function -

{=IFERROR(INDEX(Sheet2!$B$2:$B$100,MATCH(0,COUNTIF($B$1:B1,Sheet2!$B$2:$B$100))), "")}

- which is marvellous and gives me exactly what I want. However my test book only has this dragged down 10 rows and already it takes 20-30 seconds to calculate. The real workbook is likely to stretch to several hundred rows, and to make matters that little more complex where I have Sheet2!$B$2:$B$100 this will relate to a completely separate book on a company network.

Is there any more efficient method of creating this list or will I just have to bear with the calculation speed?

View 4 Replies
View Related
Jun 28, 2013

I have two columns of data and would like to generate a new list showing unique combinations of those values (see attached sheet).

unique list.xls

View 9 Replies
View Related
Jan 4, 2007

I want to do all columns combination that is (C=4^N/(3*N+1); N=4) for numbers 1,2,3,4.

as like this,

1111....2222....3333.....4444.....

1111....2222....3333.....4444.....

1111....2222....3333.....4444.....

1234....1234....1234.....1234....

View 9 Replies
View Related
Apr 7, 2014

I have a workbook that has three worksheets. The ASU Database sheet contains part numbers and descriptions including specific details that are selected from pull down data validation lists that are named on the third worksheet. I want to have a front end on the first worksheet that has similar data validation lists for the user to select from to create a search criteria that will create a worksheet with only the rows that meet this criteria. I am not sure what method to use to accomplish this.

View 2 Replies
View Related
Feb 16, 2014

I have stamps of 2 denominations: .32 and .33

I want to know how I would write/format a spreadsheet that would tell me what are all the possible outcomes between the two numbers and what the components of these two numbers would be.

For example.

(8 * .32) + (3 * .33) = 3.55

So somewhere I would be able to see that in order to achieve 3.55 I need (8) .32 stamps and (3).33 stamps

View 6 Replies
View Related
Aug 22, 2012

Lets say I have 10 numbers (1,2,4,5,6,8,9,12,19,13). Now, I am trying to get a list of all possible combinations (single digit, two digit, 3 digit, 4 digit... 13 digits).

Assume that the 10 numbers (this is a variable, it can sometimes be 9 or 11 etc) are in column A and I want all the possible combinations in column B.

View 3 Replies
View Related
Mar 15, 2013

Is there a way in Excel to identifying certain combinations of numbers? If tried every IF statement I know.

I have an Excel with two columns of numbers and I need to identify their combinations.

18

18

18

19

18

19

18

20

18

18

18

20

The combinations 18 and 18 would return a "LOW" message in the third column, the combination 18 and 19 would return a message "HIGH" etc.

View 2 Replies
View Related
Mar 11, 2009

I want to output every combination of a set of numbers. These permutations must include combinations that use only a few of the numbers as well as all eight...ie.

1,

1,2

1,2,3

as well as 1,2,3,4,5,6,7,8

The macro below is from

http://www.j-walk.com/ss/excel/tips/tip46.htm

This only produces combinations using every number. I'm not sure how this macro works but hopefully someone with better know how could run with it or break it down for me!

I only need to achieve this once but am pretty sure doing it manually will cause error and or madness

Dim CurrentRowSub GetString() Dim InString As String InString = InputBox("Enter text to permute:") If Len(InString) < 2 Then Exit Sub If Len(InString) >= 8 Then MsgBox "Too many permutations!" Exit Sub Else ActiveSheet.Columns(1).Clear CurrentRow = 1 Call GetPermutation("", InString) End IfEnd SubSub GetPermutation(x As String, y As String)' The source of this algorithm is unknown Dim i As Integer, j As Integer j = Len(y) If j < 2 Then Cells(CurrentRow, 1) = x & y CurrentRow = CurrentRow + 1 Else For i = 1 To j Call GetPermutation(x + Mid(y, i, 1), _ Left(y, i - 1) + Right(y, j - i)) Next End IfEnd Sub

View 9 Replies
View Related
Mar 27, 2009

I have attached a sample workbook, (Pricing Sheet - Major) within this work book there is a worksheet entitled Price Book which has commonly-used materials, unit prices and labour rates. What he wishes to do is use the contents of the Price Book worksheet within a worksheet called Pricing Sheet to enable him to prepare quotations.

I had the idea to first sort the items in the Price Book worksheet and then produce a dropdown list of these items for use within the Pricing Sheet worksheet and used the VLOOKUP function to obtain the values for unit prices and labour within the Price Book and use them in the Pricing Sheet worksheet.

View 5 Replies
View Related
Jan 18, 2013

getting All permutation and combinations of 4 letters and 4 numbers?

View 2 Replies
View Related
Sep 25, 2012

I have an Excel 2003 list with four columns as shown below:

Zipcode

CRRT

Count

Bundles

85710

C004

693

14

85710

C005

867

18

85710

C006

1021

21

I want to "expand" this list to use in a Mail Merge program to produce tags for our direct mailing. Each bundle contains 50 letters, so in the first line on the above spreadsheet, there will be 13 bundles of 50 and 1 of 43. Currently, I can cut and paste to create the following table, but there has to be an easier way...

Zipcode

CRRT

Count

bcount

Bundle

ibundle

85710

C004

693

50

1

14

[Code] ........

So as I pull this into a mail merge I will get a tag that shows the zipcode, the crrt, the total pieces for that crrt, then number of the bundle for example " 1 of 14" and the quantity in that bundle, for example "50 of 693", then the next bundle tag will print, 3 to a page. I know that here has to be an easier way either in the mail merging process itself or with EXCEL? Am even open to build these with ACCESS to create the tags. The beginning database contains anywhere from 350 to 800 lines of original data, so as you can see the cut and paste is VERY time consuming.

View 6 Replies
View Related
Jan 19, 2009

A user would input 4 integers.

How can I generate a list of all possible combinations of the integers?

View 9 Replies
View Related
Feb 5, 2007

I have ten numbers (i.e. 1,2,3,4,5,6,7,8,9,10) and I'm trying to figure out how to make Excel generate a list of all the combinations possible for these 10 numbers. I'm trying to avoid using a VBA script. Is it possible to accomplish this task only using a function formula? This way I will have the ability to tweak the formula and test different qauntities of numbers (i.e. 1,2,3,4,5,6,7 or 44,56,77,33). Is getting a list of all possible combinations to output on a single column with commas between numbers possible with a formula?

View 5 Replies
View Related
Feb 3, 2008

I know the COMBIN function, i want to list all combinations from a given set of cells (numbers), each item of the combination - in separate cell. Example:

1 2 3 4 5 a b 6 ....

after combin (x,3) i want to list me this: 123........but each number must be in separate cell (1-one cell, 2 -one cell, 3 -one cell)

124

125

12a

12b

126

234

etc

View 3 Replies
View Related
Aug 28, 2012

I attached partial file so you can see what i mean. I pasted only a few combinations cause the file was to big and i wasnt able to attach it...there are 142506 combinations . But you can see what i mean. A VBA or a macro on the worksheet will do the job?

View 9 Replies
View Related
Sep 3, 2009

I need a vba that can generate all set of 6 number combinations with the total sum of 100.

For example: 3, 6, 4, 15, 35, 37 = 100.

View 9 Replies
View Related
Aug 9, 2008

I am trying to write VBA code that will list all possible combinations of data contained in a worksheet based on a few conditions. I have a list that varies in length. In the first column is a list of numbers denoting a particular course number. In the second column is a list of numbers denoting the specific class number for the course. As an example, I have a 6 courses. The first course has 1 class, the second course has 3 classes, the third has 11, the fourth has 3, the fifth has 7, and the sixth has 6. Thus, my columns look like this:

A B

1 1

2 1

2 2

2 3

3 1

3 2

3 3

3 4

3 5

...

I need to list out all possible combinations of classes given that I must have all six courses. EXAMPLE (Course, Class):.......................

View 2 Replies
View Related
Feb 26, 2011

How to generate a list of numbers of this function in Excel: COMBIN(20,3), but i want the combinations of numbers. I want to create a list of 20 questions and every question has 3 answer. I think that are 1140 combinations.

View 9 Replies
View Related
Dec 6, 2011

I have 15 different words that I want to order in as many ways as possible, but only 3 at a time.

So let's say the words are:

cat

dog

elf

clown

monkey

rock

bananas

(etc)

then I want a list that has all of these possible combinations:

cat dog elf

cat dog clown

cat dog monkey

cat dog rock

cat dog bananas

cat elf clown

cat elf monkey

(etc)

until all are listed. I understand there is a huge number, I don't mind having a couple of thousand as long as they are all genuinely unique.

I CAN have elf dog cat, elf cat dog, dog elf cat later on ... it's just the order that needs to be unique not the words in the phrase.

View 9 Replies
View Related