Difference between revisions of "Documentation/How Tos/Calc: COUNTBLANK function"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Bot: Adding Category: Documentation)
m
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{DISPLAYTITLE:COUNTBLANK function}}
 +
{{Documentation/CalcFunc MathematicalTOC
 +
|ShowPrevNext=block
 +
|PrevPage=Documentation/How_Tos/Calc:_CONVERT_ADD_function
 +
|NextPage=Documentation/How_Tos/Calc:_COUNTIF_function
 +
}}__NOTOC__
  
 
== COUNTBLANK ==
 
== COUNTBLANK ==
Line 24: Line 29:
 
: returns the count of cells containing blank text and zero length text.
 
: returns the count of cells containing blank text and zero length text.
  
{{Documentation/SeeAlso|
+
{{SeeAlso|EN|
 
* [[Documentation/How_Tos/Calc: COUNT function|COUNT]]
 
* [[Documentation/How_Tos/Calc: COUNT function|COUNT]]
 
* [[Documentation/How_Tos/Calc: COUNTA function|COUNTA]]
 
* [[Documentation/How_Tos/Calc: COUNTA function|COUNTA]]
Line 41: Line 46:
 
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
 
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
 
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
 
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
 
+
[[Category: Documentation/Reference/Calc/Mathematical functions]]
 
[[fr:Documentation/FR/Calc:Fonction NB.VIDE]]
 
[[fr:Documentation/FR/Calc:Fonction NB.VIDE]]
[[Category: Documentation]]
 

Latest revision as of 15:12, 31 January 2024

COUNTBLANK

Returns the number of empty cells.

Syntax:

COUNTBLANK(range)

Returns the number of empty cells in the cell range range.
A cell that contains blank text such as spaces, or even text with zero length such as returned by ="", is not considered empty, even though it may appear empty.

Example:

COUNTBLANK(A1:B2)

returns 4 if cells A1, A2, B1 and B2 are all empty.

Advanced topic:

SUMPRODUCT(TRIM(CLEAN(A1:B2))="")

returns the count of cells that appear blank - that is, that are really empty or that contain blank text or zero length text.

SUMPRODUCT(ISTEXT(A1:B2);TRIM(CLEAN(A1:B2))="")

returns the count of cells containing blank text and zero length text.



See Also
Retrieved from "https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_COUNTBLANK_function&oldid=259885"
Views
Personal tools
Navigation
Tools
In other languages