+ Reply to Thread
Results 1 to 4 of 4

COUNTIFS - Time Issue

  1. #1
    Registered User
    Join Date
    01-23-2013
    Location
    Southern California
    MS-Off Ver
    Excel 2010
    Posts
    2

    COUNTIFS - Time Issue

    See screenshot here (http://i.imgur.com/Ck6oBuZ.png)

    I'm trying to calculate the amount of arrivals that occurred between 10am and 10:59pm.
    To calculate this i'm using countifs(arrivaltimerange, >=10am, arrivaltimerange, <11am)

    The issue I ran into is the times are taken from the Arrival Date Time column. I use MOD(Arrivaldatetimecolumn, 1) which outputs just the time into the Arrival Time column.
    For some odd reason the countifs function will not count 10:00am's. But if I type in 10:00am into the exact same cell as the one outputting 10:00 am through MOD, it will then see the 10AM and add it to the count.

    It's very very bizarre since it ONLY happens on the ">=time" times and is directly related to MOD.

    Any help would be appreciated.

    Thanks

    -- Edit
    Even MORE bizarre.
    If I do the countifs search for 10:30am it will correctly produce the result of 3.
    Last edited by kjcdude; 01-23-2013 at 10:27 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: COUNTIFS - Time Issue

    Hi kjcdude and welcome to the forum,

    Why not try using a Pivot Table where you group the arrival time by the hour. No formulas needed. See the attached for an example.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    01-23-2013
    Location
    Southern California
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: COUNTIFS - Time Issue

    I didn't even think of using Pivot Tables. Definitely making a lot easier to work with the data.

    I'm still confused on how you were able to define your row labels as a specific period of time.
    When I crate the same pivot table I get a row label for each value, not hours. http://i.imgur.com/Gu4ruJh.png

    Thanks

    Quote Originally Posted by MarvinP View Post
    Hi kjcdude and welcome to the forum,

    Why not try using a Pivot Table where you group the arrival time by the hour. No formulas needed. See the attached for an example.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: COUNTIFS - Time Issue

    Right Click on any of the times and then on the sub menu word of Group. Then click on hour and make sure day isn't selected too.

    See a picture of what I mean at http://chandoo.org/wp/2009/11/17/gro...-pivot-tables/ , but they don't do a group by hour.

+ 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