Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Random Number Formulas

It's easy to generate a random number between 1 and 20 (in this example)
with "=randbetween(1,20)" . However, with this formula a number may
be duplicated.

How can a random number be generated so that no number is repeated ?
In other words, how do I enter the formula to create unique random
numbers between 1 and 20 ?

Thanks !



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Random Number Formulas

Sounds like you want to shuffle 20 numbers

In column A, enter 1 to 20
in column B put in the formula

=rand()

then select A1:B20 and sort on column B.

--
Regards,
Tom Ogilvy


"carlstedt" wrote in message
...
It's easy to generate a random number between 1 and 20 (in this example)
with "=randbetween(1,20)" . However, with this formula a number may
be duplicated.

How can a random number be generated so that no number is repeated ?
In other words, how do I enter the formula to create unique random
numbers between 1 and 20 ?

Thanks !



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



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
Addding a Random number to a fixed number..... Dermot Excel Discussion (Misc queries) 6 August 20th 06 12:17 PM
How can I match a random number with closest number from sequence? Matt Excel Worksheet Functions 4 August 3rd 06 01:22 AM
same number appears in a random number generator Carmel Excel Worksheet Functions 4 May 28th 06 12:22 AM
Generating (in a random order)each number once from a given number Neil Goldwasser Excel Worksheet Functions 2 December 2nd 05 11:27 PM
How do I find random number in list of random alpha? (Position is. jlahealth-partners Excel Discussion (Misc queries) 0 February 8th 05 05:31 PM


All times are GMT +1. The time now is 02:26 PM.

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

About Us

"It's about Microsoft Excel"