+ Reply to Thread
Results 1 to 6 of 6

How to do sum-up for a column and ignore error cells?

  1. #1
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    How to do sum-up for a column and ignore error cells?

    Dear Sir, I want to do a sum-up for column A1:A5 whose values are larger than 1. To ignore error cells, I used the array as:

    =SUM(IF(ISNUMBER(A1:A5),IF(A1:A5>1,A1:A5,""),"")).

    My question is: Is there a more 'clever' way to ignore errors? I feel the above formula does not look very neat.


    1
    #N/A
    2
    #DIV/0!
    4

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: How to do sum-up for a column and ignore error cells?

    hi BNCOXUK, try:
    =SUMIF(A1:A5,">1")

    i would suggest you counter errors for the data instead though. prevent #N/A or #DIV/0 from appearing there using IFERROR, ISERROR, etc

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: How to do sum-up for a column and ignore error cells?

    This looks better. But what if there is another column B1:B5 and I want to sum up A1/B1, A2/B2, A3/B3, A4/B4, A5/b5, and at the same time the condition still holds A1:A5 > 1.

  4. #4
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: How to do sum-up for a column and ignore error cells?

    Can an Excel guru please take a look? Thanks.

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to do sum-up for a column and ignore error cells?

    ...i would suggest you counter errors for the data instead though. prevent #N/A or #DIV/0 from appearing there using IFERROR, ISERROR, etc
    This is from post#2.

    I agree with this.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

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

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  6. #6
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: How to do sum-up for a column and ignore error cells?

    Quote Originally Posted by Fotis1991 View Post
    This is from post#2.

    I agree with this.
    Thanks, Fotis.

+ 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