+ Reply to Thread
Results 1 to 4 of 4

sum cells that do not contain N/A

  1. #1
    Registered User
    Join Date
    08-23-2022
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    66

    sum cells that do not contain N/A

    I'm looking for something along the lines of

    B3 = IF(A3=N/A;B1+B2;A3+B1+B2)

    I want to plot a sequence of numbers on a line chart but I do not want it to show values of 0. The only solution I could find was outputting N/A instead of zero or blank. Any entirely different solution that makes sure my line graph does not draw when output = blank/zero would also solve my problem.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,485

    Re: sum cells that do not contain N/A

    Try:

    A3: =IF(COUNTBLANK(A1:A2),NA(), A1-A2)
    B3: =IF(COUNTBLANK(B1:B2),NA(), B1-B2)+IF(ISNA(A3),0,A3)

    and copy B3 across
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    08-23-2022
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    66

    Re: sum cells that do not contain N/A

    Thank you, the IF(ISNA) was exactly what I was looking for!

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,485

    Re: sum cells that do not contain N/A

    You're welcome. Thanks for the rep.

    Note also the NA() which generates the #NA error which is not charted. And ISNA picks this up.

+ 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. Replies: 3
    Last Post: 01-24-2021, 11:33 AM
  2. [SOLVED] Count the cells in a string of cells omitting zeros and specific cells
    By Hawkmoth1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-23-2017, 08:39 AM
  3. Replies: 0
    Last Post: 01-21-2015, 12:05 PM
  4. [SOLVED] Linking cells globally to allow users the ability to change cells on separate sheet/cells.
    By V1gilante in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2014, 10:47 PM
  5. combining many cells in one cells keeping character font and hyperlinks of all cells
    By mankind00 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-27-2012, 09:41 AM
  6. Replies: 4
    Last Post: 06-17-2011, 08:53 AM
  7. Formula: Drop Down List -> Choose Option Finds Cells & Replace Cells with Cells
    By g00glethis1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2010, 01:10 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