Function Problems

How to Use IFS or Nested IF for Multiple Numeric Conditions in Excel

Amos GikundaAmos Gikunda Nov 11, 2026 869 views

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).

How to Use IFS or Nested IF for Multiple Numeric Conditions in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the result cell

Click on the empty cell where you want the resulting value (0, 5, 10, or 15) to be displayed.

2
Input the IFS formula

Type the following formula into the formula bar: =IFS(N7<0,0, N7<15,5, N7<24,10, TRUE,15).

3
Apply the calculation

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 the IFS Function to Evaluate Multiple Conditions
Catch-all Condition: Using TRUE as the final logical test ensures that any value not caught by the previous conditions (in this case, values 24 and higher) will return 15. This prevents an #N/A error.
Efficient Spreadsheet Tool

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. 1. Open your dataset in WPS: Launch WPS Office and open your spreadsheet file.
  2. 2. Select the target cell: Click the cell where you want to apply the multiple-condition logic.
  3. 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. 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.
100% compatible with Microsoft Excel formulas (.xlsx and .xls)Supports modern functions like IFS, XLOOKUP, and text manipulation arraysFree, lightweight, and features an intuitive tabbed interfaceBuilt-in AI features to help generate complex formulas instantly
microsoft office alternative - wps office

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.