+ Reply to Thread
Results 1 to 4 of 4

Sum range without taking #N/A into consideration

  1. #1
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Birmingham, UK
    MS-Off Ver
    2007
    Posts
    185

    Sum range without taking #N/A into consideration

    Hello All,

    I need to sum a range of cells which are showing qty's and are determined by an index formula. Unfortunately for some that don't appear in the data sheet it comes back with #N/A.

    Is there a way to sum the range in which this appears but make the sume not to take the #N/A's into consideration?

    Appreciate any feedback while I keep searching for solution.

    Simon
    Last edited by Ramzes; 02-21-2015 at 08:33 AM. Reason: solved thread
    ...and this is when I walk in, dressed fully in white...

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Sum range without taking #N/A into consideration

    Hi.

    If the numbers within the range (here assumed to be A1:A10) can only ever be non-negative:

    =SUMIF(A1:A10,">0")

    If there may also be negative numbers within the range:

    =SUM(SUMIF(A1:A10,{"<",">"}&0))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Sum range without taking #N/A into consideration

    Try using sumif or sumifs like
    =SUMIF(A1:A5,">0",A1:A5)+SUMIF(A1:A5,"<0",A1:A5)
    or
    =SUM(SUMIFS(A1:A5,A1:A5,{">0","<0"}))
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Birmingham, UK
    MS-Off Ver
    2007
    Posts
    185

    Re: Sum range without taking #N/A into consideration

    Hi Both,

    Thank you very much for taking your time and looking into this for me.

    All versions of your suggestions worked perfectly!

    Appreciate your help.

    Thank you.

+ 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] creating a named range taking the avg. to date of a dynamic range.
    By siggisigg in forum Excel General
    Replies: 1
    Last Post: 07-15-2014, 08:58 AM
  2. Adding up Absent time taking lunch time into consideration
    By abrilabs in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-21-2013, 02:02 PM
  3. Replies: 3
    Last Post: 12-05-2012, 05:12 PM
  4. Replies: 1
    Last Post: 07-27-2012, 05:37 PM
  5. % to Volume Formula taking into consideration days worked
    By kwilliams5675 in forum Excel General
    Replies: 7
    Last Post: 04-20-2010, 03:26 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