Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
ed wine
 
Posts: n/a
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
dlw
 
Posts: n/a
Default 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.

  #3   Report Post  
Posted to microsoft.public.excel.misc
galimi
 
Posts: n/a
Default 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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Started out as an Access problem. Now an Excel problem RobertM Excel Discussion (Misc queries) 2 April 26th 06 08:30 PM
Import records from Access to Excel Mark Excel Discussion (Misc queries) 1 December 20th 05 02:43 PM
Using Excel spreadsheet as input to Access dougb415 Excel Discussion (Misc queries) 0 September 22nd 05 03:33 PM
Using Access database to "populate" Excel Sheets maacmaac Excel Discussion (Misc queries) 1 September 19th 05 06:06 PM
Cells User Select Locked after upgrade to Excel 2002 TWilson Excel Discussion (Misc queries) 1 August 5th 05 01:22 PM


All times are GMT +1. The time now is 08:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"