+ Reply to Thread
Results 1 to 5 of 5

Unable to obtain Average due to cells contain #N/A value

  1. #1
    Forum Contributor
    Join Date
    10-25-2010
    Location
    Phoenix, Arizona, USA
    MS-Off Ver
    O365
    Posts
    201

    Question Unable to obtain Average due to cells contain #N/A value

    I have a worksheet that I am attempting to obtain the average for Range("C1:C500"). Some cells in that range contain #N/A as a value due to a calculation for the cell (the same range being used for graphing). When I attempt to use =AVERAGE("C1:C500"), I receive #N/A as a result.

    How do I obtain the average result?

    Ugghhhh!


    Thank you.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Unable to obtain Average due to cells contain #N/A value

    Why don't you do something to get rid of that #N/A error? You could use IFERROR in the cell to trap the error.

    Hope this helps.

    Pete

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Unable to obtain Average due to cells contain #N/A value

    Untested

    Please Login or Register  to view this content.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

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

    Re: Unable to obtain Average due to cells contain #N/A value

    hi PosseJohn, try:
    =SUMIF(C1:C500,"<>"&"#N/A")/COUNTIF(C1:C500,"<>"&"#N/A")

    or:
    =AVERAGEIF(C1:C500,"<>"&"#N/A")

    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

  5. #5
    Forum Contributor
    Join Date
    10-25-2010
    Location
    Phoenix, Arizona, USA
    MS-Off Ver
    O365
    Posts
    201

    Re: Unable to obtain Average due to cells contain #N/A value

    Thank you! The second suggestion resolved the conflict.

+ 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