LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Populating 2 ranges with different random nums in each cell

Trying the line below to populate 2 ranges with random nums between 1-100,
but it returns the same num, albeit random, in every cell. How to
tweak/enhance it so that every cell would be populated with a different
random num (no duplicates)? Thanks

[a1:d4,g1:h5].value = Int((100* Rnd) + 1)


 
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 from several ranges ChrisSafety Excel Worksheet Functions 3 July 8th 08 07:45 AM
Help with populating new combobox with list of ranges Chris Excel Programming 0 October 24th 06 05:24 PM
Populating a list box with specific ranges Graham Whitehead Excel Programming 2 August 2nd 06 02:09 PM
Have column of nums, need qty of each? samckitt Excel Worksheet Functions 3 April 2nd 06 06:15 PM
Is there an example of a DB procedure that adds a col of nums DMB Excel Programming 1 January 22nd 06 06:30 PM


All times are GMT +1. The time now is 03:20 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"