#1   Report Post  
jeffc4442
 
Posts: n/a
Default Hide #DIV/0!

I've reviewed some of the answers to this issue in this forum, but they
confuse me. I am a complete rookie with excel. From the help file, i was
instructed to select the cell, go to format/cell/protection, and click hide
cell, etc. I protected the sheet, but the formula was still visible.

First, why doesn't this work?
Second, how do i hide #DIV/0! where the cell formula is =SUM(C13/C4).

thanks.
  #2   Report Post  
Chip Pearson
 
Posts: n/a
Default

I don't know why you can still see the formula. If you protect
the sheet, cells with "hidden" formulas will not display the
formula. It works fine for me.

There is no way through formatting to hide error values. Instead,
you should write your formula in such as way that the error will
not occur in the first place. E.g.,

=IF(C4=0,"",C13/C4)

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"jeffc4442" wrote in
message
...
I've reviewed some of the answers to this issue in this forum,
but they
confuse me. I am a complete rookie with excel. From the help
file, i was
instructed to select the cell, go to format/cell/protection,
and click hide
cell, etc. I protected the sheet, but the formula was still
visible.

First, why doesn't this work?
Second, how do i hide #DIV/0! where the cell formula is
=SUM(C13/C4).

thanks.



  #3   Report Post  
MaggieMagill
 
Posts: n/a
Default

"Chip Pearson" wrote in
:

I don't know why you can still see the formula. If you protect
the sheet, cells with "hidden" formulas will not display the
formula. It works fine for me.

There is no way through formatting to hide error values. Instead,
you should write your formula in such as way that the error will
not occur in the first place. E.g.,

=IF(C4=0,"",C13/C4)


The method I use when SUMming two cells when one or both might not have a
value entered into it yet is:

=IF(C13="","",C13/C4) or
=IF(C4="","",C13/C4)

only because a zero in a cell might be the basis for a logical test in
another formula I have somewhere in the sheet
  #4   Report Post  
Harlan Grove
 
Posts: n/a
Default

"MaggieMagill" wrote...
....
The method I use when SUMming two cells when one or both might not
have a value entered into it yet is:

=IF(C13="","",C13/C4) or

....

The test won't catch C4=0, so if C13 isn't "" but C4 is blank or zero, this
formula will happily return #DIV/0! It will prevent #VALUE! errors when C13
is "" rather than blank, but that's not what the OP was trying to avoid.


  #5   Report Post  
Barb Reinhardt
 
Posts: n/a
Default

If you really want to hide #DIV/0, you can do it using Conditional
formatting. It'll still be there, but you won't be able to see it.

Select the cell/s of interest.
FORMAT - CONDITIONAL FORMATTING
Formula is (select the cell that is the divisor) and type =0. (it should
look like this = =$A$2=0)
Then format the font color for the text to WHITE (or whatever the background
color is).

If you select multiple rows and/or columns, you may need to remove some or
all of the $ from the formula to get it to work.




"jeffc4442" wrote in message
...
I've reviewed some of the answers to this issue in this forum, but they
confuse me. I am a complete rookie with excel. From the help file, i was
instructed to select the cell, go to format/cell/protection, and click
hide
cell, etc. I protected the sheet, but the formula was still visible.

First, why doesn't this work?
Second, how do i hide #DIV/0! where the cell formula is =SUM(C13/C4).

thanks.





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
replace "#DIV/0!" error with blanks Mark B Excel Worksheet Functions 0 June 22nd 05 10:19 AM
How Do I Hide A Row (if a condition is true) using a Macro ? Anthony Fantone Excel Worksheet Functions 1 June 16th 05 04:54 PM
Hide AutoShapes On Excel Worksheet Dave Y Excel Worksheet Functions 5 June 12th 05 04:26 AM
Conditional Hide function for Excel mr.woofies Excel Worksheet Functions 1 October 28th 04 03:04 PM
How do I hide a formula message? PHM Excel Worksheet Functions 1 October 27th 04 09:44 PM


All times are GMT +1. The time now is 03:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"