+ Reply to Thread
Results 1 to 9 of 9

Pick random numbers within the range except blanks

  1. #1
    Registered User
    Join Date
    05-18-2017
    Location
    PHILIPPINES
    MS-Off Ver
    2010
    Posts
    26

    Pick random numbers within the range except blanks

    can you please help me with the right formula in picking random cell in a selected range except blanks cells?
    i need to pick atleast 5 random unique cells.

  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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Pick random numbers within the range except blanks

    Do you want to return their values? If so, in what format?

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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
    05-18-2017
    Location
    PHILIPPINES
    MS-Off Ver
    2010
    Posts
    26

    Re: Pick random numbers within the range except blanks

    please see my sample list.
    Attached Files Attached Files

  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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Pick random numbers within the range except blanks

    That does not really help, I am afraid. You said this:

    picking random cell in a selected range except blanks cells
    and showed this:

    Excel 2016 (Windows) 32 bit
    A
    B
    1
    Range
    2
    3
    Pick1
    0.250377
    4
    Pick2
    0.716814
    5
    Pick3
    6
    Pick4
    0.776088
    7
    Pick5
    0.79441
    8
    Pick6
    0.652136
    9
    Pick7
    0.074578
    10
    Pick8
    0.066637
    11
    Pick9
    0.183517
    12
    Pick10
    0.487468
    13
    0.310347
    14
    15
    0.178392
    16
    0.889321
    17
    0.629138
    18
    0.302346
    19
    0.49476
    20
    0.607239
    21
    0.29172
    22
    0.225574
    23
    24
    0.891602
    Sheet: Sheet1

    Try a bit harder, please, to clarify your requirement.

  5. #5
    Registered User
    Join Date
    05-18-2017
    Location
    PHILIPPINES
    MS-Off Ver
    2010
    Posts
    26

    Re: Pick random numbers within the range except blanks

    i hope this will help, i suppose to pick random cell in sheet1 except blanks and so on for the other picks. it should be unique every picks.
    Attached Files Attached Files

  6. #6
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Pick random numbers within the range except blanks

    No, sorry - I have no idea what you are trying to do, and now you have introduced three sheets.

    Try to EXPLAIN in WORDS what the process is that you have in your mind - step-by-step.

  7. #7
    Registered User
    Join Date
    05-18-2017
    Location
    PHILIPPINES
    MS-Off Ver
    2010
    Posts
    26

    Re: Pick random numbers within the range except blanks

    A3 - i need to pick random cell within the list from Sheet1 except for blanks.
    A4 - same with a3, but it should be unique with a3.
    A5 - same with a3, but it should be unique with a3 and A4.
    i cannot remove the blanks in my list for some reason.

  8. #8
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Pick random numbers within the range except blanks

    I hope somebody else can work out what you want. I am out of time today - sorry.

  9. #9
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Pick random numbers within the range except blanks

    Try

    B3
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

+ 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. Pick random number in a range but not repetitive
    By tantcu in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-08-2015, 06:05 PM
  2. [SOLVED] Copy and paste random cells values from a range to another sheet column with no blanks
    By macquhele in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2015, 06:05 PM
  3. [SOLVED] Pick Random Value from a Range (not including empty Cells)
    By ghoneim in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-22-2013, 04:46 AM
  4. [SOLVED] Macro to pick random unique numbers from lsit
    By dinesh_ltjd in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-16-2012, 02:11 PM
  5. Pick a random cell within range of another sheet
    By PY_ in forum Excel General
    Replies: 4
    Last Post: 04-08-2011, 03:10 PM
  6. Replies: 10
    Last Post: 04-01-2011, 07:32 AM
  7. Replies: 1
    Last Post: 06-07-2006, 02:25 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