+ Reply to Thread
Results 1 to 4 of 4

RAND function with upper and lower limits

  1. #1
    Forum Contributor Grimace's Avatar
    Join Date
    05-04-2009
    Location
    Gold Coast, Australia
    MS-Off Ver
    Excel 2013 and Office 365 Plus
    Posts
    380

    RAND function with upper and lower limits

    Good morning

    I am using 2003 and do not have the RANDBETWEEN funtion available.

    Does anyone have a formula that will generate the random numbers but between an upper and lower limit? eg In some cases I want to limit it to between 80% and 100%.

    Thanks in advance

    Darren
    Last edited by Grimace; 04-12-2011 at 08:29 PM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,704

    Re: RAND function with upper and lower limits

    you can get 80 to 100 with

    =INT(RAND()*21+80)

    If you want that to be a percentage just divide by 100, i.e.

    =INT(RAND()*21+80)/100
    Audere est facere

  3. #3
    Forum Contributor Grimace's Avatar
    Join Date
    05-04-2009
    Location
    Gold Coast, Australia
    MS-Off Ver
    Excel 2013 and Office 365 Plus
    Posts
    380

    Re: RAND function with upper and lower limits

    Thanks DLL

    Will it accept cell references in lieu of the values?
    eg =INT(RAND()*b1+c1)

  4. #4
    Forum Contributor Grimace's Avatar
    Join Date
    05-04-2009
    Location
    Gold Coast, Australia
    MS-Off Ver
    Excel 2013 and Office 365 Plus
    Posts
    380

    Re: RAND function with upper and lower limits

    sorry ... i just gave it a go ... If all else fails, just GIVE IT A GO !!!

    Worked fine ... thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1