+ Reply to Thread
Results 1 to 10 of 10

Sorting Table By Two Criteria

  1. #1
    Forum Contributor Big.Moe's Avatar
    Join Date
    03-15-2012
    Location
    Corea, Maine, USA
    MS-Off Ver
    Excel 2010
    Posts
    244

    Sorting Table By Two Criteria

    In my Excel sheet, I have several tabs that correspond to truck numbers. In those tabs, I enter all the info for our truck fleet and drivers. To track driver pay and expenses, I have created a "DRIVER PAY" tab that compiles the needed data. Unfortunately, the file is too big to upload into forum, so I made a quick mock-up of a screen grab of the "DRIVER PAY" tab for clarity (see below).

    TRUCK SHEET.jpg

    As pictured, I already created a data table that compiled all the tab data into one table. I also created a test table for one weekly pay period that also removes all the blank rows. Now, I'm trying to sort that table by date (col. S) and then by truck # (col. V) into my final weekly pay print out form (columns A thru O). Unfortunately, I'm stumped about how to do this. I looked at using VLOOKUP, but was unsuccessful.

    Any help would be greatly appreciated.

    Also, if anyone sees a way to simplify/streamline this process, I'm all ears. I'm self-taught and can be a bit of a clunky hack at times.

    Thanks for reading my post.

    EDIT: I managed to strip down the file to just a bare version of the "Driver PAY" tab.
    Attached Files Attached Files
    Last edited by Big.Moe; 02-04-2020 at 01:27 AM. Reason: Uploaded Sample File

  2. #2
    Forum Contributor
    Join Date
    12-15-2019
    Location
    Not here
    MS-Off Ver
    2010
    Posts
    257

    Re: Sorting Table By Two Criteria

    Hi,

    Can you save your workbook as a different version and only keep some of the data for presenting your question.

    It always helps to attach a workbook and not an image so formulas can be tested.

    Thanks

  3. #3
    Forum Contributor Big.Moe's Avatar
    Join Date
    03-15-2012
    Location
    Corea, Maine, USA
    MS-Off Ver
    Excel 2010
    Posts
    244

    Re: Sorting Table By Two Criteria

    Hi crazyeddie,

    I went ahead and uploaded a very stripped down sample file (in original post).

    Thanks for reading my post.

  4. #4
    Forum Contributor
    Join Date
    12-15-2019
    Location
    Not here
    MS-Off Ver
    2010
    Posts
    257

    Re: Sorting Table By Two Criteria

    Hi Big.Moe,

    I am working on a set up today. I am also interested in trucking for my next career so I could also benefit from this. Please give me some time.

    Thanks,
    crazyeddie

  5. #5
    Forum Contributor Big.Moe's Avatar
    Join Date
    03-15-2012
    Location
    Corea, Maine, USA
    MS-Off Ver
    Excel 2010
    Posts
    244

    Re: Sorting Table By Two Criteria

    Hey crazyeddie,

    If there is a way to get you the full file (~10MB), I'm more than happy to send it to you. It's a beauty in its full complete state.

    With all the regulations and IFTA road tax system, the whole tracking thing becomes quite the accounting challenge.

  6. #6
    Forum Contributor
    Join Date
    12-15-2019
    Location
    Not here
    MS-Off Ver
    2010
    Posts
    257

    Re: Sorting Table By Two Criteria

    You could zip the file first which should help. Make sure there isn't any personal information though.

  7. #7
    Forum Contributor Big.Moe's Avatar
    Join Date
    03-15-2012
    Location
    Corea, Maine, USA
    MS-Off Ver
    Excel 2010
    Posts
    244

    Re: Sorting Table By Two Criteria

    Darn, the file is still ~3MB after zip process. Forum allows only 1 MB for uploads.

  8. #8
    Forum Contributor
    Join Date
    12-15-2019
    Location
    Not here
    MS-Off Ver
    2010
    Posts
    257

    Re: Sorting Table By Two Criteria

    Hi Big.Moe are you still looking for help?

  9. #9
    Forum Contributor
    Join Date
    12-15-2019
    Location
    Not here
    MS-Off Ver
    2010
    Posts
    257

    Re: Sorting Table By Two Criteria

    I don't yet know all of the factors but maybe this can be useful? I moved a few things around and of course I may be way off.

    Let me know thanks

  10. #10
    Forum Contributor Big.Moe's Avatar
    Join Date
    03-15-2012
    Location
    Corea, Maine, USA
    MS-Off Ver
    Excel 2010
    Posts
    244

    Re: Sorting Table By Two Criteria

    Hi crazyeddie,

    Thanks so much for sticking to it. I got everything worked-out except for the very last part which was sorting the final table into chronological weekly dates. In the end, having the trip dates not in chronological order in the weekly pay report is not a huge deal since it still tabulates each drivers weekly pay just fine.

    I tried converting the final weekly data into a table and sorting it by date, but it would rearrange itself every time the sheet recalculated.

    I'm sticking a fork in this one and calling it done for now. Maybe down the road, when I have more time, I'll revisit the whole sorting the table by date and truck number.

    Thanks again.

+ 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. Custom Sorting a Slicer for a table - not a pivot table
    By Melissalee71 in forum Excel General
    Replies: 1
    Last Post: 10-12-2018, 10:23 AM
  2. [SOLVED] Transfer from one table to another auto sorting table
    By Noobulon in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-26-2017, 02:35 PM
  3. Replies: 0
    Last Post: 02-24-2014, 11:27 AM
  4. Replies: 0
    Last Post: 05-15-2013, 09:18 AM
  5. Sorting and Delete rows meeting criteria based on sorting criteria
    By ron2k_1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-10-2011, 02:40 PM
  6. Replies: 9
    Last Post: 02-01-2011, 08:47 AM
  7. Copying data from one table to another table and sorting it
    By bmohor3 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-01-2011, 02:50 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