+ Reply to Thread
Results 1 to 5 of 5

divide by 0

Hybrid View

  1. #1
    bp
    Guest

    divide by 0

    hello,
    i have a spreadsheet with the same formula down the rows.
    some of the rows have data. some are there for future use.
    for the empty ones now there is 1 cell that gets #DIV/0!. because of a zero
    value.
    is there a way to make this show 0 or blank.
    i do not want to change the formulas. because if i forget then when i need
    to use the row, then data could be messed up.

    thanks



  2. #2
    Bob Phillips
    Guest

    Re: divide by 0

    Use conditional formatting with a formula of =ISERROR(A1) and set the font
    colour to white.

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "bp" <x@y.com> wrote in message
    news:u7yKaiOXGHA.4484@TK2MSFTNGP02.phx.gbl...
    > hello,
    > i have a spreadsheet with the same formula down the rows.
    > some of the rows have data. some are there for future use.
    > for the empty ones now there is 1 cell that gets #DIV/0!. because of a

    zero
    > value.
    > is there a way to make this show 0 or blank.
    > i do not want to change the formulas. because if i forget then when i

    need
    > to use the row, then data could be messed up.
    >
    > thanks
    >
    >




  3. #3
    Mark Lincoln
    Guest

    Re: divide by 0

    Let's say your formula is something like:

    =B2/C2

    If C2 is zero, you'll get an error. Therefore, use an IF to test for
    that:

    =IF(C2=0,"",B2/C2)

    This calculates B2/C2 only if C2 doesn't equal zero. (If you put text
    in there you'll get a #VALUE! error, but that's a different subject.)


  4. #4
    dodong
    Guest

    Re: divide by 0

    Or you can use this

    =If(iserror(B2/C2),"",B2/C2)

    Dodong


  5. #5
    bp
    Guest

    thanks all!


    "bp" <x@y.com> wrote in message
    news:u7yKaiOXGHA.4484@TK2MSFTNGP02.phx.gbl...
    > hello,
    > i have a spreadsheet with the same formula down the rows.
    > some of the rows have data. some are there for future use.
    > for the empty ones now there is 1 cell that gets #DIV/0!. because of a
    > zero value.
    > is there a way to make this show 0 or blank.
    > i do not want to change the formulas. because if i forget then when i
    > need to use the row, then data could be messed up.
    >
    > thanks
    >
    >




+ 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