+ Reply to Thread
Results 1 to 5 of 5

Selecting certain random cells from a range

  1. #1
    Registered User
    Join Date
    01-16-2018
    Location
    New South Wales
    MS-Off Ver
    2016 64-Bit
    Posts
    34

    Selecting certain random cells from a range

    Hello all,

    Is there a way to be able to randomly select half of a range and then delete that data. e.g. if the max range is 100, could it be possible to select 50 random cells and then delete them cells.

    Any help would be greatly appreciated.

    Thanks!

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Selecting certain random cells from a range

    "certain random cells" is an oxymoron.

    "if the max range is 100"; I don't understand what that means.

    Are you asking to randomly clear half the cells within the used range?
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    01-16-2018
    Location
    New South Wales
    MS-Off Ver
    2016 64-Bit
    Posts
    34
    Quote Originally Posted by AlphaFrog View Post
    "certain random cells" is an oxymoron.

    "if the max range is 100"; I don't understand what that means.

    Are you asking to randomly clear half the cells within the used range?
    Sorry, I'm such an idiot. If there was a list of numbers that goes from A1:A100, I want a script to be able to select 50 random cells and delete them. Realistically, I want it to clear 50% of the maximum number of numbers. So if there's 5000 numbers, I'd want it to select and delete 2500 random cells. I'm not the greatest at creating macros.
    Sorry for my mistakes before.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Selecting certain random cells from a range

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-16-2018
    Location
    New South Wales
    MS-Off Ver
    2016 64-Bit
    Posts
    34

    Re: Selecting certain random cells from a range

    This works perfectly! Thank you so much.

+ 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. Selecting random cells based on criteria
    By JamesTrethowan in forum Excel General
    Replies: 8
    Last Post: 10-28-2015, 11:15 AM
  2. Selecting Cells in relation to a cell with a specific value in a random row
    By Bzkay in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-16-2014, 11:49 AM
  3. [SOLVED] selecting random cells from a column and paste to another.
    By dxblade in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2013, 09:04 AM
  4. Selecting Cells From Column at Random for a Specific Sum Total
    By anaisconce in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-02-2010, 07:39 AM
  5. Random selecting a row of cells
    By nedvim100 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-09-2010, 08:18 AM
  6. Selecting random cells using certain criteria
    By tcpace in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-23-2007, 11:50 AM
  7. selecting random cells
    By Willie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-17-2006, 03:15 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