+ Reply to Thread
Results 1 to 10 of 10

#div/0!

  1. #1
    Registered User
    Join Date
    05-09-2010
    Location
    Lisboa
    MS-Off Ver
    Excel 2013
    Posts
    33

    #div/0!

    Hi,

    How can i remove this error: #DIV/0!


    thanks

  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,701

    Re: #div/0!

    Don't divide by zero

    =IF(A2=0,0,B2/A2)

    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
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: #div/0!

    Not much to go on. What is the formula that is producing the error?

    TMS - My first thought was to hit the delete key!

  4. #4
    Registered User
    Join Date
    05-09-2010
    Location
    Lisboa
    MS-Off Ver
    Excel 2013
    Posts
    33

    Re: #div/0!

    thanks. its "=AVERAGE(B6:V6)" when it has empty values

  5. #5
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: #div/0!

    Use either of the below

    1) =iferror(average(B6:V6),0)
    2) =if(count(B6:V6)=0,0,average(B6:V6))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: #div/0!

    Cancel the IFERROR() suggestion - Excel 2003 doesn't recognize it.

  7. #7
    Registered User
    Join Date
    05-09-2010
    Location
    Lisboa
    MS-Off Ver
    Excel 2013
    Posts
    33

    Re: #div/0!

    but with a formula how do i do it? thanks

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: #div/0!

    Here's another way:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  9. #9
    Registered User
    Join Date
    05-09-2010
    Location
    Lisboa
    MS-Off Ver
    Excel 2013
    Posts
    33

    Re: #div/0!

    thanks its solved

  10. #10
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: #div/0!

    You're welcome!

+ 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