+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Avoid the #div/0 error

  1. #1
    Registered User
    Join Date
    12-21-2008
    Location
    Dupont PA
    Posts
    99

    Avoid the #div/0 error

    can a cell not show this if a 0 is in a cell being calulated?

    example cells P23 L23
    Attached Files Attached Files
    Last edited by berk21; 01-24-2009 at 06:32 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try
    =IFERROR(O10/L10,0)
    to work with other versions of excel try
    =IF(ISERROR(O10/L10),0,O10/L10)
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    12-21-2008
    Location
    Dupont PA
    Posts
    99
    Thank you.
    If I have another question not referring to the #DIV/0, do I create another thread with this one resolved?

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Yes please

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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