I would like to generate an integer that is either between 1 and 100 or 200 and 300. Thank you in advance for your assistance.
I would like to generate an integer that is either between 1 and 100 or 200 and 300. Thank you in advance for your assistance.
Try
=CHOOSE(RANDBETWEEN(1,2),RANDBETWEEN(1,100),RANDBETWEEN(200,300))
Life's a spreadsheet, Excel!
Say thanks, Click *
Thank you that seemed to work perfectly.
hi ASPENCO. wow a maiden post after 10 years! an alternative:
=CHOOSE(RANDBETWEEN(1,4),1,100,200,300)
Thanks, if you have clicked on the * and added our rep.
If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".
"Contentment is not the fulfillment of what you want, but the realization of what you already have."
Tips & Tutorials I Compiled | How to Get Quick & Good Answers
@ Benishiryo
=CHOOSE(RANDBETWEEN(1,4),1,100,200,300)
gives either 1,100,200 or 300
Am I missing something?
@ Ace_XL:
oops you're right. i thought OP wanted random figures between the 4 numbers.
@ASPENCO:
please mark thread as "Solved" if the solution solved the problem
Hi ASPENCO..
In addition.. please also mention if you have cross-posted.. and also inform the same in all other areas..
http://chandoo.org/forums/topic/randbetween
Its a bad manner to cross-post without giving URL..
Last edited by Debraj Roy; 07-03-2013 at 02:03 AM. Reason: Sorry! benishiryo :(
Regards!
=DEC2HEX(3563)
If you like someone's answer, click the star to give them a reputation point for that answer...
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks