Fix a Nested IF and XLOOKUP Formula Error in Excel
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.

- 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.
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.
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.
Click the cell that contains the broken formula, such as the cell where =IF(EXACT(L4,"none"),... is entered.
Press F2 or click inside the formula bar to place the cursor in the formula.
Place a comma immediately after the closing parenthesis of each ISNUMBER(SEARCH("none",XLOOKUP(...))) expression, before the "No" result and before the "Yes" result.
Verify that every opening parenthesis has a closing parenthesis, then press Enter to accept the corrected formula.
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.

Simplify the Formula with Helper Columns for Each Lookup
Use this approach if you want to isolate which part of the nested formula is causing an error or if the full formula becomes difficult to maintain.
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. 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. Select the formula cell: Click the cell with the rejected formula to display it in the formula bar.
- 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. Press Enter and save: Press Enter to apply the corrected formula, then click Menu > Save to keep the workbook in .xlsx format.

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.




