Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Formulae returning blanks

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Formulae returning blanks

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Formulae returning blanks

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Formulae returning blanks

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Formulae returning blanks

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Formulae returning blanks

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sumproduct copying blanks or how to insert zero into blanks asg2307 Excel Worksheet Functions 4 April 4th 07 07:26 PM
copy range of cells with blanks then paste without blanks justaguyfromky Excel Worksheet Functions 1 September 3rd 06 07:56 PM
formula returning incorrect blanks [email protected] Excel Worksheet Functions 6 March 9th 06 07:17 PM
formula returning incorrect blanks [email protected] Excel Discussion (Misc queries) 7 March 9th 06 07:15 PM
Paste Special Skip Blanks not skipping blanks, but overwriting... gsrosin Excel Discussion (Misc queries) 0 February 22nd 05 03:33 AM


All times are GMT +1. The time now is 03:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"