+ Reply to Thread
Results 1 to 9 of 9

Remove DIV/0 in an AVERAGE function

  1. #1
    Registered User
    Join Date
    01-21-2015
    Location
    Walla Walla, WA
    MS-Off Ver
    2010
    Posts
    4

    Remove DIV/0 in an AVERAGE function

    I am trying to get a blank cell where I am averaging a range of cells instead of the DIV/O error. There are blanks in all of the cells right now, which is causing the error. I have tried using the IF function, but it doesn't seem to work:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I have also used
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Both still return #DIV/0!. Is there a way to just show a blank cell until I start adding data into the spreadsheet?
    Last edited by dfowers; 01-21-2015 at 04:20 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,372

    Re: Remove DIV/0 in an AVERAGE function

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    01-16-2015
    Location
    Houston, TX
    MS-Off Ver
    2010
    Posts
    16

    Re: Remove DIV/0 in an AVERAGE function

    This should work:

    =IFERROR(AVERAGE(D2:O2),"")

  4. #4
    Registered User
    Join Date
    01-21-2015
    Location
    Walla Walla, WA
    MS-Off Ver
    2010
    Posts
    4

    Re: Remove DIV/0 in an AVERAGE function

    TMS, I get a message stating there is an error in the formula, but it doesn't specify what it is.

    Never mind -- I just needed to change the 02 to an O2. Thanks so much to you and Camalone319.
    Last edited by dfowers; 01-21-2015 at 03:51 PM. Reason: Update

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,372

    Re: Remove DIV/0 in an AVERAGE function

    I don't get any error message.

    What character is highlighted when you click OK?

    Maybe you need to change the comma to a semi-colon.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,372

    Re: Remove DIV/0 in an AVERAGE function

    Interesting that you have two identical solutions offered.

    Maybe you should post a sample workbook.

    Regards, TMS

  7. #7
    Registered User
    Join Date
    01-21-2015
    Location
    Walla Walla, WA
    MS-Off Ver
    2010
    Posts
    4

    Re: Remove DIV/0 in an AVERAGE function

    Sorry about that - I copied your reply, but it appears that you used a zero instead of an O in my formula. Once I corrected that, it worked perfectly!

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,372

    Re: Remove DIV/0 in an AVERAGE function

    Mmmm. I copied one of your formulae from your original post and amended it ...

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Good to use the formula tags ... you can see things more clearly.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  9. #9
    Registered User
    Join Date
    01-21-2015
    Location
    Walla Walla, WA
    MS-Off Ver
    2010
    Posts
    4

    Red face Re: Remove DIV/0 in an AVERAGE function

    Thanks, TMS. I learned a lot today. This was my first visit and post to the Forum and it's been a long time since I used Excel formulae, so I really appreciate the help

+ 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 Function-caclulate the average time spent
    By darryl in forum Excel General
    Replies: 1
    Last Post: 06-25-2010, 07:36 AM
  2. [SOLVED] Error Handling #N/A with AVERAGE Function - Average of values in Row
    By Don Guillett in forum Excel Formulas & Functions
    Replies: 26
    Last Post: 09-06-2005, 11:05 AM
  3. [SOLVED] Error Handling #N/A with AVERAGE Function - Average of values in Row
    By Don Guillett in forum Excel Formulas & Functions
    Replies: 26
    Last Post: 09-06-2005, 07:05 AM
  4. Error Handling #N/A with AVERAGE Function - Average of values in Row
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  5. Error Handling #N/A with AVERAGE Function - Average of values in Row
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10: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