COUNT Function

Counts nonblank values

Syntax

COUNT(value1, [value2, ...])
  • value1
    The value to count, typically a cell or range of cells.
  • value2, ... —[optional]
    Additional values or ranges to count

Sample usage

COUNT([Task Name]1:[Task Name]5)

Examples

This example references the following sheet information:

 Clothing ItemItem NumberUnits SoldStatus
1 Brandfolder Image Child row symbol

Totals

C000337Red
2      T-ShirtC00178Green
3      PantsC00242Red
4      JacketC003217Yellow

This symbol  Brandfolder Image Child row symbol represents a hierarchy in your column.  The cell with the symbol is the parent row, and the cells below are the children rows. 

 

Given the table above, here are some examples of using COUNT in a sheet:

FormulaDescriptionResult
=COUNT([Units Sold]:[Units Sold])Counts any field in the Units Sold column that contains a value.4
=COUNT(CHILDREN([Item Number]1)Counts any field that contains a value and is the child row 1 in the "Item Number column.3
=IF(COUNT(CHILDREN(Status1)) = COUNTIF(CHILDREN(Status1), "Green"), "Status Green", "Status Not Green")Returns "Green" if the count of the child rows in the Status column is equal to the count of the child rows in the Status column that also contains "Green". Otherwise, the function returns "Red".Red

Still need help?

Use the Formula Handbook template to find more support resources, and view 100+ formulas, including a glossary of every function that you can practice working with in real time, and examples of commonly used and advanced formulas.

Find examples of how other Smartsheet customers use this function or ask about your specific use case in the Smartsheet online Community.

Ask the Community