+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : sum column matching dates excluding time

  1. #1
    Registered User
    Join Date
    05-24-2010
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    14

    sum column matching dates excluding time

    Hi all,

    Third new post for me.

    I have two columns. One with dates including the time stamp on them. The other with amounts for those dates.

    Date Result
    Sun, Jan 30, 2011, 3 AM $289.78
    Sun, Jan 30, 2011, 7 AM $290.78
    Sun, Jan 30, 2011, 11 AM $231.34
    Mon, Jan 31, 2011, 3 PM $23.78
    Mon, Jan 31, 2011, 7 PM $143.12

    How can I add all the amounts posted on Jan 30 regardless of the time?
    For example, for Jan 30 I should add
    $289.78
    $290.78
    $231.34

    Also note that the list of dates and amounts includes zeros.

    Thanks in advance.

    luix
    Attached Files Attached Files
    Last edited by luix; 02-02-2011 at 06:33 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: sum column matching dates excluding time

    Adapt the COUNTIFS formula from the prior thread - ie SUMIFS

    Please Login or Register  to view this content.
    Others might suggest Pivots (Group by Day) - whether or not that's viable depends on how you intend to update the data and use the results.

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

    Re: sum column matching dates excluding time

    And for the SUMPRODUCT() fans (I'm not one)

    =SUMPRODUCT((INT(B3:B8)=E3)*(C3:C8))

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: sum column matching dates excluding time

    Cutter, if using SUMPRODUCT I'd suggest

    Please Login or Register  to view this content.
    to remove potential for coercion issues

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

    Re: sum column matching dates excluding time

    told you I wasn't a fan.

  6. #6
    Registered User
    Join Date
    05-24-2010
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: sum column matching dates excluding time

    Once again I am impressed with the accuracy and speed of the responses.

    Thank you again DonkeyOte!

    Thank you Cutter.

    I'll mark this one solved.

    luix

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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