+ Reply to Thread
Results 1 to 3 of 3

Date Occurences with Times

  1. #1
    Forum Contributor
    Join Date
    06-16-2008
    Posts
    287

    Date Occurences with Times

    Hi, i have a little query that i am stuck on. I have a list of dates with times and what I am trying to do is sum up the number of occurences for 1 date using a sumif formula but this doesnt seem to work.

    I have tried using wildcard character after the date as well, but this still shows up as 0. I have attached a sample workbook so if somebody could please help...

    Thanks in advance.
    Attached Files Attached Files
    Last edited by aftabn10; 02-03-2011 at 06:23 AM. Reason: Solved

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,577

    Re: Date Occurences with Times

    You're going to have issues with errors like in A2 (#N/A) messing up your sums. If, that's the only one, then this should work

    If you are looking to just count the number of occurances, then
    =SUMPRODUCT(--(INT($A$3:$A$34)=E3))
    If you want to sum the hours in the occurances then
    =SUMPRODUCT(--(INT($A$3:$A$34)=E3), MOD($A$3:$A$34,1))
    Does that work for you?
    Format your cell to [h]:mm
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor
    Join Date
    06-16-2008
    Posts
    287

    Re: Date Occurences with Times

    Thanks ChemistB, that worked brilliantly.

+ 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