Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-29-2025, 07:03 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Can a cell be both blank and not blank ? Windows 11 Can a cell be both blank and not blank ? Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

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 ?
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #2  
Old 03-29-2025, 09:41 PM
MartinGM MartinGM is offline Can a cell be both blank and not blank ? Windows 11 Can a cell be both blank and not blank ? Office 2021
Competent Performer
Can a cell be both blank and not blank ?
 
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
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
IF cell in Col A is populated BUT cell in Col C is blank DELETE ROW ChrisOK Excel Programming 7 05-05-2019 09:00 PM
Can a cell be both blank and not blank ? Fill blank cell with value from adjacent cell kevinbradley57 Excel Programming 2 04-17-2018 08:40 AM
Can a cell be both blank and not blank ? Formulato say if cell is blank do this, if not blank do this. mbesspiata Excel 1 01-17-2015 05:02 AM
Can a cell be both blank and not blank ? not showing blank cell alw Excel 4 03-13-2014 01:08 PM
Can a cell be both blank and not blank ? How to turn all blank lines into non-blank for legal forms sieler Word 3 04-12-2009 01:38 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:35 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft