Cómo utilizar la fórmula CONTAR en Google Sheets

En CONTAR 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.

Sintaxis

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 COUNTA formula, which is capable of counting text values too. However, we demonstrate this concept in a different post.

También te puede gustar...

funciones y fórmulas de google sheets

Cómo hallar el tipo de interés nominal con Google Sheets

Sarah es una joven profesional que toma importantes decisiones financieras. Desde tarjetas de crédito a hipotecas, préstamos estudiantiles e inversiones...
funciones y fórmulas de google sheets

Extraer datos de Google Calendar en Google Sheets mediante Apps Script

Este post fue publicado originalmente en nuestro foro de la comunidad. Objetivo : Esta guía muestra cómo utilizar Google Apps Script para extraer datos...
funciones y fórmulas de google sheets

Uso de la función PROPER para escribir en mayúsculas la primera letra de cada palabra en Google Sheets

Nota: Este artículo se publicó originalmente en el foro de nuestra comunidad. Alguna vez te has visto en la necesidad de limpiar una lista de nombres, títulos o cualquier...