+ Reply to Thread
Results 1 to 9 of 9

remove #N/A from average

  1. #1
    Forum Contributor
    Join Date
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    534

    remove #N/A from average

    I have a spreadsheet that I want to calculate sum and average on. I find my numbers and percentages with VLookup with no issues. However if there is no data to return I get the #N/A error message returned. I do not just want to add an iferror tag to my vlookup because it will at 0 to my average and create a false average. The problem is that for some instances 0 will be the correct number and should be calculated into the average and other times whtn there is simply no data to return I can have the field being populated by "false 0"'s

    The simple solution would be to have the vlookup not return the #N/A message at all but leave the field blank when there is nothing to return. I found this formula but I can't make it work. Excel keeps telling me there is something wrong with it. Generally in the quotation marks area.
    What can I do to make this work and leave the cell blank when there is nothing to return?

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: remove #N/A from average

    Did you try? =IFERROR(VLOOKUP(A1,myRange,1,FALSE),"")

    I know you say you don't want to use IFERROR, but it answers the quote below

    The simple solution would be to have the vlookup not return the #N/A message at all but leave the field blank when there is nothing to return.
    HTH
    Regards, Jeff

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: remove #N/A from average

    Another option is to use Aggregate
    https://exceljet.net/excel-functions...egate-function

  4. #4
    Forum Contributor
    Join Date
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    534

    Re: remove #N/A from average

    I found a solution but at the same time created another problem. The formula that I used was this.
    Please Login or Register  to view this content.
    The problem was that I could not still average the percentages without an error. The error I was getting was #dev/o. I realized I was getting that since the percentages being returned were not numbers but rather text. I added a +0 to the end of all the vlookups and turned everything back to numbers. now I am getting #value! so I still can't average anything. Here is my workbook. What can I do now?
    Attached Files Attached Files

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: remove #N/A from average

    Try this:

    =IFERROR(VLOOKUP($A8,'Coaching data '!$A:$J,8,0),"")+0,"")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: remove #N/A from average

    Or change your existing formula to
    =IFNA(VLOOKUP($A$8,'Coaching data '!$A:$J,8,0)+0,"")

  7. #7
    Forum Contributor
    Join Date
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    534

    Re: remove #N/A from average

    that is not working. there is one to many close parenthesis. And adding an open parenthesis at the beginning does not help.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: remove #N/A from average

    Quote Originally Posted by chriswrcg View Post
    that is not working. there is one to many close parenthesis
    Sorry - this:

    =IFERROR(VLOOKUP($A8,'Coaching data '!$A:$J,8,0)+0,"")
    Last edited by AliGW; 03-16-2019 at 12:40 PM.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: remove #N/A from average

    Have you got it working now? If so, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Filter, Remove then average left overs
    By rmrjr22 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-28-2015, 01:24 PM
  2. Remove Lowest Number From Running Average Equation
    By AR_Tiger in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-18-2015, 03:32 PM
  3. Formula to remove text and then average a range
    By Chaba in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-26-2015, 12:05 PM
  4. [SOLVED] Remove DIV/0 in an AVERAGE function
    By dfowers in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-21-2015, 04:22 PM
  5. [SOLVED] How to remove letters and take the average of two numbers within a cell
    By adiaz755 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-20-2012, 01:22 PM
  6. Replies: 1
    Last Post: 10-17-2011, 02:07 AM
  7. [SOLVED] Need Assistance: Average/Remove Duplicates
    By DigitalGM in forum Excel General
    Replies: 3
    Last Post: 06-22-2005, 08:05 PM

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