Como usar a fórmula COUNT no Planilhas Google

O CONTAGEM formula in Google Sheets is one of the simplest and most widely used formulas for day to day spreadsheet needs. It gives us the number of numeric values within the specified data set. Simply put, it helps us to count numbers.

Sintaxe

COUNT(value1, [value2, …])

  • valor1 – is the value or reference to a range of cell(s) to consider while counting.
  • valor2 – and above are optional and additional values or ranges to consider for counting.

Usage: COUNT formula in Google Sheets

We will try and explain the syntax with a few examples below – as it helps strengthen our understanding.

COUNT Formula in Google Sheets: Usage

From the list of cases illustrated above, we can deduce that the input parameters can take any of the following forms. It can be a number, text within double quotes, and reference to a range of cells.

Consider the first five cases (rows 2 through to 6). No matter what kind of combination we use for the input parameters, the COUNT formula does its job – just counts the numbers. In all of these cases, the formula returned the value 6, while there are 8 different values (including the “Failed” ones). Therefore, we can establish that it is comfortably ignoring the text values, and only taking numbers into account.

Let us see what other things the COUNT formula counts.

COUNT Formula in Google Sheets

In the above image, we have put in various arbitrary values like a date, currency, percentage, decimal, and text. And accordingly we have validated for numbers on the second column, using the ISNUMBER formula. So, the values on the rows 2, 3, 5 and 6 are numbers and those on 4 and 7 are not numbers. And, not surprisingly, the COUNT formulas on the column C counted only those that are numbers.

So far, so good. What if we want to include the non numeric values within the count result? We can do that using another simple function. It is the COUNT formula’s big brother, the PAÍS formula, which is capable of counting text values too. However, we demonstrate this concept in a different post.

Você também pode gostar...

Recursos e fórmulas do Google Sheets

Como encontrar a taxa de juros nominal usando o Planilhas Google

Sarah é uma jovem profissional que está tomando decisões financeiras importantes. De cartões de crédito a hipotecas, empréstimos estudantis e investimentos...
Recursos e fórmulas do Google Sheets

Extrair dados do Google Agenda para o Planilhas Google usando o Apps Script

Esta postagem foi publicada originalmente em nosso fórum da comunidade. Objetivo: Este guia demonstra como usar o Google Apps Script para extrair dados...
Recursos e fórmulas do Google Sheets

Usando a função PROPER para colocar a primeira letra de cada palavra em maiúscula no Planilhas Google

Observação: esta postagem foi publicada originalmente em nosso fórum da comunidade. Alguma vez você já precisou limpar uma lista de nomes, títulos ou qualquer...