+ Reply to Thread
Results 1 to 6 of 6

Auto Sorting Time Log

  1. #1
    Forum Contributor
    Join Date
    07-12-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2010
    Posts
    201

    Smile Auto Sorting Time Log

    I am trying to figure out if there is a way to have a time log auto sort based on a date and time? If possible it would be nice to do this without a table as I have had a few problems with the tables not sorting correctly and overall appearance just doesnt seem pleasant. I know you can do it, using the Sort function, but I have people that can barely use a computer, so if this can be automated it would be great.

    What I am looking to do:

    1) Enter a time, date and an event that happened all on one row but different cells.

    Date: Start Cell A16 to A44
    Time: Start Cell D16 to D44
    Events: Start Cell F16 to F44

    2) As you add new date and time to the Log, have it Auto Sort, from Oldest (On Top) to Newest (On Bottom).

    I will eventually be prepopulating a majority of the "Event" Cells with required events that need be to document, while the rest that are not prefilled, will be user entered events that need to be auto sorted so that all times fall in-line correctly.

    Thanks in advance for your time. I attached a Sample File Below.

    Time Log Example.xlsx

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,705

    Re: Auto Sorting Time Log

    Look at the attached.

    note that it is now saved as an .xlsm file as it has a macro embedded in it to sort the data when the button is selected.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    07-12-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2010
    Posts
    201

    Re: Auto Sorting Time Log

    Nice works great.

    But I dont suppose theres a way to have it run each time theres data put into the cells to check if list is in order? Instead of having to hit the button each time? If not this will work great as well. Don't go nuts if this can't be done easily ;-)

  4. #4
    Forum Contributor
    Join Date
    07-12-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2010
    Posts
    201

    Re: Auto Sorting Time Log

    Ok came up with a little problem? If in the event there is a need for another Time Log in the Report, the Sort button doesn't Work? I tried manipulating the code to allow for a Variable of the word "Time Log*" but I cant figure it out.

    So if there is one Tab named "Time Log" and then you need another one, the second one is called "Time Log (1)" I need it to be able to sort that second page as well.

    Like the code I have below that will count how many Tabs in the workbook are Named "Time Log"

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    07-12-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2010
    Posts
    201

    Re: Auto Sorting Time Log

    Bump for a little help, please.

  6. #6
    Forum Contributor
    Join Date
    07-12-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2010
    Posts
    201

    Re: Auto Sorting Time Log

    Anyone? Please?

+ 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