Sampling

myrtita

New Member
Joined
Jan 26, 2015
Messages
1
Hello:

I have a database with the sales of an entire month of a department. I have a column with the seller name, one with the sold item and the rest of the table with detail of the item sold. I need to identify a random sample of 25% for each seller (not all of them sold the same amount of items). Is any form of doing this. The 'Rand()' formula doesnt work for what I need...


Thanks,

myrtita
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Welcome to the forum!

How many rows is typical for the sales? How do you want the results presented? Do you want the sample highlighted, or do you want it extracted to another sheet?

If you just want them highlighted, you can use a combination of RAND() and Conditional formatting. Add a new column, and put =RAND() in it, and copy it down then length of your data. Then select all the columns, click Conditional Formatting --> New rule --> Use a formula to determine which cells to format, then enter this formula
=$A1>.75
and select a fill color. It should look something like:
Excel 2010
ABCDE
10.351674
20.007325
30.444376
40.7017
50.835534
60.001488
70.488796
80.148539
90.441398
100.692217
110.618731
120.042641
130.846518
140.297904
150.639236
160.825545
170.899571
180.690012
190.341424
200.849342
210.113017
220.721248
230.608816
240.078786
250.453977

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet6



You can select another subset just by pressing F9.
Let us know if that works, or you'd like a different way to look at them.
 
Upvote 0

Forum statistics

Threads
1,217,383
Messages
6,136,268
Members
450,001
Latest member
KWeekley08

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top