ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how can i randomly select names from adatabase in excel or access (https://www.excelbanter.com/excel-discussion-misc-queries/87038-how-can-i-randomly-select-names-adatabase-excel-access.html)

ed wine

how can i randomly select names from adatabase in excel or access
 
i have a database of name addresses, phone numbers, etc, used to create mail
labels for a newsletter. i would like to randomly select a name each week
from this database to give away a prize. i would like to ensure there is no
duplication of names selected.

dlw

how can i randomly select names from adatabase in excel or access
 
use this excel formula:
=INT(RAND()*<number of records in database)+1
it will return a random number between 1 and the number of records in the
database, use that number to select a row or record.

"ed wine" wrote:

i have a database of name addresses, phone numbers, etc, used to create mail
labels for a newsletter. i would like to randomly select a name each week
from this database to give away a prize. i would like to ensure there is no
duplication of names selected.


galimi

how can i randomly select names from adatabase in excel or access
 
Excel does not use seeded random numbers, so, you can use the following formula

=int(rand()*100)+1

replace 100 with the number of rows in your list
--
http://HelpExcel.com
1-888-INGENIO
1-888-464-3646
x0197758


"ed wine" wrote:

i have a database of name addresses, phone numbers, etc, used to create mail
labels for a newsletter. i would like to randomly select a name each week
from this database to give away a prize. i would like to ensure there is no
duplication of names selected.



All times are GMT +1. The time now is 07:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com