+ Reply to Thread
Results 1 to 8 of 8

Sum excluding n/a's

  1. #1
    Forum Contributor
    Join Date
    08-07-2008
    Location
    Australia
    Posts
    132

    Sum excluding n/a's

    I have a similar query to this post, but still having issues with it.

    Basically I am wanting to sum cells J13,J21,J26,J34,J41,J44, however cell J13 has a #N/A, therefore when I sum those cells it still appears as #N/A.

    The formula I am using is:
    =IF(OR(J13="",J21="",J26="",J34="",J41="",J44=""),"",SUM(IF(J13&J21&J26&J34&J41&J44,"<>#N/A")))

    Does anyone know how to fix this?

    Thanks
    Tim

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    i'd fix the n/a bit !

  3. #3
    Forum Contributor
    Join Date
    08-07-2008
    Location
    Australia
    Posts
    132
    Hi Martin

    I actually need to include the N/A bit, as it links to a chart, e.g. NA(), so it doesn't plot on graph.

    Any one else know how I can fix?

  4. #4
    Forum Contributor
    Join Date
    08-07-2008
    Location
    Australia
    Posts
    132
    Alternatively, I have worked a way around the previous post problem by using following formula:

    =SUMIF(J45:J50,"<>#N/A")

    This works fine and adds up J45:J50, while excluding #N/A's.

    However, as soon as I place the following IF statement in front of it:

    =IF(J5="","",SUMIF(J45:J50,"<>#N/A"))

    It returns #N/A????

    Does anyone know why? Or how to fix this?

    Thanks very much!

  5. #5
    Forum Contributor
    Join Date
    08-07-2008
    Location
    Australia
    Posts
    132
    Hi!
    Does anyone have any suggestions on above posts???
    Thanks
    T

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    you was coloured in RED so i had to check with admin
    i can't get that to fail as you describe
    i tried
    =IF(A2="","",SUMIF(B1:H1,"<>#N/A")) and deleberatly put a vlook up returning #n/a in cell d1
    it totaled b1:h1 nicely as soon as i put value in a2

  7. #7
    Forum Contributor
    Join Date
    08-07-2008
    Location
    Australia
    Posts
    132
    Thanks Martin.

    Strange.... I think it might have something to do with my N/A cell having an error in it..... Oh wells.

    Cheers
    T

  8. #8
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561
    Martin, you can force an N/A error very easily... =na()

    Tim, to confirm, I also found your formula as tested by Martin works perfectly for me too... the problem is at your end

+ 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. Deleting N/As in range
    By John2007 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-04-2008, 02:46 PM
  2. Replies: 0
    Last Post: 04-03-2008, 10:15 PM
  3. selecting the last 5 sheets excluding some pages
    By aishaz_88 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-03-2008, 05:49 AM
  4. Sum excluding n/a's
    By deftones200 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-13-2007, 04:33 AM
  5. Calculate workdays between two dates (including Saturdays, excluding holidays)
    By Sean Anderson in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-12-2007, 12:22 AM

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