How to Fix Excel VSTACK #NAME? Error in Remote Desktop
Question details
The user needs to resolve a #NAME? error that appears on the VSTACK function when calculating an Excel workbook via a Remote Desktop connection, despite the formula working perfectly on their local desktop.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Opening and recalculating a workbook containing the VSTACK function through a Remote Desktop session.
- Observed behavior
- The VSTACK function returns a #NAME? error in the remote environment, indicating the function is not recognized by the Excel version running on the remote server.
Ensure you have your Microsoft 365 account credentials handy, as you may need to verify your subscription or update the Office installation within the Remote Desktop session.
Verify and Update Excel in the Remote Session
The #NAME? error typically occurs because the Remote Desktop server is running an older standalone version of Office (such as Excel 2016 or 2019) that does not support the VSTACK dynamic array function.
VSTACK is exclusively available to Microsoft 365 subscribers and Excel for the web users. If your remote server runs a non-subscription version of Office, the function will not be recognized.
Launch Excel within your Remote Desktop session. Click on 'File' in the top-left corner, then select 'Account' (or 'Office Account') from the bottom-left menu.
Check the 'Product Information' section to ensure it says Microsoft 365 and verify you are signed in with the correct subscription account.
Click the 'Update Options' button next to Office Updates and select 'Update Now' to download and install the latest build.
Once the update is complete, restart Excel, open your workbook, and recalculate the sheet. The VSTACK function should now process correctly.

Use Excel for the Web as a Workaround
If you do not have administrative permissions to update the Excel application on the Remote Desktop server, use the web version of Excel, which always supports the latest functions.
Try WPS Office for Seamless Spreadsheet Compatibility
If Remote Desktop environments are causing Microsoft Excel version conflicts and breaking your formulas, consider switching to WPS Office. It provides a lightweight, highly compatible spreadsheet environment that avoids the hassle of mismatched server installations.
- 1. Download WPS Office: Visit the official WPS Office website and download the free installer to your local machine or remote server.
- 2. Install the Software: Run the installer and follow the quick setup instructions to install the application.
- 3. Open Your Workbook: Launch WPS Spreadsheets and load your existing .xlsx workbook to continue working seamlessly without formula recognition errors.

Frequently Asked Questions
Why does VSTACK work on my laptop but not on Remote Desktop?
Remote Desktop sessions often connect to a server that runs a different, sometimes older, version of Microsoft Office. Since VSTACK is a newer dynamic array function available only in Microsoft 365, an older Excel version on the remote server will not recognize it and will return a #NAME? error.
Can I use VSTACK in Excel 2019 or Excel 2021?
No, the VSTACK function is exclusive to Microsoft 365 subscriptions and Excel for the web. Standalone perpetual licenses like Excel 2019 or Excel 2021 do not support this specific array function.
What should I do if the #NAME? error persists after updating Microsoft 365?
If updating doesn't resolve the issue, ensure you are signed in with the correct Microsoft 365 account that includes the latest feature rollouts. Also, check the formula text for typos, or try opening the document via Excel for the web as a diagnostic step.




