Random Name

coucar3456

New Member
Joined
Jun 29, 2016
Messages
11
Is there a way in a query to execute a random function where employee names in below fields built (field_1) and validated (field_2) are never being the same person.


Field1:
Carter
Jon
Nick
Gregg
Brady

Field2:
Jon
Carter
Gregg
Brady
Nick
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
The most trivial way is to set up a column next to Field2 with random numbers, then sort on it. In this example, each time you sort A8:B13 on column B, you will get a new match next to Field2.

Excel Workbook
AB
1Field1:
2CarterNick
3JonGregg
4NickBrady
5GreggJon
6BradyCarter
7
8Field2:Sort
9Nick0.827949
10Gregg0.056451
11Brady0.676668
12Jon0.712612
13Carter0.977777
Sheet1
 
Upvote 0
Oh, sorry.
Then you would not be able to use this approach directly, Access Rnd() function returns the same value for each row.
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,249
Members
449,075
Latest member
staticfluids

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