+ Reply to Thread
Results 1 to 7 of 7

SUMIFS <> error???

  1. #1
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Boston, MA
    MS-Off Ver
    Office 2010
    Posts
    172

    SUMIFS <> error???

    Hi!

    I have some pre-formatted data. At the bottom of each set is a sum total. How can I make it ignore when the data is returning an error? I tried SUMIFS(A2:A16,A2:A16,"TYPE()<>16"), but that didn't work. I'm not really sure how I can get around this, as the sum total always returns an error if any of the data types return as an error! Please help!

  2. #2
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: SUMIFS <> error???

    Quote Originally Posted by AstToTheRegionalMGR View Post
    I have some pre-formatted data. At the bottom of each set is a sum total. How can I make it ignore when the data is returning an error? I tried SUMIFS(A2:A16,A2:A16,"TYPE()<>16"), but that didn't work. I'm not really sure how I can get around this, as the sum total always returns an error if any of the data types return as an error!
    I think the best solution is to prevent the Excel errors, in the first place. If you want help with that, provide an example Excel file and explain the situations that cause the Excel errors.

    Otherwise, note that SUMIFS and the TYPE function cannot be used in that way. Instead, array-enter the following formula (press ctrl+shift+Enter instead of just Enter):

    =SUM(IF(ISERROR(A2:A16)=FALSE,A2:A16))
    Last edited by joeu2004; 03-25-2015 at 10:40 AM. Reason: cosmetic

  3. #3
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Boston, MA
    MS-Off Ver
    Office 2010
    Posts
    172

    Re: SUMIFS <> error???

    I have hundreds of these data sets, and error-preventing in the first place will be the bigger headache, unfortunately. I thought this might come to array formulas, which I just don't understand. I'll use yours and see if it works, though. Thanks!

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: SUMIFS <> error???

    Another Array Formula which you can try in this situation......

    Please Login or Register  to view this content.
    Confirmed with Ctrl+Shift+Enter instead of Enter alone.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    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,938

    Re: SUMIFS <> error???

    I suggest you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

    A
    B
    1
    1
    a
    2
    2
    b
    3
    3
    a
    4
    #N/A
    b
    5
    #ERROR a
    6
    4


    A6=SUMIFS(A1:A5,B1:B5,"a")
    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

  6. #6
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: SUMIFS <> error???

    Quote Originally Posted by AstToTheRegionalMGR View Post
    I have hundreds of these data sets, and error-preventing in the first place will be the bigger headache, unfortunately. I thought this might come to array formulas, which I just don't understand. I'll use yours and see if it works, though.
    Another alternative:

    =SUMIFS(A1:A16,A1:A16,"<>#N/A",A1:A16,"<>#DIV/0!")

    In other words, exclude specific Excel errors. See the ERROR.TYPE help page for a list of all Excel errors, if you wish to exclude them all.

  7. #7
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Boston, MA
    MS-Off Ver
    Office 2010
    Posts
    172

    Re: SUMIFS <> error???

    joeu2004,

    I didn't think you could use "#N/A" as a reference to an error. Am I wrong about that? I thought Excel recognized that as text when you typed it into a formula?

    I'm only receiving #N/A errors, so that could definitely work

+ 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. SUMIFS Error
    By xourico24 in forum Excel General
    Replies: 8
    Last Post: 11-10-2014, 08:56 AM
  2. [SOLVED] SUMIFS error= #VALUE!
    By z_eeen in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-12-2014, 02:07 PM
  3. [SOLVED] If error(sumifs......
    By shiftyspina in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-16-2013, 02:13 PM
  4. SUMIFS and #VALUE! error
    By BDAtlanta in forum Excel General
    Replies: 3
    Last Post: 09-18-2011, 08:43 PM
  5. SUMIFS() error?
    By fgrose in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-07-2006, 01:45 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