Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default help with random numbers

I have a spreadsheet that has a column with 10 cells. Each cell will have
its own number in it, but I want them to be randomly generated from 0-9. I
need all cells to have a unique number in it. any help with this would be
appreciated. Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default help with random numbers

in the adjacent column to your numbers put in the formula

=rand()

then drag fill down

Now sort both columns with this column with the formula as the key formula.
This will randomize your numbers.

--
Regards,
Tom Ogilvy

"justaguyfromky" wrote in message
...
I have a spreadsheet that has a column with 10 cells. Each cell will have
its own number in it, but I want them to be randomly generated from 0-9.

I
need all cells to have a unique number in it. any help with this would be
appreciated. Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default help with random numbers

I suggest to take my function UniqRandInt().

Press ALT + F11, insert a module, copy my function UniqRandInt() from
http://www.sulprobil.com/html/uniqrandint.html, go back to spreadsheet,
select your 10 cells, enter =UniqRandInt(10), finish entry with CTRL + SHIFT
+ ENTER.

HTH, Bernd


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
Random Numbers excluding Previous Numbers Brad Excel Worksheet Functions 2 July 23rd 09 12:25 AM
getting numbers divisible by 4 from random numbers in ascending order ramana Excel Worksheet Functions 6 June 19th 07 06:41 PM
Can Excel pick random numbers from 1-300 and not repeat numbers? Julian Excel Discussion (Misc queries) 1 June 7th 06 07:17 AM
Non-random numbers generated by excel's data analysis random gener Allie Excel Worksheet Functions 10 September 17th 05 06:19 AM
Non-random numbers generated by excel's data analysis random gener Harlan Grove Excel Discussion (Misc queries) 2 September 13th 05 04:06 PM


All times are GMT +1. The time now is 08:21 PM.

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"