+ Reply to Thread
Results 1 to 4 of 4

Averaging non continuous cells, and ignoring cells with errors

  1. #1
    Registered User
    Join Date
    08-15-2007
    Posts
    8

    Averaging non continuous cells, and ignoring cells with errors

    Hi, thanks for taking time to look at this. I need to an average of several cells that are non continuous. The problem is that some cells contain errors. I would like to take the average and ignore the cells containing errors. This worksheet has several pages i need to do this on and is not my creation so i am trying to avoid having to go back and eliminate the errors.

    I have tried different versions of IF statements and ISERROR/ISNUMBER in an array format but cannot get the formula (or possibly the syntax) to work for the non continuous range. My data are in cells M10, M20, M30, M43, M53, M63.

    Any ideas on how to best accomplish this without a macro?


    Thanks

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Are there any other numbers in between those 6 cells within range M10:M63...

    if no, then use this formula:

    =AVERAGE(IF(ISNUMBER(M10:M63),M10:M63))

    which must be confirmed with CTRL+SHIFT+ENTER not just ENTER. You will see { } brackets appear.

    This formula ignores all non-numeric entries.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Try

    =SUM(IF(ISNUMBER(M10),M10),IF(ISNUMBER(M20),M20), IF(ISNUMBER(M30),M30),IF(ISNUMBER(M43),M43),IF(ISNUMBER(M53),M53),IF(ISNUMBER(M63),M63))/MAX(1,COUNT(M10,M20,M30,M43,M53,M63))

  4. #4
    Registered User
    Join Date
    08-15-2007
    Posts
    8
    Thanks for the quick response.

    NBVC- unfortunately there are other numbers and errors inbetween so that formula does not work.

    Daddylonglegs - That formula works perfectly well. Guess i was trying to make it too complicated. Thanks!

+ 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