Referencing a Range of Cells w/out all those zeros

drpeppagrl

New Member
Joined
Oct 10, 2002
Messages
4
I need to reference an entire sheet(sheet1) on another sheet (sheet2) within the same worksheet, but I don't want all of the blank cells to be referenced with zeros, because then I will need to go through an delete all the zeros. Is there a formula to just have the blank cells referenced as blank cells, instead of annoying zeros??

Thanks a bunch!!
This message was edited by drpeppagrl on 2002-10-11 18:44
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Do you mean you've linked to a worksheet from another worksheet or workbook and you're returning zero's? If so, wrap an IF statement around the formula eg -

=IF([Book1]Sheet1!A1,[Book1]Sheet1!A1,"")

Where Book1 is the name of your linked workbook, Sheet1 is the worksheet. You can also supress zero values via the Tool-Options-View tab (uncheck zero values) but it might interfere with the rest of your workbook.
 
Upvote 0
On 2002-10-11 18:22, drpeppagrl wrote:
I need to reference an entire sheet(sheet1) on another sheet (sheet2) within the same worksheet, but I don't want all of the blank cells to be referenced with zeros, because then I will need to go through an delete all the zeros. Is there a formula to just have the blank cells referenced as blank cells, instead of annoying zeros??

Thanks a bunch!!
This message was edited by drpeppagrl on 2002-10-11 18:44

Hi drpeppagrl:

Welcome to the Board!

Supplementing suggestion by Mudface ...
Is it the display of 0s that you don't like, or you must replace 0s with blanks --

If it is the display of 0's that you don't want, you have some simple ways of suppressing the display of 0s

1. You can go to TOOLS|OPTIONS|VIEW -- and uncheck ZERO VALUES
this will suppress display of all 0 values
2. If you want to suppress display of 0 values selectively, you can use CUSTOM NUMBER FORMAT ...
[=0]""

Please post back if it works for you ... otherwise explain a little further and let us take it from there.

Regards!

Yogi
 
Upvote 0
Just a minor tweak to mudface's
=IF(LEN(Sheet1!A1),Sheet1!A1,"")

will bring over a zero if a zero exists on sheet 1.
 
Upvote 0
Browsing through objects, found this:

ActiveWindow.DisplayZeros = True

Is it useful in this situation? Is it ever useful?

Thanks for the feedback, this got me thinking.
Steve
 
Upvote 0
Hi Steve:

This would be the procedural way of turning the TOOLS|OPTIONS|VIEW ... Zero_Values --

Procedurally, TRUE would select the option (so 0 values would be displayed); False would deselect the option (so 0 values will not be displayed)

The actual values are not changed -- only the viewing of zero values is turned ON or OFF

Regards!

Yogi
 
Upvote 0
Thanks Yogi, I appreciate your response.

(Now, if everyone else would thank the Wizards when they respond........)
 
Upvote 0

Forum statistics

Threads
1,225,071
Messages
6,182,685
Members
453,132
Latest member
nsnodgrass73

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top