If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Referencing an empty cell in another worksheet elicits "0"

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-04-09, 16:04
pootle flump pootle flump is offline
King of Understatement
 
Join Date: Feb 2004
Location: One Flump in One Place
Posts: 14,905
Referencing an empty cell in another worksheet elicits "0"

Hi

Not a big Excel user. I reference another cell:
Code:
=Sheet1!A1
If the cell is populated, I get the value. If the cell is not populated I get "0". Any way to not get the "0" (ideally without using IF())?

Chars
__________________
Testimonial:
Quote:
pootle flump
ur codings are working excelent.
Reply With Quote
  #2 (permalink)  
Old 05-04-09, 23:42
burkular burkular is offline
Registered User
 
Join Date: Nov 2004
Location: Canada
Posts: 58
you could conditional format the cell, if the value is equal to zero then format the cell so the text is not shown.

Under the options tab, zero values (unclick, but this does not help if you have a true 0 value you want to represent)

And if of course which you don't want to use.

I don't know of any other way than these 3 options. (unless of course you have vba script in the background that does it.)
Or maybe I am forgetting the basics here?
Reply With Quote
  #3 (permalink)  
Old 05-05-09, 05:06
pootle flump pootle flump is offline
King of Understatement
 
Join Date: Feb 2004
Location: One Flump in One Place
Posts: 14,905
Thanks for the ideas.
It's all a bit "fudgy" isn't it? I'm always frustrated by Excel - it never quite seems to allow you to do things the easy and obvious way. I was (and still am) hoping that I am missing something basic, some option that won't screw up other zero values (I do have genuine ones too, as you suspected).

Thanks again
__________________
Testimonial:
Quote:
pootle flump
ur codings are working excelent.
Reply With Quote
  #4 (permalink)  
Old 05-08-09, 19:55
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
It can certainly seem that way sometimes.


Right click on the cell that contains the formula | format cells.

On the number tab choose custom category and type this into the type textbox:

0;-0;;@

Hope that helps...
Reply With Quote
  #5 (permalink)  
Old 05-08-09, 22:42
burkular burkular is offline
Registered User
 
Join Date: Nov 2004
Location: Canada
Posts: 58
how slick is that, thanks colin L
Reply With Quote
  #6 (permalink)  
Old 05-09-09, 05:14
pootle flump pootle flump is offline
King of Understatement
 
Join Date: Feb 2004
Location: One Flump in One Place
Posts: 14,905
Thank you Colin - I'll give it a go
__________________
Testimonial:
Quote:
pootle flump
ur codings are working excelent.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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