CEILING Function in Google Sheets: How to Use It with Examples

The CEILING function in Google Sheets allows you to round a number up to the nearest integer multiple of a specified significance. In contrast, the FLOOR function rounds a number down, while the MROUND function rounds a number to the nearest integer multiple of another number. Understanding these functions can simplify your calculations and data manipulation in Google Sheets.

Syntax

CEILING(value, [factor])

Arguments

  • value: The number you want to round up.
  • factor (optional): The multiple to which you want to round the value. If omitted, it defaults to 1. Note that the factor cannot be 0 and must be positive.

Example of the CEILING Function in Google Sheets

Let’s explore how to use the CEILING function with a few examples. Note that the formula results (Column C) will always be greater than or equal to the values in Column A.

Usage of the CEILING Function in Google Sheets

Example Formula

Using direct values instead of cell references, you can write:

=CEILING(8, 3)

Result: 9

In this formula, 8 is the value and 3 is the factor. The CEILING function rounds 8 up to the nearest integer multiple of 3.

If you were to use the FLOOR function in this case:

=FLOOR(8, 3)

Result: 6

Here, the FLOOR function rounds 8 down to the nearest multiple of 3. The multiples of 3 are:

  • 1 x 3 =3
  • 2 x 3= 6
  • 3 x 3 = 9

Since 8 is closer to 9 when rounding up, the CEILING function returns 9.

Important Notes

  1. The factor argument is optional, but if you omit it, the function treats it as 1.
  2. The factor must be positive; the value can be either positive or negative.
  3. CEILING is commonly used to round up decimal values. For example:
=CEILING(23.91, 0.05)

Result: 23.95

Practical Use Case: Currency Conversion

You can utilize the CEILING function in Google Sheets to round up currency denominations. For example, at the time of writing, the exchange rate from INR to USD is approximately 0.01189029, meaning 1 INR equals 0.01189029 USD. (I obtained this value using the GOOGLEFINANCE function, such as =GOOGLEFINANCE("CURRENCY:INRUSD").) Therefore, converting 1450.00 INR to USD gives you:

=1450 * 0.01189029

This equals approximately 17.2269205 USD. To round this amount up to the nearest 5 cents, use the CEILING function:

=CEILING(17.2269205, 0.05)

Result: 17.25 USD

This helps ensure you’re always rounding up to a more convenient currency value.

Conclusion

The CEILING function is a powerful tool for rounding numbers up to specific increments in Google Sheets. Understanding its syntax and how it compares with similar functions like FLOOR and MROUND will enhance your data manipulation skills.

Enjoy using the CEILING function in your spreadsheets!

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

How to Extract Numbers from Text in Excel with Regex

You can use the REGEXEXTRACT or REGEXREPLACE functions to easily extract numbers from text...

Using OFFSET and MATCH Together in Google Sheets: Advanced Tips

One powerful and flexible way to look up values is by combining the OFFSET...

How to Use OFFSET and XMATCH Functions Together in Excel

We often use the OFFSET and XMATCH functions together to match a value in...

How to Calculate Maximum Drawdown in Excel and Google Sheets

You can use the following dynamic array formula to calculate maximum drawdown (MDD) in...

More like this

Using OFFSET and MATCH Together in Google Sheets: Advanced Tips

One powerful and flexible way to look up values is by combining the OFFSET...

Running Count with Structured References in Google Sheets

Running a count with structured references is achievable in Google Sheets tables using the...

Running Total with Structured Table References in Google Sheets

You can use two types of formulas to create a running total with structured...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.