+ Reply to Thread
Results 1 to 5 of 5

Replacing Div/0 result

  1. #1
    Registered User
    Join Date
    04-13-2012
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    3

    Replacing Div/0 result

    Afternoon,

    New user with a problem here.

    I'm responsible for a spreadsheet with has the following formula

    =IF(COUNTA('01:31'!B11)=0,"",AVERAGE('01:31'!B11))

    We have several entries at that bringing back a Div/0 result which I would like to replace with a simple 0. The same cell has the maximum number of Conditional formats.

    Can anyone point me in the right direction to make this work as the Div/0 result is impacting other results.

    Any help would be appreciated.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Replacing Div/0 result

    If you're using Excel 2003 then try this:

    =IF(COUNTA('01:31'!B11)=0,"",IF(ISERROR(AVERAGE('01:31'!B11)),0,AVERAGE('01:31'!B11))

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Replacing Div/0 result

    Try:

    =IF(COUNT('01:31'!B11)=0,0,AVERAGE('01:31'!B11))

  4. #4
    Forum Contributor
    Join Date
    09-05-2011
    Location
    Essex, England
    MS-Off Ver
    Excel 2003 Excel 2007
    Posts
    383

    Re: Replacing Div/0 result


    hmm.. please correct me if i'm wrong but wouldn't averaging cell b11 across multiple pages produce incorrect results if a DiV/0 error is changed to 0..

    wound't the below provide a more accurate result?

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-13-2012
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Replacing Div/0 result

    Zbor's result has done the trick perfectly. Due to the nature of the result, it's worked a treat

    Thank you guys

+ 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