+ Reply to Thread
Results 1 to 11 of 11

Shuffle Name of processors and generate 5 percent of worked data by processor

  1. #1
    Registered User
    Join Date
    09-04-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    26

    Shuffle Name of processors and generate 5 percent of worked data by processor

    Hi Guys,

    I need a formula that will shuffle all the names of the processor in the worksheet and at the same time randomly select 5 percent of their work and paste in sheet 2. for example i have 30 processor the each of them has finished 65 accounts. i want to have a command button that once clicked, it will automaticaly shuffle the arrangement of the names and randomly select 5 percent of their work and paste in in sheet2.

    please see sample output in sheet 2:

    john doe processed 50 accounts so 5 percent of 5

    A B
    Name Account#
    John Doe 12345
    john Doe 11231
    John Doe 1211
    John Doe 1224
    John Doe 2345


    then it will be followed by the other processor name

    Thanks in advance for any help
    Last edited by oct2mine; 12-19-2014 at 04:47 AM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: Shuffle Name of processors and generate 5 percent of worked data by processor

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    09-04-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Shuffle Name of processors and generate 5 percent of worked data by processor

    Hi Kaper,

    I have attached a sample file to show sample data in sheet1 and the sample data in sheet2.

    thanks in advance
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-04-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Shuffle Name of processors and generate 5 percent of worked data by processor

    need help regarding this. any feedback will be very much appreciated

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: Shuffle Name of processors and generate 5 percent of worked data by processor

    Hi,
    I'm pretty sure I published answer yesterday morning. But can't see it now. Fortunately the file was still in my trash. See attached.
    As you were not so clear about how many shall stay (5% of 50 is not 5) there are 2 versions of macro:
    Please Login or Register  to view this content.
    the above one leaves the same number of accounts for every name. At the moment 2 - change it in:
    Please Login or Register  to view this content.
    and a second one, leaving 0.05 (5%) of all accounts for every name (but at least 1 account):
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-04-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Shuffle Name of processors and generate 5 percent of worked data by processor

    Thanks Kaper, it perfectly works for what i need. I really appreciate your help. I hope i could help you too in some other way. kudos to you sir

  7. #7
    Registered User
    Join Date
    09-04-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Shuffle Name of processors and generate 5 percent of worked data by processor

    Hi Kaper, i just have one more question regarding this thread. is it posible that if the result of the currentaccounts= 2.6 then it will gave me a result of 3 names and if currentaccounts=2.4 then it will game me just 2 names. i observed that the result is just base on the whole number of the currentaccounts. it will be very much appreciated if you can help me again with this.

    Thanks

  8. #8
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: Shuffle Name of processors and generate 5 percent of worked data by processor

    use Round instead of Int
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    09-04-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Shuffle Name of processors and generate 5 percent of worked data by processor

    Thanks Kaper, you saved my day once again.

  10. #10
    Registered User
    Join Date
    09-04-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Shuffle Name of processors and generate 5 percent of worked data by processor

    Hi Kaper,

    Just an additional query regarding this thread. is it posible that if currentaccounts=2.3 or 2.5 or 2.6 or any whole number with decimal point, then it will round up and give me 3 names.

    thanks

  11. #11
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: Shuffle Name of processors and generate 5 percent of worked data by processor

    Please Login or Register  to view this content.
    or just (as we are rounding up, so always be at least one):
    Please Login or Register  to view this content.

+ 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. Multiple Processors
    By ffffloyd in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-11-2014, 02:12 AM
  2. Shuffle Row Position after Data Refresh
    By thetwai in forum Excel General
    Replies: 3
    Last Post: 07-16-2013, 04:07 AM
  3. Replies: 0
    Last Post: 05-14-2012, 05:36 PM
  4. shuffle 2 sets of data into 1
    By MrToast in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-16-2011, 05:26 PM
  5. Auto Generate a Grade based on a percent
    By avidcat in forum Excel General
    Replies: 3
    Last Post: 11-01-2007, 01:35 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