Excel formula for generating all possible combos from 4 columns of data

MExcelClt

New Member
Joined
May 28, 2020
Messages
5
Office Version
  1. 365
Platform
  1. MacOS
Hi everyone,
I'm writing an online learning activity for students, and I need to generate all possible combinations from 4 columns of data. A colleague sent me a formula for combining 3 columns of data. I've tried altering the formula, but it's not generating all of the possible combos. I'm not an Excel guru, so I'm not sure where I'm going wrong.
If anyone can help, the data that I need to combine are as follows:

Column 1:
cat
dog
mouse

Column 2:
cat
dog
mouse

Column 3:
cat
dog
mouse

Column 4:
cat
dog
mouse

Thanks in advance!
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
If your data is in A1:D3 of your spreadsheet

put =INDEX(A$1:A$3), 1 + MOD(INT((ROW(A1)-1)/(3^(COLUMN(A1)-1))),3), 0)

in a cell and drag it right 4 columns and down 81 rows
 
Upvote 0
If your data is in A1:D3 of your spreadsheet

put =INDEX(A$1:A$3), 1 + MOD(INT((ROW(A1)-1)/(3^(COLUMN(A1)-1))),3), 0)

in a cell and drag it right 4 columns and down 81 rows

Thanks for responding. When I paste the formula in a cell, I'm getting an error: "You've entered too few arguments for this function."
Any thoughts?
 
Upvote 0

Forum statistics

Threads
1,223,610
Messages
6,173,339
Members
452,510
Latest member
RCan29

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top