+ Reply to Thread
Results 1 to 7 of 7

Find cells within 24 hour time range, time can go to next day

  1. #1
    Registered User
    Join Date
    09-05-2012
    Location
    TEXAS, USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Find cells within 24 hour time range, time can go to next day

    I need to find a formula or method to find cells that fall between time ranges:
    7 am - 1 am, 1 am - 7 am, 12 pm - 1 pm. It would be nice to label it 7 am - 1 am "morning", 1 am - 7 am "grave shift", and 12 - 1pm "lunch"

    Do you know a way? PLEASE HELP! I have googled for hours on this.


    sample data:
    HOUR SCHEDULE DATE/TIME
    11:00:00 PM 8/31/2012 11:00:00 PM
    1:50:00 AM 9/1/2012 1:50:00 AM
    1:50:00 AM 9/1/2012 1:50:00 AM
    2:10:00 AM 9/1/2012 2:10:00 AM
    2:50:00 AM 9/1/2012 2:50:00 AM
    8:00:00 AM 9/1/2012 8:00:00 AM
    8:40:00 AM 9/1/2012 8:40:00 AM
    8:40:00 AM 9/1/2012 8:40:00 AM
    8:55:00 AM 9/1/2012 8:55:00 AM
    10:25:00 AM 9/1/2012 10:25:00 AM
    11:00:00 AM 9/1/2012 11:00:00 AM
    11:35:00 AM 9/1/2012 11:35:00 AM
    2:30:00 PM 9/1/2012 2:30:00 PM

  2. #2
    Registered User
    Join Date
    06-19-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Find cells within 24 hour time range, time can go to next day

    can you post a sample format you are working with?

  3. #3
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Find cells within 24 hour time range, time can go to next day

    I not sure what you mean , with reference to your shift times etc. See if you can adapt the file I have attached.
    It uses the VLOOKUP function, but you could use the LOOKUP function.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,622

    Re: Find cells within 24 hour time range, time can go to next day

    Pl see the attached file.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-05-2012
    Location
    TEXAS, USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Find cells within 24 hour time range, time can go to next day

    THANK YOU SO MUCH, BOTH OF YOU! That is exactly what I was looking for. I really appreciate it.

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,622

    Re: Find cells within 24 hour time range, time can go to next day

    Pl mark the thread solved.

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Find cells within 24 hour time range, time can go to next day

    @ LANB5669

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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