Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Does anyone know the formula to solve this problem.
I want to randomly assign a value to RandomName from the values from Random list, if there are same values in the Group column, I want the random value to be same in RandomName col.
You could try:
Formula in B2 in ms365;
B2
=XLOOKUP(A2,A$1:A1,B$1:B1,INDEX(D$2:D$5,RANDBETWEEN(1,4)),0)
Or for older version of Excel;
=IFERROR(INDEX(B$1:B1,MATCH(A2,A$1:A1,0)),INDEX(D$2:D$5,RANDBETWEEN(1,4)))
Add a comment
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.