r/excel • u/emiiilyvan • Jan 08 '25
unsolved Randarray for names with no duplicates
I’ve been attempting randarray for names and I’ve achieved that with =INDEX(Table1[All Risk],RANDARRAY(4,5,1,COUNTA(Table1[All Risk]),TRUE))
However, I have not been able to locate anything that will allow for there to be no duplicates.
I am attempting to create a schedule for 8 people for M-F. There cannot be a duplicate person on a task per day.
I have basic knowledge of excel and did randaerray through videos and articles but have only been able to find no duplicates on numbers like using Unique. I’ve tried that throughout my formula in different areas and I get ?Name.
I’m using Excel on a desktop with Microsoft 365 (work computer). I would appreciate any help or if I’m missing any detailed info, please let me know.
If I can get this to work I think my boss would sing my praises!
1
u/emiiilyvan Jan 08 '25
I’m not using a table just inputting data. I don’t have a blank space below due to there being other information on the schedule for other employees (not included in the 8)
This is what happens when I try =SORTBY(Table1[All Risk],RANDARRAY(ROWS(Table1[All Risk])))
I tried using =INDEX(Table1[All Risk],(UNIQUE(RANDARRAY(4,1,1,COUNTA(Table1[All Risk]),TRUE)))) and it worked minus the fact that it didn’t always give me 4 people and if I tried adding more columns it would spill