Random select one line of data for each person in a list

rory1111

New Member
Joined
Feb 8, 2009
Messages
11
I would like to know how I can get excel to randomly select one line of data for each of the people listed below (so one for bob, one for jenny, one for Trish etc.). I have been trying a mixture of vlookup and rand but to no avail, below is just a sample list but i would like to try it on a large set of data. any ideas of method would be greatful, i have been able to get a random transaction but not one for each person.

Code:
[TABLE="width: 741"]
<tbody>[TR]
[TD]a1[/TD]
[TD]b[/TD]
[TD]c[/TD]
[TD]d[/TD]
[TD]e[/TD]
[TD]f[/TD]
[TD]g[/TD]
[TD]h[/TD]
[TD]i[/TD]
[TD]j[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]REF_ID[/TD]
[TD]NAME[/TD]
[TD]DATE[/TD]
[TD]BILL TOTAL[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]BA2234340[/TD]
[TD]Bob[/TD]
[TD]10/12/2012[/TD]
[TD] €                 22.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Bob[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]BA7377373[/TD]
[TD]Jenny[/TD]
[TD]11/12/2012[/TD]
[TD] €                 45.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Jenny[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]BA6326363[/TD]
[TD]Paul[/TD]
[TD]19/12/2012[/TD]
[TD] €                 29.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Paul[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]BA6366363[/TD]
[TD]Mary[/TD]
[TD]14/12/2012[/TD]
[TD] €                 51.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Mary[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]BA6363663[/TD]
[TD]Max[/TD]
[TD]11/12/2012[/TD]
[TD] €                 21.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Max[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]BA4545394[/TD]
[TD]Pat[/TD]
[TD]14/12/2012[/TD]
[TD] €                 28.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Pat[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]BA0028737[/TD]
[TD]Neil[/TD]
[TD]11/12/2012[/TD]
[TD] €                 37.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Neil[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]BA7326722[/TD]
[TD]Katy[/TD]
[TD]14/12/2012[/TD]
[TD] €                 33.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Katy[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]BA1111123[/TD]
[TD]Trish[/TD]
[TD]10/12/2012[/TD]
[TD] €                 12.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Trish[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]BA7324734[/TD]
[TD]Max[/TD]
[TD]14/12/2012[/TD]
[TD] €              124.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Benny[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]BA7324732[/TD]
[TD]Trish[/TD]
[TD]10/12/2012[/TD]
[TD] €                 33.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]BA8934832[/TD]
[TD]Max[/TD]
[TD]11/12/2012[/TD]
[TD] €                 44.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]17[/TD]
[TD]BA2345566[/TD]
[TD]Trish[/TD]
[TD]14/12/2012[/TD]
[TD] €                 55.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]BA0000333[/TD]
[TD]Bob[/TD]
[TD]18/12/2012[/TD]
[TD] €                 57.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]BA9999999[/TD]
[TD]Bob[/TD]
[TD]14/12/2012[/TD]
[TD] €                   8.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD]BA7777777[/TD]
[TD]Bob[/TD]
[TD]01/12/2012[/TD]
[TD] €                 97.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]21[/TD]
[TD]BA4432444[/TD]
[TD]Benny[/TD]
[TD]11/12/2012[/TD]
[TD] €                 87.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]22[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]23[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,223,227
Messages
6,170,853
Members
452,361
Latest member
d3ad3y3

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