Formula Errors

Fix a Nested IF and XLOOKUP Formula Error in Excel

Maira MehtabMaira Mehtab Nov 13, 2026 869 views

Question details

The user needs to correct a nested IF formula that combines EXACT, ISNUMBER, SEARCH, and XLOOKUP functions; Excel rejects the formula because commas are missing after the ISNUMBER expressions.

Fix a Nested IF and XLOOKUP Formula Error in Excel
Product
WPS Spreadsheets / Microsoft Excel
Device & OS
not provided
Scenario
The user is building a cross-sheet lookup formula that returns Yes, No, or NOT FOUND based on whether a searched value contains the text "none".
Observed behavior
Excel rejects the nested IF formula until commas are added after each ISNUMBER(SEARCH(...)) expression.
Before you start

Open the workbook in WPS Spreadsheets or Excel and click the cell that contains the formula. Confirm that the referenced sheet names match exactly, including spaces and punctuation, before editing.

Solution 1Recommended

Add the Missing Commas in the Nested IF and XLOOKUP Formula

Use this solution when Excel or WPS Spreadsheets rejects the formula with a syntax error because commas are missing after the ISNUMBER expressions.

The nested IF statement fails because Excel expects a value_if_true argument immediately after each ISNUMBER(SEARCH(...)) condition. Without a comma, Excel cannot separate the logical test from its result.

Adding the missing commas restores the required argument order and allows the formula to evaluate normally.

1
Select the formula cell

Click the cell that contains the broken formula, such as the cell where =IF(EXACT(L4,"none"),... is entered.

2
Open Edit mode

Press F2 or click inside the formula bar to place the cursor in the formula.

3
Add commas after each ISNUMBER expression

Place a comma immediately after the closing parenthesis of each ISNUMBER(SEARCH("none",XLOOKUP(...))) expression, before the "No" result and before the "Yes" result.

4
Check parentheses and press Enter

Verify that every opening parenthesis has a closing parenthesis, then press Enter to accept the corrected formula.

5
Confirm the result

Test the formula with values where the referenced cell contains "none" and where it does not, to confirm it returns No, Yes, or NOT FOUND as expected.

Add the Missing Commas in the Nested IF and XLOOKUP Formula
Formula accepted: After adding the missing commas, Excel and WPS Spreadsheets treat each ISNUMBER(SEARCH(...)) as a complete logical test and the nested IF formula returns the intended values.

Fix Nested IF and XLOOKUP Formula Errors in WPS Spreadsheets

Open your Excel workbook in WPS Spreadsheets, edit the formula directly in the formula bar, add the missing commas after each ISNUMBER(SEARCH(...)) expression, and save it back as a compatible .xlsx file without changing the formula logic.

  1. 1. Open the workbook in WPS Spreadsheets: Launch WPS Office, click Menu > Open, and select the Excel workbook that contains the nested IF formula error.
  2. 2. Select the formula cell: Click the cell with the rejected formula to display it in the formula bar.
  3. 3. Edit the formula in the formula bar: Click inside the formula bar and add a comma after each ISNUMBER(SEARCH("none",XLOOKUP(...))) expression, before the "No" and "Yes" result arguments.
  4. 4. Press Enter and save: Press Enter to apply the corrected formula, then click Menu > Save to keep the workbook in .xlsx format.
Free spreadsheet editor that opens and saves .xlsx workbooks without breaking formulasSupports Excel functions including XLOOKUP, EXACT, SEARCH, and ISNUMBERFamiliar ribbon formula bar makes it easy to correct missing argument commasLightweight and easy to use for quick formula troubleshooting
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel say there is a problem with my nested IF formula?

In this case, missing commas after the ISNUMBER(SEARCH(...)) expressions prevent Excel from separating the logical test from its result. Add a comma before each "No" and "Yes" result so the IF function has the required arguments.

Does WPS Spreadsheets support XLOOKUP in Excel files?

Yes. WPS Spreadsheets supports XLOOKUP in compatible workbooks, so you can open the .xlsx file, fix the formula, and save without losing the function.

How can I find where the missing comma should go?

Look at each ISNUMBER(SEARCH("none",XLOOKUP(...))) expression. The comma belongs immediately after the closing parenthesis of the ISNUMBER function, before the value that should be returned when the test is TRUE.

Can I break this formula into smaller parts?

Yes. Put the two XLOOKUP formulas in helper cells, then use ISNUMBER(SEARCH("none",helper)) in adjacent cells. This shows which part fails before you rebuild the nested IF.

Will the corrected formula work in both Excel and WPS Spreadsheets?

Yes. The corrected formula uses standard Excel functions and argument syntax, so it works in WPS Spreadsheets and Microsoft Excel with .xlsx workbooks.