+ Reply to Thread
Results 1 to 12 of 12

How to ignore #N/A when getting an average

  1. #1
    Registered User
    Join Date
    07-23-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    63

    Unhappy How to ignore #N/A when getting an average

    Hi guys, I'm setting up a spreadsheet so that I can send it to my manager for inputting various data. I want to make one section be able to calculate an average of specific indicators for the month but ignore when one of those cells may have an #N/A. Here's my current formula, thank you!

    =AVERAGE(Data!C6,Data!C11,Data!C16,Data!C21,Data!C26,Data!C31,Data!C36,Data!C41,Data!C46,Data!C51,Data!C56,)

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

    Re: How to ignore #N/A when getting an average

    Is there anything 'common' in an adjacent column that indicates which rows need to be averaged, like the word Total or something?

    Can you attach a sample book?
    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Registered User
    Join Date
    07-23-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: How to ignore #N/A when getting an average

    see attachment
    Thank you
    Attached Files Attached Files
    Last edited by Muse83; 01-14-2016 at 04:46 PM.

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

    Re: How to ignore #N/A when getting an average

    Try this in the Overall Tab, C6 and filled right.

    =AVERAGEIFS(Data!C:C,Data!$B:$B,"Rate",Data!C:C,"<>#N/A")

  5. #5
    Registered User
    Join Date
    07-23-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: How to ignore #N/A when getting an average

    Sir that worked like a charm! Thank you!!

  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: How to ignore #N/A when getting an average

    Maybe also adding IFERROR with NA()

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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 Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: How to ignore #N/A when getting an average

    You're welcome.

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

    Re: How to ignore #N/A when getting an average

    I was just going to say you might be better off correcting the #N/A errors in the first place
    Then your original formula would work just fine.

    But I see that you put the #N/A errors there on purpose with
    =IFERROR(C4/C5,#N/A)

    I would assume that is to hide the #Div/0! errors when C5 is blank.

    But why hide 1 error by just creating a different error?

    Why not do this instead?
    =IFERROR(C4/C5,"")

    The cells will just appear blank when C5 is blank, and then your original average function will work just fine.

  9. #9
    Registered User
    Join Date
    07-23-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: How to ignore #N/A when getting an average

    That's how I originally had it but they want to see when a month simply doesn't have any data as opposed to there being 0% on the graphs I had set up per department (wasn't shown in example)

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

    Re: How to ignore #N/A when getting an average

    OK, then

    =IFERROR(C4/C5,"N/A")

    This is now just a TEXT string N/A, instead of an ERROR #N/A
    Your original average will still ignore it.

  11. #11
    Registered User
    Join Date
    07-23-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: How to ignore #N/A when getting an average

    Just tried and while it works fine on the data sheet it still comes up as 0% in the graph

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

    Re: How to ignore #N/A when getting an average

    OK, so the reason for the #N/A error is so that the graph will ignore it.

    Fair enough.

    I was just curious.

+ 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 ignore #DIV/0! error
    By blackstar in forum Excel General
    Replies: 6
    Last Post: 10-17-2016, 05:24 PM
  2. Replies: 15
    Last Post: 10-20-2015, 11:19 AM
  3. [SOLVED] Ignore #N/A in sumif and average if
    By justinr in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-14-2015, 04:08 PM
  4. Formula for average & ignore zero
    By killerthun in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-10-2014, 01:33 PM
  5. Replies: 14
    Last Post: 06-14-2013, 09:00 PM
  6. Average but ignore if value = 0
    By Tom_J_W in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-17-2013, 11:35 PM
  7. Ignore values over an average.
    By samuelhorton in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-22-2008, 02:59 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