## How to list or generate all possible combinations in Excel?

Let’s say, I have the following two columns of data, and now, I want to generate a list of all possible combinations based on the two lists of values as left screenshot shown. Maybe, you can list all the combinations one by one if there are few values, but, if there are several columns with multiple values needed to be listed the possible combinations, here are some quick tricks may help you to deal with this problem in Excel.

**List or generate all possible combinations with formula**

**List or generate all possible combinations with Kutools for Excel**

**List or generate all possible combinations from multiple columns**

If you need to generate all possible combinations based on multiple columns data, maybe, there is not a good way for dealing with the task. But, **Kutools for Excel**'s **List All Combinations** utility can help you to list all possible combinations quickly and easily.** Click to download Kutools for Excel!**

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

#### ** List / generate all possible combinations with formula**

The following long formula can help you to list all possible combinations of two lists values quickly, please do as follows:

**1**. Enter this formula: **=IF(ROW()-ROW($D$1)+1>COUNTA($A$1:$A$4)*COUNTA($B$1:$B$3),"",INDEX($A$1:$A$4,INT((ROW()-ROW($D$1))/COUNTA($B$1:$B$3)+1))&INDEX($B$1:$B$3,MOD(ROW()-ROW($D$1),COUNTA($B$1:$B$3))+1))** into a blank cell, in this case, I will enter it to cell D1, and then press **Enter** key to get the result, see screenshot:

**Note**: In the above formula, * $A$1:$A$4*, are the first column values, and

*are the second list values which you want to list all their possible combinations, the*

**$B$1:$B$3***is the cell that you put the formula, you can change the cell references to your need.*

**$D$1****2**. Then select cell D1 and drag the fill handle down to the cells until get the blank cells, and all the possible combinations have been listed based on the two lists values. See screenshot:

#### ** List / generate all possible combinations with Kutools for Excel**

The above formula can help you generate the possible combinations with only two lists, if there are more than two lists values need to be listed the possible combinations, the formula will not work. Here, I can recommend a powerful tool -- **Kutools for Excel**, it contains a handy feature** List All Combinations** which can quickly list all the possible combinations based on given data lists.

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 60 days. |

After installing **Kutools for Excel**, please do as follows:

**1.** Click **Kutools** > **Insert** >** List All Combinations**, see screenshot:

**2**. In the** List All Combinations** dialog box, do the following operations:

(1.) Choose **Value** from the **Type** drop down list;

(2.) Then click button to select the first data list that you want to use.(You can also type the values which are separated by commas into the **Text** box one by one )

**3**. Then click **Add** button to add the first value list into the **Combinations list** box, see screenshot:

**4**. If you need to use certain character to separate the combinations, please choose **Separator** from the **Type** drop down, and specify the separator you need in Text box, then click **Add** button to add the separator into the **Combinations list**, see screenshot:

**5**. Then repeat step3 and step4 to insert other data lists and separators into the **Combinations list** box, see screenshot:

**6**. After inserting the data list, then click **Ok** button, and a prompt box will pop out to remind you select a cell to output the result, see screenshot:

**7**. Click** OK**, all of the possible combinations based on the given lists have been generated into the worksheet as following screenshot shown:

**Note**: If you don’t need the separators between the combinations, you just need to skip step 4 and add the values lists into the dialog box.

**Click to Download Kutools for Excel Now ! **

#### ** List / generate all possible combinations with Kutools for Excel**

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

### Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

**Reuse**: Quickly insert**complex formulas, charts**and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...- Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
- Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
- Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
- Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
- Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
- Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
- Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
- More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.

### Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

**Enable tabbed editing and reading in Word, Excel, PowerPoint**, Publisher, Access, Visio and Project.- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!