Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 10-16-2022, 03:47 PM
p45cal's Avatar
p45cal p45cal is offline Generating random number of integers in a specific manner Windows 10 Generating random number of integers in a specific manner Office 2019
Expert
 
Join Date: Apr 2014
Posts: 956
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

This should work for Excel 2007 but can't test.
To enter the formula, first select a range having a row count of the value in A1 and a column count of the value in C1 + 1, then enter
RandNos(A1,B1,C1)
then while holding both the Ctrl and Shift keys, press Enter to array-enter that formula in the whole range at once.
Of course the range size needs to change according to what's in A1 and C1, which can be irritating.
If you want, we could create a macro which would put the values in the cells instead of using a formula?
Attached Files
File Type: xlsm msofficeforums49802versionFor2007.xlsm (19.4 KB, 7 views)
Reply With Quote
 

Tags
excel 2007, rand, random



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy Random Generated Number to new Sheet farhadj Excel Programming 2 06-02-2019 11:28 PM
How to insert random numbers that equal a certain number baha Excel 16 11-24-2014 10:50 AM
Endnotes Generating Random Sections for Each Page Kim Korn Word 7 08-13-2014 09:51 PM
Random number difficulties ahrinn Word 12 08-01-2012 01:04 PM
Generating random number of integers in a specific manner generating a number in Word John P Word 1 05-31-2012 10:29 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:39 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft