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

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
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,223,879
Messages
6,175,148
Members
452,615
Latest member
bogeys2birdies

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