Difference between revisions of "Documentation/How Tos/Calc: COUNTBLANK function"
From Apache OpenOffice Wiki
< Documentation | How Tos
m |
m |
||
(10 intermediate revisions by 6 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 7: | Line 12: | ||
<tt>'''COUNTBLANK(range)'''</tt> | <tt>'''COUNTBLANK(range)'''</tt> | ||
− | Returns the number of empty cells in the cell range <tt>'''range'''</tt>. | + | : Returns the number of empty cells in the cell range <tt>'''range'''</tt>. |
+ | |||
+ | : A cell that contains blank text such as spaces, or even text with zero length such as returned by <tt>'''=""'''</tt>, is '''not''' considered empty, even though it may appear empty. | ||
=== Example: === | === Example: === | ||
Line 14: | Line 21: | ||
: returns <tt>'''4'''</tt> if cells A1, A2, B1 and B2 are all empty. | : returns <tt>'''4'''</tt> if cells A1, A2, B1 and B2 are all empty. | ||
− | + | <i>Advanced topic:</i> | |
− | '''[[Documentation/How_Tos/Calc: COUNT function|COUNT]] | + | |
− | + | <tt>'''SUMPRODUCT(TRIM(CLEAN(A1:B2))="")'''</tt> | |
− | + | : returns the count of cells that appear blank - that is, that are really empty or that contain blank text or zero length text. | |
− | + | ||
+ | <tt>'''SUMPRODUCT(ISTEXT(A1:B2);TRIM(CLEAN(A1:B2))="")'''</tt> | ||
+ | : returns the count of cells containing blank text and zero length text. | ||
+ | |||
+ | {{SeeAlso|EN| | ||
+ | * [[Documentation/How_Tos/Calc: COUNT function|COUNT]] | ||
+ | * [[Documentation/How_Tos/Calc: COUNTA function|COUNTA]] | ||
+ | * [[Documentation/How_Tos/Calc: COUNTIF function|COUNTIF]] | ||
+ | * [[Documentation/How_Tos/Calc: ISBLANK function|ISBLANK]] | ||
+ | |||
+ | * [[Documentation/How_Tos/Calc: SUMPRODUCT function|SUMPRODUCT]] | ||
+ | * [[Documentation/How_Tos/Calc: TRIM function|TRIM]] | ||
+ | * [[Documentation/How_Tos/Calc: CLEAN function|CLEAN]] | ||
+ | * [[Documentation/How_Tos/Calc: ISTEXT function|ISTEXT]] | ||
+ | |||
+ | * [[Documentation/How_Tos/Conditional Counting and Summation|Conditional Counting and Summation]] | ||
+ | |||
+ | * [[Documentation/How_Tos/Calc: Mathematical functions|Mathematical functions]] | ||
− | + | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | |
+ | * [[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]] |
Latest revision as of 15:12, 31 January 2024
- Mathematical FunctionsTrigonometric
- COSSINTANCOTACOSACOTASINATANATAN2DEGREESRADIANSPIHyperbolic
- COSHSINHTANHCOTHACOSHACOTHASINHATANHRounding and remainders
- TRUNCROUNDROUNDDOWNROUNDUPCEILINGFLOOREVENODDMROUNDINTQUOTIENTMODLogarithm/Powers
-