+ Reply to Thread
Results 1 to 1 of 1

Randomly selection of an x% of a column values and copy it to another column

  1. #1
    Registered User
    Join Date
    09-13-2013
    Location
    Italy
    MS-Off Ver
    Excel 2007
    Posts
    6

    Randomly selection of an x% of a column values and copy it to another column

    Dear all, first of all thanks in advance for your time in looking into my "issue".

    What I'm struggling with is the following situation: At glance, I have a list (number or text) in a column and I would like, based on a percentage that will change every time, to copy randomly the number coming out from that percentage calculation to another column. I'm attaching something I found online which "almost" match my requirements but that didn't work 100% but that could be useful for you to understand what I'm looking for.

    Said that, there are two main constrains and one "nice to have":

    1) the list is not a static one but will change time by time, so every new calculation should consider the amount of cells fed;
    2) the cells which I need to copy in % through the Macro are not going to be populated one after the other, if you will open the attachment you will see a first column called "ID", the column B which is the source of my exercise, might be fill in different ways, e.g. today I can add the values for 1.0, 2.0, 5.0, 18.0 and so on leaving the other IDs blank, so the calculation and the copy to the column C which is my target should reflect even that possibility.

    "nice to have": in case I might need to copy not only that source column but let's assume I need to copy even other columns before or after the target one, how could I modify the macro?

    Thanks again for your support and do not hesitate to contact me for further information if I've not been clear enough
    Attached Files Attached Files

+ 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. Replies: 4
    Last Post: 01-07-2015, 08:29 PM
  2. [SOLVED] Copy Column as Selection and Insert to the next Empty Column MACRO
    By kaurka in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-22-2013, 12:50 PM
  3. Instantly change column values after copy/insert rows based on input - Selection parameter
    By BuzzOffSweetheart in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-20-2012, 09:47 AM
  4. Macro that will copy values in Column J and paste values to Column B in new sheet
    By Phixtit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2010, 04:56 PM
  5. How to copy one column values to another column based on condition that row2 contain
    By sanjay19961 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-13-2010, 10:32 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