Sheet 1 Table A is the name column (the number of people is not limited), and B2 of sheet2 inputs the number of people to be extr
Sheet 1 Table A is the name column (the number of people is not limited), and B2 of sheet2 inputs the number of people to be extracted. If it is greater than the number of people in the list, you will be prompted to exceed and stop running, otherwise the extracted list will be listed in column D (without repetition, the array and dictionary will be combined).