+ Reply to Thread
Results 1 to 8 of 8

Ignoring #N/A values to Average

  1. #1
    Forum Contributor
    Join Date
    08-23-2013
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 365
    Posts
    166

    Ignoring #N/A values to Average

    I am looking to add into the average function to ignore #N/A values and average everything else.

    =IF($A109>Key!$B$2,ERROR.TYPE(7),AVERAGE(BI98:BI109))

    Thanks,

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: Ignoring #N/A values to Average

    Instead of that, have you considered adjusting teh formulas that result in NA?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    08-23-2013
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 365
    Posts
    166

    Re: Ignoring #N/A values to Average

    They need to be #N/A because it is data to be used in a graph and just an NA makes the graph wonky.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Ignoring #N/A values to Average

    Try

    =IF($A109>Key!$B$2,ERROR.TYPE(7),AVERAGEIF(BI98:BI109,"<>#N/A"))

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: Ignoring #N/A values to Average

    Jonmo will ERROR.TYPE work in 2007?

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Ignoring #N/A values to Average

    Not sure about that that.
    I was going on the assumtion that the formula worked as is, as long as there's no #N/A errors in the range..
    OP profile saying 2007 is not always correct..

    If not, you can just write NA() (or even #N/A) instead instead of Error.Type(7)

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: Ignoring #N/A values to Average

    OK, sorry, I did not notice that had included that as their formula in post 1. One of these days, I will read entire posts lol

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Ignoring #N/A values to Average

    Quote Originally Posted by FDibbins View Post
    Jonmo will ERROR.TYPE work in 2007?
    Quote Originally Posted by Jonmo1 View Post
    Not sure about that that.
    The ERROR.TYPE function is available in all versions of Excel.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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] Calculating rolling average ignoring 0 values
    By Whitz in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-07-2024, 05:51 PM
  2. [SOLVED] Data Cleanup - ignoring blanks, ignoring rows with string values etc.
    By Huyaku in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2015, 08:17 AM
  3. Replies: 4
    Last Post: 11-19-2014, 10:13 PM
  4. Average Ignoring Zero Values - Non-consecutive cells
    By a7mad3wies in forum Excel General
    Replies: 2
    Last Post: 12-05-2013, 02:13 AM
  5. Replies: 5
    Last Post: 12-04-2013, 04:54 AM
  6. [SOLVED] Excel 2010 Average Ignoring Zero Values - Non-consecutive cells
    By lanos in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 10-23-2013, 07:28 PM
  7. Conditional weighted average ignoring #N/A values
    By syoung27 in forum Excel General
    Replies: 4
    Last Post: 02-22-2012, 10:48 AM

Tags for this Thread

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