May 06 2024 02:25 AM
Hello,
I am looking for a bit of help here as i am still learning my way into excel.
I have this list of people that i need to transform into random numbers for anonymization reasons.
i thought of using ALEA but i have another problem, the same person can appear more than once on my list. if they appear twice, i still need them to have the same random number. I do not know how to do that, can someone help me please ?
thank you :)
May 06 2024 02:36 AM - edited May 06 2024 02:46 AM
Solution
Hello! You can use this:
=HSTACK(UNIQUE(B3:B11),INDEX(UNIQUE(RANDARRAY(ROWS(UNIQUE(B3:B11)),1,0,1000000,TRUE)),SEQUENCE(ROWS(UNIQUE(B3:B11)),1)))
Change range B3:B11 with the actual range of your names. It will create an array with all unique names with a random integer number next to each one.
May 06 2024 02:44 AM
May 06 2024 02:48 AM
Hi, I edited my reply, please refer again to it. Additionally, your error seems to be because you may use Excel in another language. Please try to translate all functions to your language and change the comma separator to ";" if needed.
May 06 2024 03:26 AM
May 06 2024 02:36 AM - edited May 06 2024 02:46 AM
Solution
Hello! You can use this:
=HSTACK(UNIQUE(B3:B11),INDEX(UNIQUE(RANDARRAY(ROWS(UNIQUE(B3:B11)),1,0,1000000,TRUE)),SEQUENCE(ROWS(UNIQUE(B3:B11)),1)))
Change range B3:B11 with the actual range of your names. It will create an array with all unique names with a random integer number next to each one.