Skip to main content

Quickly generate/list all possible combinations of certain lists in Excel

Kutools for Excel

Boosts Excel With 300+
Powerful Features

For example, I need to list all possible combinations of three lists in ranges of A2:A6, B2:B8, and C2:C6 as following screen shot shown. There are 175 combinations with these three lists, and it will be quite time-consuming and error-prone to list all of them by my own. But Kutools for Excel’s List All Combinations utility can help us easily generate and list all possible combinations of given lists in a short time in Excel.  

Quickly generate/list all possible combinations of certain lists in Excel


Click the Kutools > Insert > List All Combinations, see screen shots:

 kutools-arrow-right

Quickly generate/list all possible combinations of certain lists in Excel

This utility will list all possible combinations of given lists of data in a column easily. Please do as follows:

1. Click the Kutools > Insert > List All Combinations.

2. In the opening List All Combinations dialog box, you need to:

(1) Click the Type box and select Value from the drop down list;

Tip: Please select Separator from the drop down list if you need to add separator in combinations.

(2) Click the Browse button  to select the list of data that you will generate combinations from, and click the OK button.

Tip: You can also type data into the Text box directly, and please separate each entry with comma “,”.  

(3) Click the Add button.

(4) Repeat above step (1) – (3) to add more lists of data and separators based on your needs.

3. After finish the settings, please click the Ok button, in the popping up dialog box, specify the first cell address of destination range that you will output all combinations, and click the OK button.

Now all possible combinations of given lists of data are generated and listed into the specified range at once.

Note: After inserting the values or separators into the dialog box, you can check the items you want to list the combinations based on, and uncheck other items that you don't need.


Demo: Quickly generate / list all possible combinations of certain lists

Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. Download and free trial Now!

Productivity Tools Recommended
The following tools can greatly save your time and money, which one is right for you?
Office Tab: Using handy tabs in your Office, as the way of Chrome, Firefox and New Internet Explorer.
Kutools for Excel: More than 300 Advanced Functions for Excel 2021, 2019, 2016, 2013, 2010, 2007 and Office 365.

Kutools for Excel

The functionality described above is just one of 300 powerful functions of Kutools for Excel.

Designed for Excel(Office) 2021, 2019, 2016, 2013, 2010, 2007 and Office 365. Free download and use for 30 days.

Screen shot of Kutools for Excel

btn read more      btn download     btn purchase

Comments (5)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi I'm looking to create all combinations of a given data set, without a value being used twice in one sequence.





Eg below example, think like its the lottery and you don't want numbers doubling in a combination?



When imputing multiple rows of the same 9 numbers 2, 7, 9, 11, 17, 20, 22, 24, 27, in 6 rows, for a sequence of six numbers, eg 2 -9-11-22-24-27



However as the numbers are in all columns and there is no rule in the process to stop it from using a value twice in a sequence. Eg. list after using the above method

17 17 17 17 17 17

17 17 17 17 17 17

17 17 17 17 17 17

17 17 17 17 17 9

17 17 17 17 17 9

17 17 17 17 17 9

17 17 17 17 17 27

17 17 17 17 17 27

17 17 17 17 17 27





As you can see I want to stop numbers from appearing more then once?
This comment was minimized by the moderator on the site
Hi I'm looking to create all combinations of a given data set, without a value being used twice in one sequence.


Eg below example, think like its the lottery and you don't want numbers doubling in a combination?

When imputing multiple rows of the same 9 numbers 2, 7, 9, 11, 17, 20, 22, 24, 27, in 6 rows, for a sequence of six numbers, eg 2 -9-11-22-24-27

However as the numbers are in all columns and there is no rule in the process to stop it from using a value twice in a sequence. Eg. list after using the above method
17 17 17 17 17 17

17 17 17 17 17 17

17 17 17 17 17 17

17 17 17 17 17 9

17 17 17 17 17 9

17 17 17 17 17 9

17 17 17 17 17 27

17 17 17 17 17 27

17 17 17 17 17 27


As you can see I want to stop numbers from appearing more then once?
This comment was minimized by the moderator on the site
Hi i am looking out to build truck optimization tool
If you can help with this
This comment was minimized by the moderator on the site
Hello. Thanks for the List All combinations tool. However, some combinations exceed the total number of rows excel can offer in a given column (1,048,576). Is it possible to let the list continue in another column within the same sheet? Or even have the tool in word or text which doesn't limit the rows? I appreciate your feedback!
This comment was minimized by the moderator on the site
have the same problem?!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations