Isblank function erroneous results

Trevarrick

New Member
Joined
Sep 1, 2009
Messages
10
Using data of unknown origin in Excel I found Isblank was giving a FALSE result on some apparently blank cells while giving a TRUE result on others.

Even if I used TRIM and CLEAN functions on the offending data and pasted the resulting values back the the original locations, the Isblank result was still FALSE. Also, the font colour was not set to white or transparent.

However, if I selected the cell with the 'invisible' data, clicked in the Formula Bar and pressed Enter without entering any new data, the problem disappeared for that cell. The problem also disappeared if I selected the problem 'blank' cell and pressed delete.

Can anyone explain this 'invisible data' and tell me how I can detect it using a function or formula?
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Use CODE function on the offending cells to give you the ASCII value of the character(s) so you can work out why this happened
 
Upvote 0
Here's one thing to try. Assuming the invisible data is in A1, what does =LEN(A1) return? If you don't get a 0, what does =CODE(LEFT(A1),1) give you?
 
Upvote 0
Use CODE function on the offending cells to give you the ASCII value of the character(s) so you can work out why this happened
Code function gives <TABLE style="WIDTH: 62pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=83><COLGROUP><COL style="WIDTH: 62pt; mso-width-source: userset; mso-width-alt: 3035" width=83><TBODY><TR style="HEIGHT: 12pt" height=16><TD style="BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: transparent; WIDTH: 62pt; HEIGHT: 12pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #f0f0f0" class=xl65 height=16 width=83>#VALUE!</TD></TR></TBODY></TABLE>
 
Upvote 0
If it helps, the COUNTA function also sees the offending 'blank' cells and counts them...

Thanks for your responses so far!
 
Upvote 0
Based on your result from CODE and LEN I'd have to say the cell is empty.

What format is the original data in?
Could it have been created with some other version of Excel?

Could you post the file? Or a section of it?
 
Upvote 0
Great, Richard - That does identify the b*****s and enables me to solve my problem.

Does anyone know a possible cause for this annoyance?
 
Upvote 0

Forum statistics

Threads
1,214,375
Messages
6,119,168
Members
448,870
Latest member
max_pedreira

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