ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   slight variation when working with separate worksheets (https://www.excelbanter.com/excel-discussion-misc-queries/26792-slight-variation-when-working-separate-worksheets.html)

Mr. Snrub

slight variation when working with separate worksheets
 
Please tell me why the following two scenarios show different results:

Scenario One:
When working with just one worksheet:
In cell A1 I have a completely blank cell with no value. In cell A2, I type
"=A1" (without quotes). The result shows in A2, naturally, another blank
cell.

Scenario Two:
When I have two worksheets Wrksht1 and Wrksht2:
In Wrksht1 in cell A1 I have a completely blank cell. Now I go over to
Wrksht2 to cell A1 and type "=Wrksht1!A1" (without quotes). It shows the
value 0.

Why is the result in A2 of Wrksht2 not showing a completely blank cell like
in scenario one? Why does it change to a zero?

Mr. Snrub

OK I now understand that this problem has nothing to do with different
worksheets at all. I have now gotten the two different values in the same
worksheet. It appears to me to be a formatting error.

Dave Peterson

You could use a formula like:

=if(a1="","",a1)
or
=if(sheet1!a1="","",sheet1!a1)

And not have to worry about formatting.

Mr. Snrub wrote:

OK I now understand that this problem has nothing to do with different
worksheets at all. I have now gotten the two different values in the same
worksheet. It appears to me to be a formatting error.


--

Dave Peterson


All times are GMT +1. The time now is 09:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com