The CEILING function in Google Sheets rounds a number up to the nearest multiple of a specified factor. It is the opposite of FLOOR, which rounds down. Use it when you need to round prices up to the nearest nickel, pack items into full boxes, or round time up to the next half hour. The syntax is =CEILING(value, factor). If you omit the factor, it defaults to 1, so =CEILING(4.2) returns 5. The function always rounds away from zero for positive numbers and toward zero for negative numbers when a positive factor is used. This guide walks through entering the formula, using cell references, handling negatives, and fixing the most common errors. No add-ons or special permissions are needed; a standard Google account with access to Sheets is enough.
What You'll Need
- A Google account with access to Google Sheets (free with any Google account).
- A spreadsheet open in a browser or the Google Sheets mobile app.
- At least one number to round, either typed directly or stored in a cell.
Step-by-Step
- Open your spreadsheet. Go to sheets.google.com, sign in, and open an existing file or create a new blank spreadsheet. On mobile, open the Google Sheets app and tap the file. Menu labels can differ slightly by version, device, or region, but the formula itself is identical everywhere.
- Click the cell where you want the result. This is the cell that will hold the rounded number. It can be empty or contain other data; the formula will overwrite it.
- Type an equals sign to start the formula. Every formula in Sheets begins with =. The cell enters edit mode and a formula bar appears.
- Type CEILING followed by an open parenthesis. Your entry should look like =CEILING(. Sheets may show a tooltip with the argument order as you type.
- Enter the number or cell reference to round. For a literal number, type it directly, for example =CEILING(7.3,. For a cell, click the cell or type its address, for example =CEILING(A2,. Using a cell reference lets the formula update when the source value changes.
- Type a comma, then the factor. The factor is the multiple you want to round up to. For example, a factor of 1 rounds up to the next whole number, 0.05 rounds up to the next nickel, and 10 rounds up to the next ten. Your formula might read =CEILING(A2, 5).
- Close the parenthesis and press Enter. On mobile, tap the checkmark on the keyboard. The cell displays the rounded result. For example, =CEILING(7.3, 5) returns 10 because 10 is the next multiple of 5 above 7.3.
- Copy the formula down if needed. Drag the small fill handle at the bottom-right corner of the cell, or copy the cell and paste it into the cells below. Relative references adjust automatically, so A2 becomes A3, A4, and so on.
- Check negative numbers separately. With a positive factor, CEILING rounds negative numbers toward zero. For example, =CEILING(-4.2, 1) returns -4, not -5. If you need a different behavior, test a sample before filling a whole column.
- Format the result if desired. Select the result cells and use the toolbar's number format buttons to show decimals, currency, or percentages. Formatting changes only the display, not the stored value.
Common Mistakes
- Forgetting the factor. Omitting the second argument defaults to 1, which may not be what you intended. Always include the factor when rounding to something other than a whole number.
- Reversing the arguments. The value comes first and the factor second. Writing =CEILING(5, 7.3) rounds 5 up to a multiple of 7.3, which is not the same as rounding 7.3 up to a multiple of 5.
- Using zero as the factor. A factor of 0 returns a #DIV/0! error because the function divides by the factor internally. Use a nonzero factor.
- Expecting negative numbers to round away from zero. With a positive factor, CEILING moves negative values toward zero. If you need the opposite, use a negative factor or switch to a different function.
- Typing text instead of numbers. If the value cell contains text, CEILING returns a #VALUE! error. Check that the source cell is formatted as a number.
- Mixing up CEILING with ROUNDUP. ROUNDUP rounds to a set number of decimal places, while CEILING rounds to a multiple. They produce different results for the same input.
Tips
- Use CEILING for pricing rules, such as rounding a calculated price up to the nearest 0.05 or 0.99.
- Combine CEILING with other functions. For example, =CEILING(SUM(B2:B10), 10) rounds a total up to the next ten.
- To round time up to the next quarter hour, use a factor of 0.25 with a time value, since Sheets stores times as fractions of a day.
- Use CEILING.MATH when you need control over how negative numbers round. It accepts an optional mode argument that changes the direction for negatives.
- Keep a helper column with the raw values so you can compare the rounded and unrounded results side by side.
- Test a formula on a few sample rows before filling it down a long column, especially when negatives or decimals are involved.
Troubleshooting
If the formula returns an error, check these in order. First, confirm the cell contains a formula starting with = and not plain text. Second, verify both arguments are numbers or references to numeric cells; text or blank cells cause #VALUE! errors. Third, make sure the factor is not zero. Fourth, check for a missing or extra parenthesis, which Sheets flags with a formula parse error. If the result looks wrong but there is no error, compare the factor you used with the rounding you expected; a factor of 1 rounds to whole numbers, not to the nearest ten. If a copied formula gives unexpected results, inspect the cell references to confirm they point where you intended. Finally, if the sheet was imported from another program, confirm the numbers are stored as numbers and not as text with leading apostrophes.
Frequently Asked Questions
What is the difference between CEILING and CEILING.MATH?
CEILING takes a value and a factor and rounds up to the nearest multiple. CEILING.MATH adds an optional mode argument that controls how negative numbers are rounded, and it defaults the factor to 1 if omitted. For simple positive-number rounding, both work the same way.
Does CEILING round up or down?
CEILING always rounds up to the next multiple of the factor for positive numbers. For negative numbers with a positive factor, it rounds toward zero, which is up in value but not away from zero.
Can I use CEILING with time values?
Yes. Sheets stores times as fractions of a day, so a factor of 0.25 rounds up to the next quarter hour and 1/24 rounds up to the next hour. Format the result cell as a time to display it correctly.
Why does CEILING return #DIV/0!?
The factor argument is zero. The function divides by the factor internally, so a zero factor is invalid. Replace it with a nonzero number.
Can CEILING round to the nearest 0.99?
Yes, use 0.99 as the factor. For example, =CEILING(4.10, 0.99) returns 4.95, the next multiple of 0.99 above 4.10. This is useful for psychological pricing rules.
Does CEILING work in the Google Sheets mobile app?
Yes. The formula is identical on Android and iOS. Type it into the formula bar or the cell, and tap the checkmark to confirm. The function list and tooltips may look slightly different from the desktop version.