Hi all,
I have been doing a lot of research in the last two weeks and it seems I cannot find an adequate solution for my need. I have attached a photo with a replica of the sheet I am using, in my file I have a lot more rows (about 12000 rows). The information in column C:C are unique sale id's, the information in column D:D is a list of names (about 89 names) that will repeat. I need to extract randomly a list of sale ID but I don't want to receive as a result two or more sale IDs for the same name as it is shown in the photo bellow.
I was able to find a formula that extracts the random list based on a value that I manually insert in cell D3 where I specify how many sale ID to extract. I was able to achieve this with the formula >>> =INDEX(SORTBY(C3:C31,RANDARRAY(ROWS(C3:C31))),SEQUENCE(D3)) <<< in cell E3 which correctly extracts the random sales id. The column F:F is not required; I am using it to perform an xlookup to understand if a sale person appears twice in the list.
Thank you in advance,
Chris
I have been doing a lot of research in the last two weeks and it seems I cannot find an adequate solution for my need. I have attached a photo with a replica of the sheet I am using, in my file I have a lot more rows (about 12000 rows). The information in column C:C are unique sale id's, the information in column D:D is a list of names (about 89 names) that will repeat. I need to extract randomly a list of sale ID but I don't want to receive as a result two or more sale IDs for the same name as it is shown in the photo bellow.
I was able to find a formula that extracts the random list based on a value that I manually insert in cell D3 where I specify how many sale ID to extract. I was able to achieve this with the formula >>> =INDEX(SORTBY(C3:C31,RANDARRAY(ROWS(C3:C31))),SEQUENCE(D3)) <<< in cell E3 which correctly extracts the random sales id. The column F:F is not required; I am using it to perform an xlookup to understand if a sale person appears twice in the list.
Thank you in advance,
Chris