Comment utiliser la formule FLOOR dans 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.

Syntaxe

FLOOR(value, [factor])

  • valeur – 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 valeur to.

Please note that the 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.

Formule FLOOR dans 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 valeur 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).

Vous pouvez aussi aimer...

Fonctionnalités et formules de google sheets

Comment calculer le taux d'intérêt nominal à l'aide de Google Sheets ?

Sarah est une jeune professionnelle qui doit prendre des décisions financières importantes. Des cartes de crédit aux hypothèques, en passant par les prêts étudiants et les...
Fonctionnalités et formules de google sheets

Extraire les données de Google Calendar dans Google Sheets à l'aide d'Apps Script

Cet article a été publié à l'origine dans notre forum communautaire. Objectif : Ce guide montre comment utiliser Google Apps Script pour extraire des données...
Fonctionnalités et formules de google sheets

Utilisation de la fonction PROPER pour mettre en majuscule la première lettre de chaque mot dans Google Sheets

Note : Cet article a été publié à l'origine dans notre forum communautaire. Vous avez déjà eu besoin de nettoyer une liste de noms, de titres ou d'autres...