Random Sample to Pull One Record per User

SoldOnTheRoad

New Member
Joined
Jan 3, 2017
Messages
13
Scenario - I have 10 employees, who complete 10 sales per day. My data refreshes each day, so it's just prior day information.

I would like to randomly pull 1 transaction per employee to perform an audit.

I am comfortable creating a random sample, but not applying a one per user idea.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
I would assign each transaction an random number using rand(). Then I would on a separate sheet use =Max(IF(Range of Employees = Employee, Random Value)) for each employee to pull the highest random number assigned to each employee. From there it becomes a VLOOKUP or INDEX/MATCH project to pull the remaining information about the transaction to the sheet.
 
Upvote 0
I would assign each transaction an random number using rand(). Then I would on a separate sheet use =Max(IF(Range of Employees = Employee, Random Value)) for each employee to pull the highest random number assigned to each employee. From there it becomes a VLOOKUP or INDEX/MATCH project to pull the remaining information about the transaction to the sheet.

That =max(if option isn't a complete formula.
 
Upvote 0

Forum statistics

Threads
1,215,960
Messages
6,127,943
Members
449,412
Latest member
montand

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