Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
I wonder if anyone can help me with a seemingly straightforward, but tricky, Excel "feature". It appears that Excel treats differently a blank cell and a cell containing a formula that returns blank. E.g., try the following simple case: A1: leave blank B1: enter formula: ="" A2: enter formula: =A1+1 B2: enter formula: =B1+1 Result of A2 = 1 Result of B2 = #VALUE! When trying to sum such cells, the blank cell is happily treated as a zero, whereas the one with a formula in it causes an error. (A bit more detail - I am pulling numbers from one sheet to another. But when a number is missing on the first sheet I want a blank to be inserted in the second, rather than a zero. But this messes up formulae on the pulled through values) Any ideas how to get round this? Thanks, Matthew |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Use
=SUM(1,B1) or =N(B1)+1 -- Regards, Peo Sjoblom wrote in message ups.com... Hi, I wonder if anyone can help me with a seemingly straightforward, but tricky, Excel "feature". It appears that Excel treats differently a blank cell and a cell containing a formula that returns blank. E.g., try the following simple case: A1: leave blank B1: enter formula: ="" A2: enter formula: =A1+1 B2: enter formula: =B1+1 Result of A2 = 1 Result of B2 = #VALUE! When trying to sum such cells, the blank cell is happily treated as a zero, whereas the one with a formula in it causes an error. (A bit more detail - I am pulling numbers from one sheet to another. But when a number is missing on the first sheet I want a blank to be inserted in the second, rather than a zero. But this messes up formulae on the pulled through values) Any ideas how to get round this? Thanks, Matthew |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On 18 May, 18:21, "Peo Sjoblom" wrote:
Use =SUM(1,B1) or =N(B1)+1 Thanks. I'm not entirely sure it helps though - I only posted the simplest case I could think of that demonstrates the problem, rather than what I'm actually doing. I can come up with other workarounds, but what I really want is a way for a formula to enter a real blank into the cell, rather than an empty string. Matthew |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
No, it is not possible to get a formula to return an empty string in Excl.
-- Regards, Peo Sjoblom wrote in message oups.com... On 18 May, 18:21, "Peo Sjoblom" wrote: Use =SUM(1,B1) or =N(B1)+1 Thanks. I'm not entirely sure it helps though - I only posted the simplest case I could think of that demonstrates the problem, rather than what I'm actually doing. I can come up with other workarounds, but what I really want is a way for a formula to enter a real blank into the cell, rather than an empty string. Matthew |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
A formula cannot enter a real blank in the cell.
First of all, the cell contains a formula so is not blank. Secondly, "" is not null. A truly blank cell is one which contains nothing. Gord Dibben MS Excel MVP On 18 May 2007 11:14:01 -0700, wrote: On 18 May, 18:21, "Peo Sjoblom" wrote: Use =SUM(1,B1) or =N(B1)+1 Thanks. I'm not entirely sure it helps though - I only posted the simplest case I could think of that demonstrates the problem, rather than what I'm actually doing. I can come up with other workarounds, but what I really want is a way for a formula to enter a real blank into the cell, rather than an empty string. Matthew |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Exactly WHY do you NEED (as opposed to WANT) a truly blank cell?
There are usually a number of ways to work around various scenarios where zero length strings ( "" ) are returned. -- Regards, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- wrote in message oups.com... On 18 May, 18:21, "Peo Sjoblom" wrote: Use =SUM(1,B1) or =N(B1)+1 Thanks. I'm not entirely sure it helps though - I only posted the simplest case I could think of that demonstrates the problem, rather than what I'm actually doing. I can come up with other workarounds, but what I really want is a way for a formula to enter a real blank into the cell, rather than an empty string. Matthew |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sumproduct copying blanks or how to insert zero into blanks | Excel Worksheet Functions | |||
copy range of cells with blanks then paste without blanks | Excel Worksheet Functions | |||
formula returning incorrect blanks | Excel Worksheet Functions | |||
formula returning incorrect blanks | Excel Discussion (Misc queries) | |||
Paste Special Skip Blanks not skipping blanks, but overwriting... | Excel Discussion (Misc queries) |