Solved

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

Posted on 2006-11-27
7
211 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 81

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 81

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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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 81

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 81

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem: You created a new custom form in Outlook for your contacts (added fields, deleted fields, changed the layout of fields, whatever) and made it the default form for contacts. The good news is that all new contacts will utilize the new form. T…
Outlook Free & Paid Tools
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

831 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