+ Reply to Thread
Results 1 to 5 of 5

SUMIF, with both the sum range and the criteria range including N/A Values

  1. #1
    Registered User
    Join Date
    09-03-2019
    Location
    Austria
    MS-Off Ver
    2016
    Posts
    2

    Question SUMIF, with both the sum range and the criteria range including N/A Values

    I have a criteria range B1:UK1 and sum range C2:UK2. Both rows include numbers as well as "N/A" values. Can I set up a sumif/sumifs function that ignores the N/A values? Or is there a different function I could use to solve this issue.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: SUMIF, with both the sum range and the criteria range including N/A Values

    Couldn't you do something to get rid of the #N/A values in the first place? How do they get there? Through some formula? If so, you can use this:

    =IFERROR(your_formula,"")

    Hope this helps.

    Pete

  3. #3
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: SUMIF, with both the sum range and the criteria range including N/A Values

    If it is text "N/A" then simple sumif would work. But from your description, criteria range and sum range's dimension do not match (criteria has one extra cell).
    If both start as Column B... then something like...
    =SUMIFS(B2:UK2,B1:UK1,"<>N/A",B1:UK1,SomeOtherCondition)

    If it's #N/A! Error value that's in range... (i.e. error generated from formula evaluation). Best practice is to nest the formula in the range with IFERROR(formula,"") to avoid returning error value.

    If you need to retain the error value, you can use SUMPRODUCT (confirmed as array CTRL + SHIFT + ENTER)
    =SUMPRODUCT(NOT(ISNA(B1:UK1))*IF(ISNA(B2:UK2),0,B2:UK2)*(B2:UK2="SomeOtherCondition"))
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  4. #4
    Registered User
    Join Date
    09-03-2019
    Location
    Austria
    MS-Off Ver
    2016
    Posts
    2

    Re: SUMIF, with both the sum range and the criteria range including N/A Values

    They had the same range, my original post was inaccurate. Got it solved by nesting previous formulas in the IFERROR construct. Thanks for the help.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: SUMIF, with both the sum range and the criteria range including N/A Values

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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] Sumif(range,criteria,range) issues
    By sly1one in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-01-2019, 11:00 AM
  2. [SOLVED] Including values in range if it meets two criteria.
    By Rasmusvwn in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-03-2016, 03:34 PM
  3. [SOLVED] Advanced SUMIF - date range including missing dates
    By chococ in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-23-2015, 02:12 PM
  4. [SOLVED] Count based on 3 criteria including value range
    By Perk1961 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-13-2015, 10:43 PM
  5. [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
  6. [SOLVED] including a date range in SUMIF
    By Emma Blower in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-09-2014, 05:24 PM
  7. [SOLVED] Using Index/Match using criteria including range between two cells
    By fer907 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2013, 04:07 PM

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