Solved

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

Posted on 2006-11-27
7
212 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

My experience with Windows 10 over a one year period and suggestions for smooth operation
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This video shows and describes the main difference between both orientations in Microsoft Word. Viewers will understand when to use each orientation and how to get the most out of them.
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…

733 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