+ Reply to Thread
Results 1 to 4 of 4

Using Conditional Formatting to Hide Error

  1. #1
    Forum Contributor
    Join Date
    09-19-2004
    Location
    Canada
    Posts
    408

    Question Using Conditional Formatting to Hide Error

    Can I hide the #DIV/0! ERROR in cells F8, H8, I8 by using conditional formatting (font colour) in only these cells? If so, how?

    Thanks,
    Gos-C

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    In Conditional Formatting... for this cell, set Formula Is: to

    =ISERROR($F$8)

    Set Format to Font color of White
    --------------------------
    Another option is to test for the error with an IF statement and return an empty string "" if there is an error, e.g.:

    =IF(ISERROR(F7/F6),"",F7/F6

    assuming you are dividing F7 by F6, adjust as needed.

    This avoids the need for conditional formatting

    HTH

    Bruce
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    Forum Contributor
    Join Date
    09-19-2004
    Location
    Canada
    Posts
    408
    Hi Swatsp0p,

    Thanks, I highlighted the range and use relative cell reference -- it works. I did not want to used "" as the cells are included in Sum formulas.

    Gos-C

  4. #4
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    If you SUM a range containing a #DIV/0! error, your sum will result in #DIV/0!

    If you use my formula, the cell will be treated as a zero and will not affect your SUM range (unless, of course, you want the SUM to fail if you have a #DIV/0! error)

    HTH

    Bruce

+ 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