• Status: Solved
• Priority: Medium
• Security: Public
• Views: 222

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

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
Chris24
• 4
• 3
1 Solution

Commented:
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,

0

Author Commented:
THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU!!!!
0

Commented:
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!
0

Author Commented:
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

Commented:
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.
0

Author Commented:
Well don't I feel stupid. I will change it to the second one then. Thanks,
Chris
0

Commented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

## Featured Post

• 4
• 3
Tackle projects and never again get stuck behind a technical roadblock.