Formula Errors

How to Fix a FILTER Function #CALC! Error in WPS Office Spreadsheets

Amos GikundaAmos Gikunda Nov 13, 2026 869 views

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.

How to Fix a FILTER Function #CALC! Error in WPS Office Spreadsheets
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the formula cell

Click the cell containing the #CALC! error, then click the formula bar to edit the FILTER formula.

2
Add the if_empty argument

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").

3
Press Enter

Press Enter to apply the formula. When no rows match, the cell now shows the replacement text instead of #CALC!.

Add the if_empty Argument to the FILTER Function
Error resolved: The #CALC! error no longer appears because the formula returns the supplied if_empty value instead of an unsupported empty array.

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. 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. 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. 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. 4. Save the workbook: Save the file as .xlsx to keep the formula compatible with Microsoft Excel.
Resolve #CALC! errors directly in WPS Office Spreadsheets using the same FILTER syntax.Maintain full .xlsx compatibility when opening and saving Excel workbooks.Add the if_empty argument directly in the familiar formula bar.Use a free, lightweight Office suite with a familiar ribbon interface.
microsoft office alternative - wps office

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.