View Single Post
 
Old 03-29-2025, 09:41 PM
MartinGM MartinGM is offline Windows 11 Office 2021
Competent Performer
 
Join Date: May 2023
Location: England
Posts: 101
MartinGM is on a distinguished road
Default It IS an empty string

Quote:
Originally Posted by Pecoflyer View Post
Your cell probably contains an empty text string (""), which will return 1 with both functions. Depending on what you have in the other cells there are ways to ignore that. Please post a sample sheet with some data and manually mocked up results if needed
To check if A1, say, has an empty text string, type =TYPE(A1) somewhere. If the result is 2, it is text.
Now, how did it get there ?
Type(XXX) does return 2. Very helpful, thank you.
There are lots of other TEXT cells on the worksheet but they all contain text, so they return 0 for the COUNTBLANK function.
That gives me enough clues to write a procedure to identify any cells with the empty text string. I'll do that in VBA as it is a very large worksheet.
I too wonder how these empty strings crop up from time to time - not often though.
Thanks again
Martin
Reply With Quote