How to Fix VLOOKUP Returning #N/A from a Closed XLSB Workbook
Question details
The user needs to fix an issue where VLOOKUP formulas return an #N/A error when the source XLSB workbook is closed, even though the formulas calculate correctly when the source file is open.

- Product
- Spreadsheets
- Device & OS
- not provided
- Scenario
- Pulling external data from a separate XLSB (Excel Binary) file using a VLOOKUP formula while leaving the source file closed.
- Observed behavior
- The formula returns #N/A and prompts a link update error when the source workbook is closed, but displays the correct values once the source workbook is opened.
Ensure you know the exact folder path where the external XLSB workbook is saved, and verify that you have read permissions for that directory.
Update External Links and Force Recalculation
Manually update the workbook links to refresh the data cache from the closed XLSB file.
When an external source workbook is closed, spreadsheet applications rely on cached data. If the links are not automatically updating or the file was recently moved, VLOOKUP will fail to resolve the reference and return an #N/A error.
Go to the 'Data' tab on the top ribbon and click on 'Edit Links'.
In the Edit Links dialog box, select the problematic closed XLSB file from the list and click 'Update Values'.
Close the dialog box and press the 'F9' key on your keyboard to force the spreadsheet to recalculate all formulas.

Verify File Path and Formatting
Ensure the absolute file path is correct in the formula and there are no mismatched data types.
Use INDEX and MATCH as an Alternative
Replace the VLOOKUP function with an INDEX and MATCH combination, which can sometimes handle closed workbook references more robustly.
Manage External Workbook Links Seamlessly in WPS Spreadsheet
WPS Office provides robust and stable support for cross-workbook formulas, including VLOOKUP, INDEX, and MATCH. You can easily manage external links and update data connections without needing to keep multiple large files open.
- 1. Open Destination File: Launch WPS Spreadsheet and open the file containing your VLOOKUP formulas.
- 2. Access Edit Links: Navigate to the 'Data' tab on the ribbon and click the 'Edit Links' button.
- 3. Update Connections: Select your external XLSB workbook from the list of links and click 'Update Values'.
- 4. Recalculate: Press 'F9' to refresh your spreadsheet and resolve the #N/A errors.

Frequently Asked Questions
Why does VLOOKUP return #N/A only when the source file is closed?
This usually happens because the spreadsheet application cannot successfully connect to the cached data of the external file. It often occurs if the file path was changed, the link wasn't updated via the Edit Links tool, or the binary (.xlsb) cache is slightly corrupted.
Can I use the INDIRECT function to pull data from a closed workbook?
No. The INDIRECT function is designed to work only with open workbooks. If you use INDIRECT to reference an external file and then close that file, the formula will immediately return a #REF! error.
How can I hide the #N/A errors in my spreadsheet without fixing the link?
You can wrap your formula in the IFERROR function to replace the error with a blank cell or custom text. For example: =IFERROR(VLOOKUP(...), ""). Keep in mind that this only hides the error and does not restore the missing data.
Are XLSB (Excel Binary) files fully supported for external VLOOKUPs?
Yes, XLSB files are fully supported for external referencing in both Microsoft Excel and WPS Office. However, because they use a binary structure, caching issues can occasionally require a manual link update via the Data tab.




