+ Reply to Thread
Results 1 to 3 of 3

Finding values between certain times

  1. #1
    Registered User
    Join Date
    03-25-2008
    Posts
    10

    Finding values between certain times

    Is there a way to find certain values between certain times? I would like to put this log all on one sheet, but i cannot figure out how to tell it to look for two certain values between, say 7am to 3pm. My time columns are formatted by Time, h:mm AM/PM. I have the other section of the formula figured out (find the two values) but I just cannot figure out between times. I have used < > but it doesnot seem to work on time values. Right now, the three time shifts I am using are broken up onto three separate pages, but I would like it to be all on one.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,486
    Quote Originally Posted by kethyar
    Is there a way to find certain values between certain times? I would like to put this log all on one sheet, but i cannot figure out how to tell it to look for two certain values between, say 7am to 3pm. My time columns are formatted by Time, h:mm AM/PM. I have the other section of the formula figured out (find the two values) but I just cannot figure out between times. I have used < > but it doesnot seem to work on time values. Right now, the three time shifts I am using are broken up onto three separate pages, but I would like it to be all on one.
    Here's a formula
    =SUMIF('Master Sheet'!B:B,"<="&A3,'Master Sheet'!C:C)-SUMIF('Master Sheet'!B:B,"<"&A2,'Master Sheet'!C:C)
    Here's an example workbook useing the formula:
    Get Values Between Times.zip

    Change the times, the values will be added up from the "Master Sheet"

  3. #3
    Registered User
    Join Date
    03-25-2008
    Posts
    10
    i think i understand what's going on in your formula, but i dont think its exactly what i need. basically i have columns:

    Time In | Time Out | HK/ENG | P/NP


    and i want to be able to calculate the # of HK's and P's between 7am and 3pm, then again between 3pm to 11pm, and 11pm to 7am. i have the formula to calculate the HK's and P's, (and HK's and NP,s etc etc):

    =SUMPRODUCT(('7AM-3PM'!H8:H50="HK")*('7AM-3PM'!L8:L50="P"))

    is there a way to calculate using the above formula or place that in another formula that calculates these #'s between those certain shift times?

+ 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