Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 709
Default Random Whole Number Functions

In cell A1, I have an INT(RAND) formula to produce a random whole number.

In cell B1, I want another random whole number to be produced, but I don't
want it to be equal to the number generated in cell A1. Is there a way to
specify that in the INT(RAND) formula?



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Random Whole Number Functions

Look he

http://www.mcgimpsey.com/excel/udfs/randint.html

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Richard" wrote in message
...
In cell A1, I have an INT(RAND) formula to produce a random whole number.

In cell B1, I want another random whole number to be produced, but I don't
want it to be equal to the number generated in cell A1. Is there a way to
specify that in the INT(RAND) formula?




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Random Whole Number Functions

Hi,

First you might consider using =RANDBETWEEN(1,100) instead of the
=INT(RAND()). However, that doesn't help with regards to generating unique
numbers.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Richard" wrote:

In cell A1, I have an INT(RAND) formula to produce a random whole number.

In cell B1, I want another random whole number to be produced, but I don't
want it to be equal to the number generated in cell A1. Is there a way to
specify that in the INT(RAND) formula?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Random Whole Number Functions

Hi,

Here is a way to make them unique:

in cell B1 enter =RANDBETWEEN(1,100)
in cell B2 enter:
=RANDBETWEEN(MAX(B$1:B1),MAX(B$1:B1)+B1)
fill this down.

Adjust this for your range.
--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Richard" wrote:

In cell A1, I have an INT(RAND) formula to produce a random whole number.

In cell B1, I want another random whole number to be produced, but I don't
want it to be equal to the number generated in cell A1. Is there a way to
specify that in the INT(RAND) formula?



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
Functions expert€¦€¦€¦numbering random condition in a column JVANWORTH Excel Worksheet Functions 15 April 2nd 09 01:25 AM
Help with Random Functions CIL Excel Worksheet Functions 6 August 15th 06 03:04 AM
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
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 04:05 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"