+ Reply to Thread
Results 1 to 4 of 4

Summing Between Two Dates for multiple criteria

  1. #1
    Registered User
    Join Date
    08-01-2012
    Location
    New York, New York
    MS-Off Ver
    Excel 2010
    Posts
    2

    Summing Between Two Dates for multiple criteria

    I have recently built a database for my company's sales. I have three columns: Date, Item, and Sales. What I want to do is sum the sales between dates for any combination of items. I have a formula that currently works for 1 item, but when I try to add in a second item the formula returns a "!VALUE".

    Any help would be greatly appreciated.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Summing Between Two Dates for multiple criteria

    Perhaps use

    =SUMIFS(C:C,B:B,"item",A:A,">="&Lowerdate,A:A,"<"&Higherdate)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    08-01-2012
    Location
    New York, New York
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Summing Between Two Dates for multiple criteria

    Yes, that works for summing the sales for one item. How do I add in a second item in that formula? Say for example "the combined sales of product X and product Y or a given time period".

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Summing Between Two Dates for multiple criteria

    try =SUMIFS(C:C,B:B,or("itemA"m"itemB"),A:A,">="&Lowerdate,A:A,"<"&Higherdate)
    or
    SUMIFS(C:C,B:B,"itemA",A:A,">="&Lowerdate,A:A,"<"&Higherdate)+SUMIFS(C:C,B:B,"itemB",A:A,">="&Lowerdate,A:A,"<"&Higherdate)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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