When a cell is included in COUNTA _and_ COUNTBLANK "hit count"?

Jaymond Flurrie

Well-known Member
Joined
Sep 22, 2008
Messages
919
Office Version
  1. 365
Platform
  1. Windows
I have a 2x7 size cell area. =COUNTBLANK(TheAreaImTalkingAbout) returns as the answer 14, =COUNTA(TheAreaImTalkingAbout) returns 3 i.e. three of the cells are both. What's the key factor to make cell both "A" and "BLANK"?

If I activate the edit mode of the cell (doubleclick+Enter), it is blank. If I run "Clear Contents" for it, it is no more "A", just "BLANK".
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Hi.

I would hazard a guess that 3 of your cells in that range are not "genuine" blanks but contain e.g. the "" as a result of formulas in those cells.

Regards
 
Upvote 0
Hi.

I would hazard a guess that 3 of your cells in that range are not "genuine" blanks but contain e.g. the "" as a result of formulas in those cells.

Regards

Doesn't this require that there are three cells that have formula in them? None of them does have a formula.
 
Upvote 0
The formulas could have been pasted over as values. Unless the actual cell contents are deleted, the "" will remain, although unseen of course.

Regards
 
Upvote 0
What's the key factor to make cell both "A" and "BLANK"?

XOR Xl already answered, this is just another way to put it:

A cell both "A" and "BLANK" when it is type text and has no characters.

So, if

=ISTEXT(A1) is True
and
=LEN(A1) is zero

then the cell is both "A" and "BLANK"


Remark: the word blank is a bad word in excel. It is ambiguous.
 
Upvote 0
I'm glad it helped.

Remember to run away from the word Blank. If instead of CountBlank() you were using IsBlank() then Blank would have another meaning.
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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