+ Reply to Thread
Results 1 to 6 of 6

Ignore NA in sumif

  1. #1
    Forum Contributor
    Join Date
    12-12-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    448

    Ignore NA in sumif

    Hi. If I use a sumif formula and one of the cells that is summed has a NA, then the sumif total comes out NA. How can I ignore this cell in the sumif total? Thanks

  2. #2
    Registered User
    Join Date
    01-24-2011
    Location
    South Carolina
    MS-Off Ver
    Excel 2007
    Posts
    74

    Re: Ignore NA in sumif

    =if(iserror(sumif xxxxxxx),"")
    where (sumif xxxxxx) is your sumif formula


    ahh - strike that - re-read your post. This will leave the whole sum blank, not just ignore the errant cell.
    < Click the * to say 'thanks'

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Ignore NA in sumif

    instead of

    =SUMIF(A:A,"x",B:B)

    use SUMIFS like this

    =SUMIFS(B:B,A:A,"x",B:B,"<>#n/a")
    Audere est facere

  4. #4
    Forum Contributor
    Join Date
    12-12-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    448

    Re: Ignore NA in sumif

    I am using sumifs. This is an example =SUMIFS($D35:$BX35,$D$4:$BX$4,CR$4,$D$6:$BX$6,CR$6). What does the "<>#n/a" do?

  5. #5
    Forum Contributor
    Join Date
    12-12-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    448

    Re: Ignore NA in sumif

    Also, is there any way to get around this without creating a sumifs (keeping just the sumif equation)?

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Ignore NA in sumif

    You'll need to use SUMIFS for more than one condition (there are other possible approaches but not SUMIF and none better in general).

    In that SUMIFS formula I assume that you have #N/A errors in the sum range, to ignore those you can add another condition, i.e.

    =SUMIFS($D35:$BX35,$D35:$BX35,"<>#N/A",$D$4:$BX$4,CR$4,$D$6:$BX$6,CR$6)

    "<>#N/A" means "Not equal to #N/A"

+ 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