+ Reply to Thread
Results 1 to 2 of 2

Autosum with condition

  1. #1
    Forum Contributor
    Join Date
    10-14-2007
    MS-Off Ver
    Excel 2021
    Posts
    121

    Autosum with condition

    I have a list of employees in Column A that I would like to sort by the total number of OT hours worked in Column B so the person with the lowest OT is the first one to be called.

    Sample Data:

    Column A Column B Column C

    Employee OT Hours Call Order
    Adam 3 2
    Steve 8 3
    John 2 1
    Chris 7 4

    Autosort would work perfectly for what I am trying to accomplish except there is one condition that needs to be met. Regardless of how many OT hours Steve has worked, he must always be the 3rd person to be called. I figured I would need to create a Column C for autosort to reference but I don’t know how to replicate the results of Column C in a formula.

    Thanks for any suggestions.

  2. #2
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    You can use the "Sort" to sort "first by" column C and "then by" column B (you can sort by multiple columns).

    If you want to exclude anything thats not "3" in order, you can apply an autofilter to your data and then do the sort by column B only
    If you found the solution to your question. Mark the thread as "Solved"
    Thank everyone that helped you with a valid solution by clicking on their

    There is no such thing as a problem, only a temporary lack of a solution

+ 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