Hi all,
I am building a workflow which creates a sample list from the population list. In the population list, we have 8 groups, and for each group, the sample size varies. For example, for group 1, we need to select 1 sample, for group 2, 3 samples are needed. After the whole sample list is created, we will calculate the number of distinct staffs in that sample list and find the optimal sample list that covers the maximum number of unique staffs.
I tried to build an iterative macro to find the optimal list, but failed. Is there any way to achieve this? Many thanks.