#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Excel Formulas

While printing a excel sheet I do not want cells containing formulas printing
zeroes or any other characters like error values, it should print just empty.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,290
Default Excel Formulas


Change your formulas so they return "" instead of zeros or error values.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)




"Aravind"
wrote in message
While printing a excel sheet I do not want cells containing formulas printing
zeroes or any other characters like error values, it should print just empty.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default Excel Formulas

Jim Cone" wrote in message
...
Change your formulas so they return "" instead of zeros or error values


Wasn't the OP asking how you it is that you do that?

To the OP:

If =G2+H2 is returning 0 when both cells are empty then use:

=IF(AND(G2="",H2=""),"",G2+H2)

If it could return an error value then you could use:

=IF(OR(ISERROR(G2+H2),AND(G2="",H2="")),"",G2+H2)

However, if it was returning that error because one of the cells had text in
it, the the second formula would hide that fact. It would be much better to
deal with the source of the error rather than simply hide it.
--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Excel Formulas

"Sandy Mann" wrote...
....
=IF(OR(ISERROR(G2+H2),AND(G2="",H2="")),"",G2+H 2)


Or use one test.

=IF(COUNT(1/(G2+H2)),G2+H2,"")

However, if it was returning that error because one of the cells had text in
it, the the second formula would hide that fact. It would be much better to
deal with the source of the error rather than simply hide it.


Very true.
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Excel Formulas

Thanks Jim for your immediate response. But I found another way.
Go to ToolsOptionsViewZero Values and untick the box.

But I don't know if it works when the cell shows error values

"Jim Cone" wrote:


Change your formulas so they return "" instead of zeros or error values.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)




"Aravind"
wrote in message
While printing a excel sheet I do not want cells containing formulas printing
zeroes or any other characters like error values, it should print just empty.




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
CELLS NOT CALC FORMULAS - VALUES STAY SME FORMULAS CORRECT?? HELP Sherberg Excel Worksheet Functions 4 September 11th 07 01:34 AM
Formulas not evaluated, Formulas treated as strings Bob Sullentrup Excel Discussion (Misc queries) 0 November 27th 06 08:01 PM
excel formulas MatileM Excel Worksheet Functions 2 September 21st 06 08:48 PM
Excel formulas bpeltzer Excel Worksheet Functions 0 February 6th 06 09:28 PM
Excel formulas JN Excel Worksheet Functions 7 April 8th 05 04:15 PM


All times are GMT +1. The time now is 03:58 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"