+ Reply to Thread
Results 1 to 6 of 6

macro needed for allocating works to users based on criteria

  1. #1
    Forum Contributor
    Join Date
    11-16-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    204

    macro needed for allocating works to users based on criteria

    sample.xlsx

    Hi Champs,

    I have excel file in which there are 7 codes with 4 status .... the same has to be allocated to 4 users based on the below rules.
    1. if code 93 and for all status, that has to be assigned to the user1 "JOHN"
    2. for all code except 93 with status "Annual Vector", that has to be assigned to the user2 "Rosy"
    3. for all code except 93 with status "Green Valley", that has to be assigned to the user 3 "Jimmy"
    4. for all status of 0 and 1 and any two codes except 93, 50% has to assigned to user4 "Gokul"
    5. all the other 0 and 1 of all codes except 93 has to be equally assigned to JOHn, Rosy and Jimmy

    i have attached the sample file for the reference. Please help me with a macro

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: macro needed for allocating works to users based on criteria

    Try this:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Contributor
    Join Date
    11-16-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    204

    Re: macro needed for allocating works to users based on criteria

    Hi xladept,

    Thanks for the reply. It works but there is rule where code 93 has to be assigned to only JOHN with any status.....

    but this rule is not working by the code provided by you. pls help to fix this. Thanks in advance

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: macro needed for allocating works to users based on criteria

    Hi,

    I should have looked for 093

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    11-16-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    204

    Re: macro needed for allocating works to users based on criteria

    Excellent...... thanks and it works like a GEM.

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: macro needed for allocating works to users based on criteria

    You're welcome!

+ 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. [SOLVED] Macro Needed - Move data to worksheet based on criteria
    By sharpyoungb in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-10-2014, 11:42 AM
  2. Macro needed: list results based on criteria
    By nantoy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-27-2012, 09:18 PM
  3. HELP! Allocating values based on criteria
    By massimop in forum Excel General
    Replies: 4
    Last Post: 10-07-2010, 03:07 AM
  4. [SOLVED] macro works for some users and doesn't for others
    By Pooja in forum Excel General
    Replies: 2
    Last Post: 10-27-2005, 04:05 PM
  5. Advanced users please look! - MACRO help Needed!
    By pauldaddyadams in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-03-2005, 05:05 AM

Tags for this Thread

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