Fix Excel #NAME? Errors and Missing Trade Durations in WPS Office Spreadsheet
Question details
A user needs to resolve #NAME? errors and missing "Duration was not found" values in a stock-trading workbook that uses formulas across multiple sheets and functions that may be unavailable in Excel 2016.

- Product
- WPS Office Spreadsheet
- Device & OS
- not provided
- Scenario
- The user added a new trade to a multi-sheet stock-trading workbook and needs the formulas to calculate trade durations correctly.
- Observed behavior
- Formulas return #NAME? or "Duration was not found" because Excel 2016 does not support newer functions such as MINIFS, MAXIFS, LET, and LAMBDA, or because named ranges and sheet references are invalid.
Open the workbook in WPS Office Spreadsheet, enable editing if it is protected, and identify the cells that show #NAME? or "Duration was not found" so you can verify each repair immediately.
Replace Unsupported Functions with Excel 2016-Compatible Array Formulas
Use this when the workbook contains MINIFS, MAXIFS, LET, or LAMBDA and the file must remain compatible with Excel 2016.
Excel 2016 does not recognize MINIFS, MAXIFS, LET, or LAMBDA, so any cell that calls these functions returns #NAME?. Replacing them with IF-based array formulas restores the trade duration calculation on older Excel versions.
In WPS Office Spreadsheet, press Ctrl+F or click Home > Find and Replace > Replace to search for unsupported function names such as MINIFS, MAXIFS, LET, and LAMBDA.
Go to the cells that calculate trade durations or profit. Look for formulas that use StockSymbol, StockResult, StockProfitF, LiveSymbol, or LiveProfitF and refer to a missing function.
Replace the unsupported function with an IF array formula. For example, for a maximum winning profit across stock and live trades, use: =MAX(MAX(IF(StockSymbol=A4,IF(StockResult="W",IF(StockProfitF>0,StockProfitF)))),MAX(IF(LiveSymbol=A4,IF(LiveProfitF>0,LiveProfitF))))
Click the formula bar, then press Ctrl+Shift+Enter to enter it as an array formula. WPS Spreadsheet adds curly braces around the formula automatically.

Verify and Repair Named Ranges and Sheet References
Use this when "Duration was not found" or #NAME? persists after replacing functions, or when the workbook references ranges across multiple sheets.
Use Bounded Dynamic Ranges Instead of Whole-Column References
Use this to improve calculation speed and prevent formula errors in a large trading workbook.
Fix #NAME? Formula Errors in Trading Workbooks with WPS Office Spreadsheet
WPS Office Spreadsheet can open the same .xlsx workbook, provide Name Manager and Find and Replace to repair unsupported formulas, and help you restore missing trade durations without switching to a paid Microsoft 365 plan.
- 1. Open the affected workbook: Launch WPS Office Spreadsheet, click Menu > Open, and select the stock-trading .xlsx workbook.
- 2. Inspect formula errors: Select the cells showing #NAME? and review the formula bar to identify unsupported functions or missing names.
- 3. Repair functions or ranges: Use Formulas > Name Manager and Ctrl+F Find and Replace to replace MINIFS, MAXIFS, LET, or LAMBDA with compatible IF array formulas or to correct named ranges.
- 4. Enter array formulas: Click the formula bar and press Ctrl+Shift+Enter to commit any array formula so WPS Spreadsheet adds the required curly braces.
- 5. Save and verify: Press F9 to recalculate, confirm the missing trade durations now display, and save the workbook as .xlsx for Excel compatibility.

Frequently Asked Questions
Why does my Excel formula show #NAME? after adding a new trade?
#NAME? often means Excel does not recognize a function name, named range, or sheet reference. In Excel 2016, newer functions like MINIFS, MAXIFS, LET, and LAMBDA are not available and cause #NAME?.
How do I enter an array formula in WPS Office Spreadsheet?
Select the cell, type or edit the formula, and press Ctrl+Shift+Enter. WPS Spreadsheet adds curly braces around the formula automatically; do not type them manually.
Why does "Duration was not found" appear in my workbook?
The workbook may use a named range or column called Duration that is missing, renamed, or pointed to an invalid reference. Check Formulas > Name Manager and confirm all cross-sheet references.
Can WPS Office open a workbook that uses Excel formulas across multiple sheets?
Yes. WPS Office Spreadsheet can open .xlsx workbooks and provides Name Manager, Find and Replace, and formula tools to inspect and repair cross-sheet formulas and named ranges.
Should I use whole-column references like A:A in a trading workbook?
Whole-column references can slow recalculation and may cause formula issues. Use bounded dynamic ranges such as OFFSET and COUNTA to limit formulas to the actual trade data.




