+ Reply to Thread
Results 1 to 6 of 6

Sumif certain criteria

  1. #1
    Registered User
    Join Date
    09-22-2014
    Location
    England
    MS-Off Ver
    MS 365 Enterprise V2210
    Posts
    85

    Sumif certain criteria

    Hi All,

    Hope you can help me solve my excel problem.

    I have attached the excel example of what I am about to refer too!

    Yellow cells refer to cell that are lists and I would like to change. So the formula needs to link back to these and be flexible as possible

    I am trying to find the sum of numbers that are between the two dates (C20:D20) and that match the criteria in A20:B20, however I can only sum the criteria that have no blank cell which match that criteria.

    In my example, I have highlighted the cells that would be summed in blue but I have also highlighted cells in red that can’t be added to the total due to the blank cells at H11:K11 even though it matches the criteria

    I need to be able to change the dates. So the formula needs to be flexible to notice if blanks cells are present in the range and therefore not added.

    I hope I made myself as clear as possible.
    Attached Files Attached Files

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Sumif certain criteria

    Using your sample workbook
    If you want to sum the values where:
    Trade Category equals Food
    and
    Street equals Barry
    and
    Column heading is between Jan-13 and Oct-13

    Try this formula:
    Please Login or Register  to view this content.
    For your data, that formula returns: 2,740,212

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    09-22-2014
    Location
    England
    MS-Off Ver
    MS 365 Enterprise V2210
    Posts
    85

    Re: Sumif certain criteria

    thanks Ron.

    however this is not exactly what im looking for

    I need to exclude the entire row(F11:O11) of light red cells as they have blank cells (dark red).

    So the total should read 2,346,712
    Last edited by doylzer; 02-02-2016 at 11:52 AM.

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Sumif certain criteria

    I added a helper column that determines if there are blanks in the rows between the columns represented by the dates in C20 and D20. The helper column is column Q
    Enter in Q2 and fill down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Enter this modified formula in D20
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Registered User
    Join Date
    09-22-2014
    Location
    England
    MS-Off Ver
    MS 365 Enterprise V2210
    Posts
    85

    Re: Sumif certain criteria

    Thanks everyone. that last post worked perfectly. Much appreciated.

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Sumif certain criteria

    You're welcome. Thank you for the feedback and good luck with the project.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Shorten SUMIF + SUMIF + SUMIF each with same reference range but different criteria???
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-13-2014, 09:25 PM
  2. [SOLVED] Multiple Criteria SUMIF Using Column as Negative Criteria
    By freybe06 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-24-2014, 04:46 PM
  3. SUMIF or SUMIF's formula with multiple criteria
    By jackiemariee in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-30-2013, 06:19 PM
  4. SumIf using date criteria range and one other criteria
    By DJTMONEY in forum Excel General
    Replies: 1
    Last Post: 04-20-2010, 04:10 PM
  5. SUMIF with multiple criteria, one criteria a specific string
    By Weasel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-03-2008, 05:32 PM
  6. nested sumif or sumif with two criteria
    By dshigley in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-04-2005, 11:06 PM
  7. sumif criteria
    By Lori Hornick in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-23-2005, 11:06 AM

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