+ Reply to Thread
Results 1 to 5 of 5

Countif on times

  1. #1
    Registered User
    Join Date
    08-24-2009
    Location
    England
    MS-Off Ver
    Excel 2002
    Posts
    3

    Countif on times

    Hi all,

    I have a list of times of which i need to know how many are after 7pm and before 7am. I have used the following statement but its returning 0 so i am assuming that im wrong:

    =COUNTIF(RANGE,">07:00:00<19:00:00")

    Its cleary wrong..but does anybody have any ideas on this one? Thanks,

    Phil

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,024

    Re: Countif on times

    Something like this:

    =SUMPRODUCT(--(range>7);--(range<19))

    (replace ; with , if needed)
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    08-24-2009
    Location
    England
    MS-Off Ver
    Excel 2002
    Posts
    3

    Re: Countif on times

    Thanks for the fast reply mate, but it doesnt work :-( still returns zero!

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,024

    Re: Countif on times

    sorry... /24

    =SUMPRODUCT(--($G$8:$G$13<19/24);--($G$8:$G$13>7/24))
    Last edited by zbor; 08-24-2009 at 10:05 AM.

  5. #5
    Registered User
    Join Date
    08-24-2009
    Location
    England
    MS-Off Ver
    Excel 2002
    Posts
    3

    Re: Countif on times

    Spot on mate, thanks very much!

+ 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