Hi,
I have to create an excel file where I have a list of IDs in column A and a category column is on its right. Through a macro, I have to create 3 new sheets in which I have to get a 10% random sample for each category from this sheet. I have a vb code for generating a sample of 10% randomly but it doesn't allow the 'stratification'. Quick help would be appreciated.View attachment Expected Result.xlsxView attachment SourceFile.xlsx
I have to create an excel file where I have a list of IDs in column A and a category column is on its right. Through a macro, I have to create 3 new sheets in which I have to get a 10% random sample for each category from this sheet. I have a vb code for generating a sample of 10% randomly but it doesn't allow the 'stratification'. Quick help would be appreciated.View attachment Expected Result.xlsxView attachment SourceFile.xlsx