Randomizing pairing list, does not duplicate

MangoButter

New Member
Joined
Feb 6, 2025
Messages
4
Office Version
  1. 2021
Platform
  1. Windows
Hello,

I'm looking for a way to pair two lists of names randomly that do not duplicate. In column A) I have 6 names, and in Column B) I have 12 names. Column A would then be paired with two names from column B. Is this at all possible?

Thanks for the help!
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Try:
Book2
ABC
1List1List2Pairing
2EmmaSophiaEmma
3LucasEthanMason
4AvaIsabellaOlivia
5MasonJamesEmma
6OliviaMiaLiam
7LiamNoahLiam
8HarperAva
9BenjaminMason
10AmeliaOlivia
11AlexanderAva
12GraceLucas
13SamuelLucas
Sheet3
Cell Formulas
RangeFormula
C2:C13C2=INDEX(A2:A7,SORTBY(ROUNDDOWN(SEQUENCE(12,,,0.5),0),RANDARRAY(12)))
Dynamic array formulas.
 
Upvote 0
Thank you, very helpful!

Oone question though, if I need to add a few more names to List2 but keep the same amount of names in List1, how would I adjust the formula to do that?
 
Upvote 0
If you add more people in List2, what's the maximum number of times List1 can be repeated? It is no longer 2.
 
Upvote 0
If you add more people in List2, what's the maximum number of times List1 can be repeated? It is no longer 2.
I think the max number of repeating would be 3. So example would be if I have 6 names in List1 and 14 names in List2?s
 
Upvote 0
Try this:
Book2
ABC
1List1List2Pairing
2EmmaSophiaAva
3LucasEthanMason
4AvaIsabellaLucas
5MasonJamesAva
6OliviaMiaOlivia
7LiamNoahLucas
8HarperEmma
9BenjaminAva
10AmeliaEmma
11AlexanderMason
12GraceOlivia
13SamuelMason
14JordanLucas
15LanceEmma
Sheet3
Cell Formulas
RangeFormula
C2:C15C2=LET(a,A2:A7,r,ROWS(B2:B15),INDEX(a,SORTBY(INT(SEQUENCE(r,,,1/ROUNDUP(r/ROWS(a),0))),RANDARRAY(r))))
Dynamic array formulas.
 
Upvote 0
Solution

Forum statistics

Threads
1,226,470
Messages
6,191,207
Members
453,648
Latest member
graduateguardian

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