+ Reply to Thread
Results 1 to 4 of 4

Help with summing an grid with a single criteria. SUMIF or SUm(IF) or SUMPRODUCT?

  1. #1
    Registered User
    Join Date
    10-22-2018
    Location
    Auckland
    MS-Off Ver
    2018
    Posts
    6

    Help with summing an grid with a single criteria. SUMIF or SUm(IF) or SUMPRODUCT?

    Hi there,
    I'm looking for a formula that will allow me to sum the number of options available in an array with a single criteria.

    On the example sheet attached, I want to know the number of "ACC" styles that I am offering in the range c$4:i$8.
    By using the filter on the "function" column, I know my answer is 5, but how can this be formulated into the yellow cells?

    I have tried various versions of SUM, SUMIF and SUMPRODUCT without success and keep getting a #VALUE error.

    Any help with be much appreciated!

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    40,644

    Re: Help with summing an grid with a single criteria. SUMIF or SUm(IF) or SUMPRODUCT?

    In B1 (whose formatting needs setting to General, not Percentage):

    =SUMPRODUCT(($B$4:$B$8=A14)*($C$4:$I$8=1))

    If the numbers can be greater than one in the matrix, then use this:

    =SUMPRODUCT(($B$4:$B$8=A14)*($C$4:$I$8<>"x"),$C$4:$I$8)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  3. #3
    Registered User
    Join Date
    10-22-2018
    Location
    Auckland
    MS-Off Ver
    2018
    Posts
    6

    Re: Help with summing an grid with a single criteria. SUMIF or SUm(IF) or SUMPRODUCT?

    Thank you so much for your help!
    the =1 was the key to what I was missing.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    40,644

    Re: Help with summing an grid with a single criteria. SUMIF or SUm(IF) or SUMPRODUCT?

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. Combine sumif/sumproduct or sumproduct with multiple criteria
    By sab128 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-16-2018, 08:25 AM
  2. Replies: 5
    Last Post: 09-22-2017, 11:05 AM
  3. Replies: 3
    Last Post: 09-01-2016, 05:08 AM
  4. Summing values based on criteria (SUMIF issues)
    By notsamsnead in forum Excel General
    Replies: 4
    Last Post: 08-11-2014, 09:03 PM
  5. [SOLVED] Sumproduct the answer? Multiple Criteria and Horizontal Summing
    By lewny1983 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-07-2013, 10:01 AM
  6. [SOLVED] Sumproduct and summing last occurrences of criteria
    By Spankyf in forum Excel General
    Replies: 5
    Last Post: 05-15-2012, 01:01 PM
  7. Summing based on TWO search criteria (SUMIF?)
    By JBeaucaire in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2008, 01:28 PM

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