Solved

=Cell("contents",A1) returns a 0 if the cell is empty. Need to return nothing

Posted on 2006-11-27
7
208 Views
Last Modified: 2006-11-27
In my spreadsheet in D42, I have =CELL("contents",'Training Worksheet'!D10) but if 'Training Worksheet'!D10 is empty, D42 displays a 0. How can I return nothing?? Extremely urgent and need a fast turn around if possible.

As always, I thank you in advance!
0
Comment
Question by:Chris24
  • 4
  • 3
7 Comments
 
LVL 80

Accepted Solution

by:
byundt earned 500 total points
ID: 18024458
Hi Chris24,
Return an empty string with a formula like either of:
=IF('Training Worksheet'!D10="","",CELL("contents",'Training Worksheet'!D10))
=IF('Training Worksheet'!D10="","",'Training Worksheet'!D10)

Hoping to be helpful,

Brad
0
 

Author Comment

by:Chris24
ID: 18024468
THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU!!!!
0
 
LVL 80

Expert Comment

by:byundt
ID: 18024540
Chris,
Just out of curiosity, which formula did you use? And if you used the one with the CELL function, could you please explain why? It's a very unusual construction.

Thanks for the grade!
Brad
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:Chris24
ID: 18024670
I used the first one. The CELL function is what I am familiar with. I am far from being an Excel wiz. Would you recommend something different? I just need to copy contents from one cell to another. I was always told that Cell("contents",) is the best way to do so.

Thanks,
Chris
0
 
LVL 80

Expert Comment

by:byundt
ID: 18024847
Chris,
Practically the entire rest of the world does the same thing by setting one cell equal to another (such as by using the other formula).

The CELL method appears to capture only the first nine digits of a number. Setting one cell equal to another gets all fifteen digits.
Brad
0
 

Author Comment

by:Chris24
ID: 18025051
Well don't I feel stupid. I will change it to the second one then. Thanks,
Chris
0
 
LVL 80

Expert Comment

by:byundt
ID: 18025116
Chris,
Supposedly, the CELL function is part of Excel for "compatibility" reasons. So I suppose from that remark in the on-line Help that using the CELL function makes more sense in Lotus 1-2-3.

Interestingly, the CELL function ignores any formatting that might have been done to the target cell. If you point it to a cell containing a date, you'll get a value like 37805 instead of July 3, 2003. When you set one cell equal to another, Excel tries to be helpful by using the same format.
Brad
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: dandraka
There are several quick shortcuts that can make your life easier in Microsoft Programs.  These simple tips and tricks will your work more productive and you faster at completing your tasks! MS Word (1) Creating Re-usable Scraps You can create s…
In case Office 2010 has not been deployed in your environment, this article may be quite useful. In our office, we wanted a way to deploy Microsoft Office Professional Plus 2010 through an automated batch file via logon script. This article is docum…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now