Excel IF Formula to Round Up Values by Range
Question details
Create a formula that rounds the value in F7 up using an increment determined by its range.

- 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.
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.
Use CEILING with nested IF statements
Use this formula to select the rounding increment from the value in F7.
In Excel, click an empty cell such as G7.
Type =CEILING(F7,IF(F7<30,2,IF(F7<100,5,IF(F7<200,10,1)))) and press Enter.
Enter test values in F7: 29 rounds to 30, 96 rounds to 100, and 191 rounds to 200.
In the formula bar, replace the final 1 with your preferred increment for values of 200 or more.

Use LOOKUP to select the rounding increment
Use this shorter alternative when F7 contains a nonnegative number.
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. Open your workbook: Open WPS Spreadsheet and select your workbook from Open.
- 2. Check the source value: Click F7 and make sure it contains a number.
- 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. Save the workbook: Choose File > Save As and select XLSX if you want to keep the workbook in Excel format.

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.




