+ Reply to Thread
Results 1 to 4 of 4

Ramdomize but exclude based on status

  1. #1
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Ramdomize but exclude based on status

    Hi,

    I have the following query; I need to randomize a list of names into a group of 6. I found the code below that works like a charm, but my problem lies in the fact that if they participated, that those should be excluded. Can the code be modified like: if the status in column P is "Participated" for a name, then that one should be excluded from the group and replaced with one from the available name if status Not "Participated". Then, after randomizing it again, it should add status "Participated" next to the one that has been chose from available names. Is it possible?

    Thanks!

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Click the * to say thanks.

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Ramdomize but exclude based on status

    Maybe :
    Please Login or Register  to view this content.
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  3. #3
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Ramdomize but exclude based on status

    Hi karedog,

    Many thanks for your solution. May I ask another question? How can I use the list found in column O to randomize the names that do not have an adjacent "Participated" value into the groups found in columns B-I? And if there are less people and all the groups open seats cannot be filled, then it should fill the groups with max value of 6 starting in column B - Group 1, leaving the remaining ones blank of partially filled?

    Thank you again

  4. #4
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Ramdomize but exclude based on status

    bump.......

+ 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. Macro to Track Prospect Status and Date of Status Change
    By zainfidel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-24-2016, 02:16 PM
  2. Replies: 3
    Last Post: 09-11-2014, 04:32 PM
  3. [SOLVED] Calculate Fed Tax based on Status Based on attached Table
    By rizmomin in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-30-2014, 08:10 PM
  4. arrange data to show different billing status and customer status
    By applesandpears in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-29-2012, 05:57 PM
  5. Replies: 4
    Last Post: 04-08-2012, 09:43 PM
  6. getting a value based on a yes no status
    By gideong in forum Excel General
    Replies: 2
    Last Post: 03-16-2009, 07:06 AM
  7. Replies: 1
    Last Post: 06-01-2006, 01:15 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