Solved

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

Posted on 2006-11-27
7
209 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Office 2012 Compatibility 3 55
trailing spaces all columns 4 81
Consumer laptop recommendation 6 67
How do i remove text in between commas in Excel? 14 19
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…
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

863 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

20 Experts available now in Live!

Get 1:1 Help Now