+ Reply to Thread
Results 1 to 2 of 2

Averageifs returns #DIV/0! - replace with 0?

  1. #1
    Registered User
    Join Date
    12-13-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    2

    Averageifs returns #DIV/0! - replace with 0?

    Hi all..

    Just registered and 1st post so apologies if this has been resolved in some hidden thread somewhere..!

    I've data that will be pulled in from another source and now excell help = #DIV0.jpgI've created a separate table that gives me the averageif (=AVERAGEIF('Data Look Up Table'!$A$6:A37,"Andover",'Data Look Up Table'!B$6:B37) for each centre, however as I need to list all centre's some have no data therefore returns #DIV/0.

    So will return the average of all figures relating to Andover in column B that matches column A in the other sheet.

    A) can I only show rows that return a figure

    B) or can I 0 the cells that return the error as I would like to average these totals at the bottom of column B

    Many thanks..

    Chris

  2. #2
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Averageifs returns #DIV/0! - replace with 0?

    You can wrap any formula in an IFERROR test to control error results.

    =A1/B1


    ...would become:

    =IFERROR(A1/B1, 0)



    Apply that method to your formulas to control the DIV/0 errors.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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