How to Make Excel Recognize a Renamed OneDrive Workbook
Question details
The user needs Excel formulas and external links to automatically recognize the new filename after renaming a workbook that is synced to OneDrive.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Renaming a workbook synced to OneDrive that is currently referenced by internal formulas or external links in other spreadsheets.
- Observed behavior
- Formulas and links break or continue to use the old filename until the OneDrive synchronization finishes and the references are manually updated.
Ensure you have a stable internet connection so OneDrive can properly sync your file changes across all devices before you attempt to update external links.
Use the CELL Function for Dynamic Referencing
Replace hard-coded workbook names in your formulas with the CELL function to automatically fetch the current file name.
By dynamically pulling the workbook's name using built-in functions, your formulas will instantly update whenever the file is renamed and saved, eliminating the need for manual link updates.
Select an empty cell in your workbook and type the formula =CELL("filename"), then press Enter.
Save your document. The cell will now display the full file path, including the workbook name and the active worksheet.
If necessary, nest the CELL function inside text extraction formulas (like MID and FIND) to isolate just the workbook name without the directory path.
Modify your dependent formulas to reference this dynamic cell instead of using a hard-coded file name.

Force OneDrive Synchronization and Manually Update Links
If you have external workbooks pointing to the renamed file, you must ensure OneDrive completes the sync before updating the link sources.
Dynamically Reference File Names with WPS Spreadsheet
WPS Spreadsheet fully supports the CELL function and advanced formulas, allowing you to create dynamic workbook references. It also features built-in WPS Cloud syncing, making file renaming and link management effortless.
- 1. Open your workbook: Launch WPS Spreadsheet and open the file you wish to manage.
- 2. Use the CELL function: Enter =CELL("filename") in a blank cell to capture the current file path dynamically.
- 3. Integrate references: Update your formulas to reference this cell to avoid hard-coded names.
- 4. Save to WPS Cloud: Save the file to WPS Cloud; renaming it later via the cloud interface will automatically keep your formulas intact.

Frequently Asked Questions
Why does the =CELL("filename") formula return an empty result?
The =CELL("filename") function requires the workbook to be saved to your drive or cloud first. If you use it in a brand new, unsaved workbook, it will return blank. Save the file and recalculate.
How long does it take for OneDrive to sync a renamed file?
Syncing is usually instantaneous on a stable broadband connection, but it can take a few minutes depending on file size and network speed. Look for the solid green checkmark icon next to the file in File Explorer.
Can I extract just the file name from the CELL function path?
Yes. You can combine it with functions like MID, FIND, and LEN to strip out the local drive path and worksheet name, leaving only the exact workbook name bracketed by '[' and ']'.




