OneDrive File Issues

How to Make Excel Recognize a Renamed OneDrive Workbook

John WilsonJohn Wilson Oct 21, 2026 868 views

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.

How to Make Excel Recognize a Renamed OneDrive Workbook
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.
Before you start

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.

Solution 1Recommended

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.

1
Enter the CELL formula

Select an empty cell in your workbook and type the formula =CELL("filename"), then press Enter.

2
Save the workbook

Save your document. The cell will now display the full file path, including the workbook name and the active worksheet.

3
Extract the file name

If necessary, nest the CELL function inside text extraction formulas (like MID and FIND) to isolate just the workbook name without the directory path.

4
Update existing formulas

Modify your dependent formulas to reference this dynamic cell instead of using a hard-coded file name.

Use the CELL Function for Dynamic Referencing
Automatic Updates: Once configured, any future renames to the file will be reflected in your formulas immediately after the next save.
Seamless Cloud Integration

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. 1. Open your workbook: Launch WPS Spreadsheet and open the file you wish to manage.
  2. 2. Use the CELL function: Enter =CELL("filename") in a blank cell to capture the current file path dynamically.
  3. 3. Integrate references: Update your formulas to reference this cell to avoid hard-coded names.
  4. 4. Save to WPS Cloud: Save the file to WPS Cloud; renaming it later via the cloud interface will automatically keep your formulas intact.
Fully compatible with Microsoft Excel formulas, including CELL, MID, and INDIRECT.Built-in WPS Cloud for instant file synchronization across all your devices.Free and lightweight alternative with a familiar, easy-to-use interface.
QA img-9

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 ']'.