+ Reply to Thread
Results 1 to 7 of 7

Average, avoid column or cells where error

Hybrid View

  1. #1
    Registered User
    Join Date
    07-27-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007,2010, 2013
    Posts
    26

    Average, avoid column or cells where error

    hey all,untitled.jpg

    I am trying to calculate averages for all the imported data, attached is to simplify explanation, but as some values are not valid (hach value, DIV/0!) the average is returning the same error. Is there a syntax to keep pasting all data as we have already done but when calculating averages to disregard the whole column that contain errors?

    best wishes

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Average, avoid column or cells where error

    Hi,

    Can't you just wrap the whole formula in an =IFERROR() function and specify "", or zero, or whatever text you want as the second parameter after your formula?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    07-27-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007,2010, 2013
    Posts
    26

    Re: Average, avoid column or cells where error

    Hi,
    I have not done this before, can you help me with an example please.

    Thank You.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Average, avoid column or cells where error

    Hi

    It would have helped if you had uploaded the workbook rather than a picture (as per the advice in the forum rules), pictures are rarely much use to us.

    What I meant was, with the formula that is returning DIV/0! or indeed any other error result, put the formula in an =IFERROR() function.

    i.e. =IFERROR(your_formula,"")

  5. #5
    Registered User
    Join Date
    07-27-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007,2010, 2013
    Posts
    26

    Re: Average, avoid column or cells where error

    many thanks,

    will make a go on it.

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Average, avoid column or cells where error

    Assumes that your data in A1:A10

    This is an array formula and must be entered with Ctrl+Shft+Enter combination

    =AVERAGE(IF(ISNUMBER(A1:A10),A1:A10))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Average, avoid column or cells where error

    You're welcome. Don't forget to thank those who helped by clicking on Add Reputation * and please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

+ 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. Average non-contiguous cells, ignore blank cells and avoid #DIV/0!
    By Davdef in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 10-06-2018, 10:03 AM
  2. Replies: 14
    Last Post: 06-14-2013, 09:00 PM
  3. [SOLVED] How to average a column of numbers greater than 0, not giving div 0 error
    By TERRI LEE in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-01-2012, 05:03 AM
  4. Replies: 1
    Last Post: 04-30-2012, 12:07 PM
  5. globally change average formula to avoid errors
    By franklin1 in forum Excel General
    Replies: 3
    Last Post: 05-26-2010, 04:17 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