+ Reply to Thread
Results 1 to 3 of 3

#DIV/0! Error Fix

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    Long Beach
    MS-Off Ver
    Excel 2007
    Posts
    14

    #DIV/0! Error Fix

    I am creating a "Summary" sheet using numbers from a separate "Detailed" sheet in the same workbook. Column B is the person's name and column G is the number of days. On the "Summary" sheet I want to calculate the average number of days for each name in column B using the formula below. Unfortunately, when the number of days is zero I get a #DIV/0! error on my "Summary" sheet and I would like to just make it zero.


    =AVERAGEIF(Detailed!$B$5:$B$42, "JOE SMITH", Detailed!$G$5:$G$42)

    The second issue I have is trying to average the averages on the "Summary" sheet while ignoring the #DIV/0! error.

    I tried looking up how to use the IFERROR function with the above formula, but I received an error notice saying too many arguments.
    Last edited by excelheaven; 09-05-2012 at 03:51 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: #DIV/0! Error Fix

    Try:

    =IFERROR(AVERAGEIF(Detailed!$B$5:$B$42, "JOE SMITH", Detailed!$G$5:$G$42),0)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    08-30-2012
    Location
    Long Beach
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: #DIV/0! Error Fix

    I knew I was on the right path with IFERROR, just couldn't see how simple that was! Thanks

+ 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