+ Reply to Thread
Results 1 to 6 of 6

Distribute/Divide A Number Between 10 Rows Randomly

  1. #1
    Registered User
    Join Date
    05-10-2018
    Location
    London
    MS-Off Ver
    2016
    Posts
    2

    Distribute/Divide A Number Between 10 Rows Randomly

    Basically I have 10 rows and I want to distribute numbers/grades between these rows randomly but each cell has to be smaller or equal to 10, how can I do that wtihout macros?

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: Distribute/Divide A Number Between 10 Rows Randomly

    Does the numbers need to be unique?

    If not.
    =RANDBETWEEN(1,10)
    Copy down.

    If yes.
    Use two columns.
    First column: =RAND()
    Second column: = RANK(A1,$A$1:$A$10)

    There's very small chance of duplicate with above... to avoid it just add row# divided by large number.
    Ex: =Rand()+ROW()/10^9
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    05-10-2018
    Location
    London
    MS-Off Ver
    2016
    Posts
    2

    Re: Distribute/Divide A Number Between 10 Rows Randomly

    Thanks for the answer but I think I have to restrict these cells to get randomised again.

    Because;

    RANDBETWEEN works but everytime I edit a cell, all rows and cells randoms itself again.
    Last edited by mlyth; 05-10-2018 at 07:17 AM.

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: Distribute/Divide A Number Between 10 Rows Randomly

    If you need it to be static... easiest method is to use VBA to fill cells with random number.

    Ex:
    Please Login or Register  to view this content.

  5. #5
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: Distribute/Divide A Number Between 10 Rows Randomly

    One other method.

    1. Make sure that you turn on Iterative Calculation. Using options.
    2. Enter following formula in A1 and copy down.
    =IF($F$1<>"",IF(A1="",RANDBETWEEN(1,10),A1),"")

    3. Enter any value in F1 and it will generate numbers in column A.
    4. Clear F1 and enter value again to reset.

    See attached.
    Attached Files Attached Files
    Last edited by CK76; 05-10-2018 at 07:44 AM. Reason: Edit: Grammar

  6. #6
    Registered User
    Join Date
    05-09-2018
    Location
    Indonesia
    MS-Off Ver
    2016
    Posts
    3

    Re: Distribute/Divide A Number Between 10 Rows Randomly

    How to make random numbers, but use point?
    Eg : 10.1, 10.5, 10.4, 9.2, 8.7 (the range is 8 to 11)

+ 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. How to divide a number randomly between cells
    By VelvetRain in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 11-24-2020, 05:38 AM
  2. divide a number randomly into a few cells
    By MrJT in forum Excel General
    Replies: 3
    Last Post: 07-14-2017, 10:54 AM
  3. [SOLVED] Distribute names randomly
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 05-03-2016, 01:47 PM
  4. Is it possible to divide and distribute?
    By leanne1220 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-14-2015, 03:33 PM
  5. Macro to Divide a Data in Cells and Distribute to X number of Columns
    By paul.serrato in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-12-2013, 12:01 AM
  6. Excel 2007 : Button to auto distribute randomly
    By patrizzull in forum Excel General
    Replies: 5
    Last Post: 01-03-2011, 11:12 PM
  7. How to randomly distribute rows from sheet 1 to sheet 2 & 3 with V
    By luk_sr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-25-2005, 03:06 PM

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