"Empty "cell is not empty?

JacobMortensen

Board Regular
Joined
Feb 25, 2015
Messages
85
Hi All.

I have a cell where I have used both ws functions and VBA functions to test content.

The cell appears to have no content, but still it is not empty.

VBA:
isemtpty(cell) returns false

WS:
isblank(cell) = FALSE
code(cell) = #VALUE!
istext(cell) = TRUE

I'm in doubt about how to formulate my question, but I wonder, since the cell have no CODE value but ISTEXT is true, then what is the cell?
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Use the following:
Assuming the cell is A1

=LEN(A1) returns 1 if cell is just one character in length.
=CODE(LEFT(A1,1)) should return the ascii value of the 1st character in the cell

If this spreadsheet is web related then the character could well be CHAR(160) which appears as a space but is not.
 
Upvote 0
VBA:
isemtpty(cell) returns false

WS:
isblank(cell) = FALSE
code(cell) = #VALUE!
istext(cell) = TRUE

I can reproduce those exact results if the cell is a formula returning ""
Or if the cell 'WAS' a formula returning "", but has since been copied and pasted as values.


Is that the case?


"" is NOT blank/empty.
It's a zero length text string.

The basic Excel Law in play here is that a formula cannot return 'Nothing', it must return 'Something'.
"" is pretty much the closest we can get to having a formula return blank/nothing/empty
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,588
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top