Function Problems

Excel IF Formula to Round Up Values by Range

John WilsonJohn Wilson Nov 18, 2026 868 views

Question details

Create a formula that rounds the value in F7 up using an increment determined by its range.

Round Up Values by Range with an Excel IF Formula
Product
Microsoft Excel
Device & OS
not provided
Scenario
Round values below 30 in increments of 2, values from 30 to below 100 in increments of 5, and values from 100 to below 200 in increments of 10.
Observed behavior
The desired result is a value rounded up to the next multiple of the increment selected for the original value in F7.
Before you start

Make sure F7 contains a numeric value and choose an empty cell for the result. Decide how values of 200 or more should be handled; the formula below uses an increment of 1 for them.

Solution 1Recommended

Use CEILING with nested IF statements

Use this formula to select the rounding increment from the value in F7.

1
Select an output cell

In Excel, click an empty cell such as G7.

2
Enter the formula

Type =CEILING(F7,IF(F7<30,2,IF(F7<100,5,IF(F7<200,10,1)))) and press Enter.

3
Check the result

Enter test values in F7: 29 rounds to 30, 96 rounds to 100, and 191 rounds to 200.

4
Adjust the fallback if needed

In the formula bar, replace the final 1 with your preferred increment for values of 200 or more.

Use CEILING with nested IF statements
How the range is selected: The increment is chosen from the original value in F7, even if rounding moves the result into the next range.
Round values in WPS Spreadsheet

Round Values by Range in WPS Spreadsheet

Use the same CEILING and nested IF formula in WPS Spreadsheet to apply different rounding increments based on F7.

  1. 1. Open your workbook: Open WPS Spreadsheet and select your workbook from Open.
  2. 2. Check the source value: Click F7 and make sure it contains a number.
  3. 3. Enter the formula: Click an empty cell such as G7, enter =CEILING(F7,IF(F7<30,2,IF(F7<100,5,IF(F7<200,10,1)))), and press Enter.
  4. 4. Save the workbook: Choose File > Save As and select XLSX if you want to keep the workbook in Excel format.
Select rounding increments automatically with IF and CEILINGOpen and save Microsoft Excel XLSX filesWork with formulas in a familiar spreadsheet interfaceUse WPS Office for free
microsoft office alternative - wps office

Frequently Asked Questions

What happens when F7 is exactly 30 or 100?

At 30, the formula selects an increment of 5; at 100, it selects an increment of 10. Both values are already multiples of their respective increments, so they remain unchanged.

How are values of 200 or more rounded?

The example uses an increment of 1. To change it, edit the formula in the formula bar and replace the final 1 with your preferred increment.

Can the rounded result cross into the next range?

Yes. The formula selects an increment based on the original value in F7. For example, 99 is rounded up to 100 using the increment of 5.

Can I use the formula for other rows?

Yes. Enter the formula in G7, then drag the fill handle down. Excel adjusts the relative reference from F7 to F8, F9, and so on.