+ Reply to Thread
Results 1 to 5 of 5

Randbetween : only by tens

  1. #1
    Forum Contributor
    Join Date
    02-18-2013
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    112

    Randbetween : only by tens

    Hi. How can I use Randbetween to generate numbers by tens. Example:

    Randbetween(100, 999)

    i would like the above formula to generate only nummbers by tens like 10, 20, 30 120, 110, 990,...and so on. Thank you.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Randbetween : only by tens

    How about...

    =FLOOR(RANDBETWEEN(100,999),10)
    HTH
    Regards, Jeff

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Randbetween : only by tens

    Perhaps

    =RANDBETWEEN(1,99)*10

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Randbetween : only by tens

    A few more using the ROUND functions

    =ROUND(RANDBETWEEN(100,994),-1)

    =ROUNDDOWN(RANDBETWEEN(100,999),-1)

    =ROUNDUP(RANDBETWEEN(91,990),-1)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Forum Contributor
    Join Date
    02-18-2013
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: Randbetween : only by tens

    Thank you JeffreyBrown. Your formula gives the right result. Thank you also Jonmo1 and Ace_XL for their time and sharing knowledge. I appreciated them all.

+ 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