Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
steve alcock
 
Posts: n/a
Default why is my blank cell not a blank cell

Hi team,

this is probably basic but :

when I have a formula in a cell it is then deemed as not blank for when I am
making refereneces to it or it's range, #n/a - #value etc are returned when i
want it to be treated as blank.

anyone throw some light on this please

thanks

steve

  #2   Report Post  
xlbo
 
Posts: n/a
Default

Well - you kinda answered your own question. If it's got a formula in it, how
can it possibly be blank ??

This boils down to how excel views cell contents. You can have 2 types of
cell content - a formula or a value (whether that value be numeric or text).
Whatever type of content, it is still content. The TEXT of the cell may be an
empty string ( "" ) but there is still a formula below it that means the cell
is not empty. This is the crux - the cell is not EMPTY but its text value IS
BLANK. You cannot, however, test for BLANK cells using any of the IS...
statements - ony way to test is to test for a zero length string eg
=if(A1="","Cell has zero length string","Cell has visible text")

OR

=if(LEN(A1)=0,"Cell has zero length string","Cell has visible text")
--
Rgds, Geoff

"A crash reduces
Your expensive computer
To a simple stone"


"steve alcock" wrote:

Hi team,

this is probably basic but :

when I have a formula in a cell it is then deemed as not blank for when I am
making refereneces to it or it's range, #n/a - #value etc are returned when i
want it to be treated as blank.

anyone throw some light on this please

thanks

steve

  #3   Report Post  
steve alcock
 
Posts: n/a
Default

Hi Geoff,

many thanks for the answer, I am sure not only me has this problem and your
answer certainly explains the difference and how to get round the blank and
not blank senario.

regrads

steve


"xlbo" wrote:

Well - you kinda answered your own question. If it's got a formula in it, how
can it possibly be blank ??

This boils down to how excel views cell contents. You can have 2 types of
cell content - a formula or a value (whether that value be numeric or text).
Whatever type of content, it is still content. The TEXT of the cell may be an
empty string ( "" ) but there is still a formula below it that means the cell
is not empty. This is the crux - the cell is not EMPTY but its text value IS
BLANK. You cannot, however, test for BLANK cells using any of the IS...
statements - ony way to test is to test for a zero length string eg
=if(A1="","Cell has zero length string","Cell has visible text")

OR

=if(LEN(A1)=0,"Cell has zero length string","Cell has visible text")
--
Rgds, Geoff

"A crash reduces
Your expensive computer
To a simple stone"


"steve alcock" wrote:

Hi team,

this is probably basic but :

when I have a formula in a cell it is then deemed as not blank for when I am
making refereneces to it or it's range, #n/a - #value etc are returned when i
want it to be treated as blank.

anyone throw some light on this please

thanks

steve

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
Empty Cell ( blank Cell ) rocky Excel Worksheet Functions 2 April 28th 05 11:17 PM
Look for change next blank cell in Range Nigel Bennett Excel Worksheet Functions 1 March 13th 05 09:45 PM
Go to first blank cell Curt D. Excel Worksheet Functions 4 February 28th 05 10:27 AM
Ghost Blank Cell References David P Excel Worksheet Functions 1 February 4th 05 03:27 AM
how do i create a blank cell in excel using a formula Tosh Excel Worksheet Functions 1 November 2nd 04 04:22 PM


All times are GMT +1. The time now is 01:21 PM.

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

About Us

"It's about Microsoft Excel"