+ Reply to Thread
Results 1 to 5 of 5

Sorting list by changing values

  1. #1
    Registered User
    Join Date
    01-02-2012
    Location
    Illinois, USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Sorting list by changing values

    I have a list of personnel.

    They're eligible for overtime based on the following criteria

    Last overtime date
    Seniority
    Amount of overtime.

    The list looks like this:

    Personnel name, Personnel ID #, Last Date worked O/T, Amount of O/T worked (hours), Date of O/T, Hours (how many)

    Employee, Joe, 1234, 5/24/12, 8.50, ________, _________
    Staff, Shirley, 1235, 6/26/12, 4.50, ________, _________



    If the overtime shift is less than 24 hours they don't move in the list UNLESS the existing value plus the overtime offered totals more than 24.
    If the value in the Amount of O/T worked column exceeds 24, 24 is subtracted from the total and that becomes their new value and they're moved to the bottom of the list.

    From there they're ranked by Date and then Seniority.

    For example, if two people get a 24 hour overtime shift they both move to the bottom of the list but the more senior person is listed above the more junior person.

    Make sense?

    If Joe is offered 12 hours of overtime that value would change to 20.50 and he wouldn't move in the list.
    If Joe is offered 24 hours of overtime that value would remain 8.50 and he would move to the bottom of the list.
    If Joe is offered 18 hours of overtime that value would become 2.50 and he would move to the bottom of the list.

    So, I know it's a little confusing but is this possible with Excel or should I be looking at a different program?

    If it's possible, which commands should I be researching?

    TIA
    Rich
    Last edited by rmart; 10-16-2012 at 08:41 PM. Reason: rules compliance

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux - O365
    Posts
    12,576

    Re: Is this even possible...?

    Is this even possible...?
    probably, but you'll have to adapt your title first as per forum rules

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16/365
    Posts
    51,898

    Re: Is this even possible...?

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    01-02-2012
    Location
    Illinois, USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Is this even possible...?

    My apologies. I'm not even sure what to ask so I hope my title change is appropriate.

  5. #5
    Registered User
    Join Date
    01-02-2012
    Location
    Illinois, USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Sorting list by changing values

    Well, I'm assuming my post is now in compliance. Does no one have any suggestions on how to implement this?
    I'm suspecting that the dynamic data might be a problem. For example, the existing date in the Last Date worked O/T column would become the date entered into the Date of O/T. But, the moment you clear that entry the Last Date column would clear as well. So the problem becomes how to enter the data in a manner that existing tables are updated and the changes are kept when the last two columns are blanked.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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