+ Reply to Thread
Results 1 to 5 of 5

Average of cells matching date criteria ignoring DIV/0

  1. #1
    Registered User
    Join Date
    01-25-2011
    Location
    New Zealand
    MS-Off Ver
    Excel 2002
    Posts
    3

    Average of cells matching date criteria ignoring DIV/0

    Hi there,

    I'm working on a dashboard which shows the MTD productivity of staff. Currently, one sheet contains dates and the daily productivity percentage across different aspects of their role. Some percentages return #DIV/0 as the person didnt work in that area that day.

    The formula im using at the moment is:

    Please Login or Register  to view this content.
    This sums the percentages matching the current month (Dashboard!K1) and then divides by the number of percentages, excluding blanks.

    Trouble is, there are no blanks... G4:G13 is either a percentage or #DIV/0 error.

    So I need to rewrite the formula to exclude the #DIV/0 errors.

    Can anyone assist with this?

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

    Re: Average of cells matching date criteria ignoring DIV/0

    Why not just try to fix the #DIV/0?
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    01-25-2011
    Location
    New Zealand
    MS-Off Ver
    Excel 2002
    Posts
    3

    Re: Average of cells matching date criteria ignoring DIV/0

    Quote Originally Posted by jeffreybrown View Post
    Why not just try to fix the #DIV/0?

    Only thing I could do is amend the formula that calculates the percentages so that if it equals an error to simply display a blank cell I guess? Any idea how I can do that? I should probably post seperately...

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

    Re: Average of cells matching date criteria ignoring DIV/0

    Not sure what your formula looks like, but here's an example.

    A1 and B1 are the two caluculated fields and the resuts in C1.

    I would use =IF(N(B1),A1/B1,"")

    If B1 is blank then the result in C1 is nothing ("")

    You check the divisor

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Average of cells matching date criteria ignoring DIV/0

    Assuming XL2002 and existing data - you could perhaps revert to an Array

    Please Login or Register  to view this content.
    The above would return 0 rather than #DIV/0!

+ 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