How to Fix a FILTER Function #CALC! Error in WPS Office Spreadsheets
Question details
The user needs to resolve a #CALC! error that appears when the FILTER function returns no matching rows from a source range on another worksheet.

- Product
- WPS Office Spreadsheets
- Device & OS
- not provided
- Scenario
- The user is pulling data with the FILTER function from another worksheet and the criteria produce an empty result.
- Observed behavior
- The formula returns #CALC! because no if_empty argument is supplied, and the application does not support returning an empty array.
Open the workbook that contains the FILTER formula and confirm which worksheet holds the source data and which cell contains the criteria. Check whether the criteria currently return zero rows so you can choose an appropriate fallback value.
Add the if_empty Argument to the FILTER Function
Use this fix when the FILTER formula may return zero matching rows from another worksheet and you want a friendly message instead of #CALC!.
WPS Office Spreadsheets and Excel return #CALC! when FILTER produces an empty array and no replacement value is supplied. Adding the optional if_empty argument gives the formula a value to display when there are no matches.
Click the cell containing the #CALC! error, then click the formula bar to edit the FILTER formula.
After the include argument, type a comma and enter a replacement value in double quotes, for example =FILTER(Sheet2!A2:C100,Sheet2!B2:B100="Open","No records found").
Press Enter to apply the formula. When no rows match, the cell now shows the replacement text instead of #CALC!.

Use IFERROR to Catch the #CALC! Error
Use this alternative if you want to keep the original FILTER formula unchanged and display a fallback value for any error.
Fix FILTER #CALC! Errors in WPS Office Spreadsheets
WPS Office Spreadsheets supports the FILTER function and lets you add an if_empty argument so a cross-sheet filter returns a friendly value when no records match.
- 1. Open the workbook in WPS Office Spreadsheets: Launch WPS Office Spreadsheets and open the Excel workbook that contains the cross-sheet FILTER formula.
- 2. Edit the FILTER formula: Select the cell showing #CALC!, click the formula bar, and add the if_empty argument after the include argument, such as ,"No results".
- 3. Confirm the result: Press Enter and test with a criteria value that returns no matching rows; the cell displays your chosen text instead of #CALC!.
- 4. Save the workbook: Save the file as .xlsx to keep the formula compatible with Microsoft Excel.

Frequently Asked Questions
Why does FILTER return #CALC! only when no rows match?
FILTER returns an empty array when no rows satisfy the criteria. WPS Office Spreadsheets and Excel do not support empty arrays unless the optional if_empty argument is supplied.
Can I use IFERROR instead of the if_empty argument?
Yes. You can wrap the FILTER formula in IFERROR and provide a fallback value, but IFERROR also hides other formula errors, so use it only when an empty result is the expected case.
Does this fix work when the source data is on another worksheet?
Yes. Use a fully qualified reference to the source worksheet, such as Sheet2!A2:C100, and add the if_empty argument after the include argument.
What value should I put in the if_empty argument?
You can use text such as "No results", an empty string "", or a number such as 0. Choose the value that helps the user understand that no records matched.
Can WPS Office open an Excel workbook containing the FILTER function?
Yes. WPS Office Spreadsheets opens .xlsx workbooks and supports Excel-compatible dynamic array functions, so you can edit and save the formula without converting the file format.




