+ Reply to Thread
Results 1 to 8 of 8

Sum based on date cell not being empty

  1. #1
    Registered User
    Join Date
    08-28-2009
    Location
    scotland
    MS-Off Ver
    Excel 2007
    Posts
    4

    Question Sum based on date cell not being empty

    Hi there,

    Looking for a bit of help with a formula, it's been years since I've used excel properly.

    Here's what I'm trying to do:

    I have a list of items and their prices, some of these items have been bought already and have the date of purchase stored in a date formatted cell.

    I have a running total of these various items but I only want to sum the ones which have been purchased already ie only those with a purchase date.

    I have the logic of how it should be done in my head, I just can't translate that in to a working formula.

    Any help would be appreciated.

    Cheers.
    Last edited by impy; 08-28-2009 at 03:33 PM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Sum based on date cell not being empty

    Which is it SUM or COUNT? Your thread title mentions SUM, but you also said:
    I only want to count
    Assuming:
    column-A = dates
    columb-B = values to sum

    Formula in C

    =SUMIF(A2:A6,"<>""",B2:B6)

  3. #3
    Registered User
    Join Date
    08-28-2009
    Location
    scotland
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Sum based on date cell not being empty

    I want the sum total of the prices, so SUM edited the post to avoid any further confusion.

    Tried your formula there but still adds all the items to the total

  4. #4
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Sum based on date cell not being empty

    Seems to work for me.

  5. #5
    Registered User
    Join Date
    08-28-2009
    Location
    scotland
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Sum based on date cell not being empty

    Ah I see what you've done now.

    That's not what I meant, I don't think I explained myself properly.

    This should show what I mean better
    Attached Files Attached Files

  6. #6
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Sum based on date cell not being empty

    You only have to adapt the formula I gave you.

    Anyway, in cell H8: =SUMIF(B2:B6,"<>""",F2:F6)

  7. #7
    Registered User
    Join Date
    08-28-2009
    Location
    scotland
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Sum based on date cell not being empty

    Ah sorry mate, the "<>""" extra ""s were throwing it off.

    Cheers for the help!

  8. #8
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Sum based on date cell not being empty

    If you're satisfied with the solution, please mark the thread as solved and be sure to add to the reputation of all who helped by clicking on the Scales icon in a thread to which a helper responded.

+ 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