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

While there are infinite rational numbers in mathematics, we don’t usually deal with all of them. That’s because, in real life, it isn’t even feasible. Consider currency for instance. We may make many money transaction calculations – interest, exchange rates, etc. For the purposes of this example, let’s say we arrived at $21.835. If we were to transact that in reality, we may have to round it off to the nearest available currency denomination. Because it is unlikely that we have physical denominations available to pay that amount in entirety. And more often, we round it down to the lowest possible multiple-denomination value. For instance, if we had $10 bills, we would round the value $21.835 to $20. Or if we had $1 bills, then we’d round it to $21. The FLOOR formula in Google Sheets helps us with the similar scenarios while handling numbers on spreadsheets.

Sintaxis

FLOOR(value, [factor])

  • valor – is the value which we are trying to round down to the nearest integer multiple of the factor.
  • factor – [OPTIONAL – 1 by default] – is the number to whose multiples, the formula rounds the valor to.

Tenga en cuenta que el factor may not be equal to 0, and is usually a positive value.

Usage: FLOOR formula in Google Sheets

The formula syntax isn’t that complicated. But, it can be a little tricky to understand its behavior. So let us make use of a few examples to clear out any doubts. Consider the following screenshot.

Fórmula FLOOR en Google Sheets

Let us consider the first example. If we look at the multiples of factor value 1, they are 1, 2, 3, …18, 19, 20, 21, … etc. Since 20 is the nearest available factor multiple, the formula returned 20 as output.

Similarly, in the second example, the factor multiples are 3, 6, 9, 12, 15, 18, 21, 24, … etc. Clearly, the valor 20 lies between the multiples 18 and 21. Since the formula considers the nearest lower value (or the FLOOR value), it results in 18 and not 21.

Same is the case with the third example. Among the multiples 7, 14, 21, 28, … etc. the FLOOR of the value 20 is 14. We can also extend this to even rational factors, as demonstrated in the final four examples. Please note that we can also use negative values for the first input parameter (final example).

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