Google Sheets COUNT Function

The COUNT function is a premade function in Google Sheets, which counts cells with numbers

COUNT Function

The COUNT function is a premade function in Google Sheets, which counts cells with numbers.

It is typed =COUNT and gets a list of cells:

=COUNT(value1, [value2, ...])

You can select cells one by one, but also ranges, or even multiple ranges.

Note: The COUNT function only counts cells with numbers, not cells with letters. The COUNTA function is used if the cells have letters.

Count Function Example

Apply the =COUNT function to range D2:D21. Counting the cells of Pokemon Total stats, which is numbers only:

COUNT function, step by step:
  • Select the cell D22
  • Type =COUNT
  • Click the COUNT command
  • Specify range D2:D21
  • Hit enter
  • That's it! The =COUNT function successfully counted 20 cells with numbers.

    A Non-Working Example

    Now, let us try an example that will not work.

    Apply the =COUNT function to the range A2:A21, which only has cells with letters.

    It returns the value 0, no cells with numbers found. Range A2:A21 only had cells with letters.

    function copyFormulas(elementId){ /* Get the text field */ var copyText = document.getElementById(elementId); /* Select the text field */ copyText.select(); copyText.setSelectionRange(0, 99999); /* For mobile devices */ /* Copy the text inside the text field */ navigator.clipboard.writeText(copyText.value) .then(() => { alert('Range copied to clipboard.\nIt can now be pasted into the Google Sheets spreadsheet.') }) .catch((error) => { alert(`Copy failed! ${error}`) }) }