Function Problems

Use IF with an IFS Formula in Excel to Return -1 or 2.4

Elise WilliamsElise Williams Dec 2, 2026 869 views

Question details

Return -1 when an IFS formula returns zero and 2.4 when it returns a different value.

Use IF with an IFS Formula to Return -1 or 2.4
Product
Microsoft Excel and WPS Spreadsheets
Device & OS
not provided
Scenario
A spreadsheet uses IFS to evaluate conditions, and its result needs to be converted to one of two output values.
Observed behavior
The desired result is -1 for an IFS result of 0 and 2.4 for a nonzero result.
Before you start

Identify the cell containing the IFS result and check whether the formula returns a number such as 0 or text such as "0". The comparison must match the result type.

Solution 1Recommended

Apply IF to the cell containing the IFS result

Use this method when the IFS formula is already in a cell and you want the converted result in another cell.

1
Select an output cell

Click an empty cell where you want the final value to appear. In this example, the IFS result is in E2.

2
Enter the IF formula

In the selected cell, enter =IF(E2=0,-1,2.4) and press Enter. Replace E2 with the cell containing your IFS result.

3
Adjust for text results

If the IFS formula returns text "0" rather than numeric 0, use =IF(E2="0",-1,2.4). Alternatively, edit the IFS formula to return 0 without quotation marks.

Apply IF to the cell containing the IFS result
Check IFS errors: If IFS returns an error, such as #N/A when no condition matches, IF will propagate that error rather than return -1 or 2.4.
WPS Spreadsheets

Convert IFS results with IF in WPS Spreadsheets

Use IF in WPS Spreadsheets to test an IFS result and return -1 for zero or 2.4 for another value.

  1. 1. Open your spreadsheet: Launch WPS Office, open Spreadsheets, and open the workbook containing your IFS formula.
  2. 2. Check the IFS result: Select the cell containing IFS and inspect the formula bar to see whether its results use numeric 0 or text "0".
  3. 3. Enter the IF formula: Click an empty output cell and enter =IF(E2=0,-1,2.4), replacing E2 with your IFS result cell. For text "0", use =IF(E2="0",-1,2.4).
  4. 4. Confirm the result: Press Enter and check that the output is -1 when the IFS result is zero and 2.4 for another value.
Combine IF and IFS to convert conditional resultsCompatible with Microsoft Excel XLS and XLSX filesUse a familiar spreadsheet interface to edit formulasWork with spreadsheets for free
microsoft office alternative - wps office

Frequently Asked Questions

Can I use IF and IFS in the same formula?

Yes. In the output cell, wrap the complete IFS formula in an IF comparison, for example =IF(IFS(A2<10,0,TRUE,1)=0,-1,2.4).

Why does my formula return 2.4 when I see 0?

The IFS result may be text "0" rather than numeric 0. Check the IFS formula in the formula bar and use =IF(E2="0",-1,2.4) for a text result, or remove the quotation marks around 0 in IFS.

What happens if no IFS condition is met?

IFS returns #N/A if no condition matches, and the IF comparison propagates that error. Add a final TRUE condition to IFS if you need a default result.

Can I copy the formula down a column?

Yes. Select the output cell and drag its fill handle down. A relative reference such as E2 changes to E3, E4, and so on.