Finding all combinations from two lists

andreaa90

New Member
Joined
Nov 30, 2022
Messages
2
Office Version
  1. 2021
Platform
  1. MacOS
Hi! I am looking for help trying to generate all possible combinations of items from two lists. Please see attached image for an example of input an output. Thank you so much for your help!
 

Attachments

  • Screen Shot 2022-11-30 at 3.08.27 PM.png
    Screen Shot 2022-11-30 at 3.08.27 PM.png
    8.7 KB · Views: 31

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
MrExcelPlayground14.xlsx
ABCDEFGH
1List 1List 2
2A1
3B2
4C3
5
6Output 1Output 2Output 3Output 4Output 5Output 6Output 7Output 8
71A1A1A1A
8B22BB22B
9CCC3333C
Sheet17
Cell Formulas
RangeFormula
A6:H6A6="Output " & SEQUENCE(1,2^ROWS(A2:B4))
A7:H9A7=LET(z,A2:B4,x,ROWS(z),y,SEQUENCE(x),a,SEQUENCE(x,2^ROWS(z)),b,SIGN(BITAND(MOD(a-1,2^x)+1,(2^(y-1))))+1,c,INDEX(z,y,b),c)
Dynamic array formulas.
 
Upvote 0
Solution
Another option:

Book1 (version 1).xlsb
ABCDEFGH
1List 1List 2
2A1
3B2
4C3
5
6Output 1Output 2Output 3Output 4Output 5Output 6Output 7Output 8
7AAAA1111
8BB22BB22
9C3C3C3C3
Sheet3
Cell Formulas
RangeFormula
A7:H9A7=LET(rng,A2:B4,r,ROWS(rng),s,SEQUENCE(r),INDEX(rng,s,MID(DEC2BIN(SEQUENCE(,2^r,0),r),s,1)+1))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,901
Members
449,097
Latest member
dbomb1414

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