How to Use IFS or Nested IF for Multiple Numeric Conditions in Excel
Question details
The user needs to return specific numeric values (0, 5, 10, or 15) based on multiple numeric threshold conditions evaluated against a specific cell (N7).

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Categorizing or assigning tiered numerical scores based on a single input value across multiple thresholds.
- Observed behavior
- Requires a logical formula setup that outputs 0 for values below 0, 5 for values below 15, 10 for values below 24, and 15 for values 24 or higher.
Verify whether your spreadsheet software supports the newer IFS function (available in Office 2019, Microsoft 365, and WPS Office). If you are using an older version of Excel, use the nested IF method instead.
Use the IFS Function to Evaluate Multiple Conditions
The IFS function is the cleanest and most straightforward method to evaluate multiple conditions sequentially without the need for complex formula nesting.
The IFS function checks conditions one by one from left to right. Once it finds the first true condition, it returns the corresponding value and stops calculating.
Click on the empty cell where you want the resulting value (0, 5, 10, or 15) to be displayed.
Type the following formula into the formula bar: =IFS(N7<0,0, N7<15,5, N7<24,10, TRUE,15).
Press the Enter key on your keyboard to execute the formula. If you need to apply this to an entire column, click and drag the fill handle at the bottom-right corner of the cell.

Use Nested IF Functions for Older Software Versions
If you are using an older version of Excel that does not support the IFS function, you can nest standard IF functions to achieve the exact same logic.
Easily Handle Complex Formulas with WPS Spreadsheet
WPS Spreadsheet fully supports advanced logical functions, including both IFS and nested IF arrays. It handles complex data scenarios efficiently and serves as a powerful, cost-free alternative for all your data analysis needs.
- 1. Open your dataset in WPS: Launch WPS Office and open your spreadsheet file.
- 2. Select the target cell: Click the cell where you want to apply the multiple-condition logic.
- 3. Insert the function: Navigate to the Formulas tab, click on Insert Function, and select IFS. Alternatively, type =IFS(N7<0,0, N7<15,5, N7<24,10, TRUE,15) into the formula bar.
- 4. Confirm and drag: Press Enter to get the result, then double-click the cell's fill handle to apply the formula down your column.

Frequently Asked Questions
Why does my IFS formula return an #N/A error?
The #N/A error in an IFS formula means that none of the specified conditions evaluated to TRUE. To prevent this, always add TRUE as your final logical test, followed by the value you want to return if all other conditions fail (e.g., TRUE, 15).
How many IF functions can I nest together?
In modern versions of Excel and WPS Spreadsheet, you can nest up to 64 IF functions. However, nesting too many IFs makes the formula difficult to read and troubleshoot. For more than 4 or 5 conditions, it is better to use the IFS function or a VLOOKUP table.
Are the IFS and nested IF conditions evaluated in a specific order?
Yes, both functions evaluate conditions sequentially from left to right. Once the first TRUE condition is encountered, the formula returns that specific value and immediately stops checking the remaining conditions. Always structure your thresholds from smallest to largest (or vice versa) to ensure accurate results.




