+ Reply to Thread
Results 1 to 7 of 7

Randbetween with No Duplicates

  1. #1
    Registered User
    Join Date
    03-19-2017
    Location
    london
    MS-Off Ver
    365
    Posts
    3

    Randbetween with No Duplicates

    Hello Everyone,
    I have just joined the group and new to formulas.
    I am trying to create a sheet to test times tables for my children.
    I am using one column a constant number for ex: 4 and the next column for x sign and another for the =randbetween(0,12)
    but the randbetween produces duplicates which defeats the purpose of testing all the range randomly.
    Can someone help please.
    Thanks
    Last edited by AliGW; 03-19-2017 at 04:28 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,321

    Re: using Randbetween

    Welcome to the forum!

    Have a look at this thread from 2013:

    http://www.excelforum.com/excel-form...duplicate.html

    By the way, as you are new to the forum, I have made your thread title more explicit for you this time. Next time, please do so yourself. Thanks!
    Last edited by AliGW; 03-19-2017 at 04:29 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    03-19-2017
    Location
    london
    MS-Off Ver
    365
    Posts
    3

    Re: using Randbetween

    I already checked this thread and tried rand function but it gives me decimals and numbers that are not within a range.
    I need a number from a range as it is testing timestables for kids.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,321

    Re: Randbetween with No Duplicates

    Then you haven't understood the idea presented there. See the worked example attached - you can hide the third column.

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    1
    4
    x
    0.063219
    12
    2
    4
    x
    0.213447
    10
    3
    4
    x
    0.993647
    1
    4
    4
    x
    0.222959
    8
    5
    4
    x
    0.073212
    11
    6
    4
    x
    0.345884
    7
    7
    4
    x
    0.528815
    6
    8
    4
    x
    0.692088
    4
    9
    4
    x
    0.215054
    9
    10
    4
    x
    0.616583
    5
    11
    4
    x
    0.797066
    2
    12
    4
    x
    0.741891
    3
    Sheet: Sheet1

    Excel 2016 (Windows) 32 bit
    C
    D
    1
    =RAND()
    =RANK(C1,$C$1:$C$12)
    Sheet: Sheet1
    Attached Files Attached Files
    Last edited by AliGW; 03-19-2017 at 04:52 AM.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,321

    Re: Randbetween with No Duplicates

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  6. #6
    Registered User
    Join Date
    03-19-2017
    Location
    london
    MS-Off Ver
    365
    Posts
    3

    Re: Randbetween with No Duplicates

    Thanks AliGW, . I had to hide the column of rand() and it worked.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,321

    Re: Randbetween with No Duplicates

    Yes, that's what I suggested you do - hide the RAND() column. Glad to have helped!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. randbetween PLEASE HELP ME
    By emily_brou in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-22-2015, 05:47 AM
  2. Replies: 10
    Last Post: 07-03-2015, 04:29 PM
  3. [SOLVED] Randbetween
    By ASPENCO in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-03-2013, 01:54 AM
  4. Randbetween
    By AlisonPotts in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-25-2013, 03:16 PM
  5. Excel 2007 : Randbetween
    By frever in forum Excel General
    Replies: 0
    Last Post: 09-10-2010, 05:39 AM
  6. Excel 2007 : Randbetween
    By Iandislikesformulas in forum Excel General
    Replies: 4
    Last Post: 08-31-2010, 08:42 PM
  7. randbetween
    By selena in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-28-2009, 03:56 AM

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