Use IF with an IFS Formula in Excel to Return -1 or 2.4
Question details
Return -1 when an IFS formula returns zero and 2.4 when it returns a different value.

- 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.
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.
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.
Click an empty cell where you want the final value to appear. In this example, the IFS result is in E2.
In the selected cell, enter =IF(E2=0,-1,2.4) and press Enter. Replace E2 with the cell containing your IFS result.
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.

Wrap the IFS formula inside IF
Use a single formula when you do not need to display the intermediate IFS result in a separate cell.
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. Open your spreadsheet: Launch WPS Office, open Spreadsheets, and open the workbook containing your IFS formula.
- 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. 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. Confirm the result: Press Enter and check that the output is -1 when the IFS result is zero and 2.4 for another value.

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.




