To rename an Excel file while it is open in Microsoft 365 on Windows, use File > Save As > Browse, enter the new file name, and save it. Excel then keeps the workbook open under the new name. This creates a renamed copy rather than changing the original file’s name in place, so check which copy you need before deleting anything. For a file stored in OneDrive or SharePoint, you may be able to rename it directly from its name in Excel.
What You’ll Need
- The workbook open in Excel and permission to save in its folder or cloud location.
- A new name that is valid for the storage location. For Windows files, avoid characters such as
<,>,:,",/,\,|,?, and*. - A moment to confirm the workbook has finished saving, especially if it is large or stored online.
Step-by-Step
- Check where the workbook is saved. Look at the file name and location shown in Excel’s title bar, or go to File > Info to review workbook details. A file in a regular folder on your PC behaves differently from one in OneDrive or SharePoint. If you are unsure, note the current folder and file name so you can identify the original later.
- Save your latest changes first. Press Ctrl+S on Windows. Wait for Excel to finish saving; a cloud workbook may show a syncing or saving indicator. This gives you a current version to work from before you make a separately named copy. If Excel displays a warning or an upload error, resolve it before continuing.
- For a workbook saved on your PC, open Save As. Select File > Save As > Browse. You can also press F12 to open the Save As dialog in desktop Excel for Windows. If your workbook is in a cloud location and the screen offers Save a Copy instead, see the cloud-renaming guidance below; saving a copy and renaming the original are not the same action.
- Choose the destination folder. In the Save As dialog, navigate to the folder where you want the new file to live. To keep it beside the original, select its current folder. To move it as well as give it a new name, choose the new folder deliberately. Saving to a different folder can affect links, shortcuts, or routines that expect the workbook to stay in its original location.
- Enter the new file name. In the File name box, type the desired name. You usually do not need to type the extension if Excel has selected the correct file type; it will retain an extension such as
.xlsxor.xlsm. If you do include an extension, make sure it matches the workbook format. Do not change a macro-enabled.xlsmfile to.xlsxif you need to preserve its macros. - Confirm the file type and save. Check the Save as type field. Keep the existing format unless you intentionally need another one, then select Save. If Excel warns that a feature may be lost because of a format change, cancel and choose the original format if preserving those features matters.
- Confirm which workbook is now open. Look at the title bar. It should show the new name, and your edits should continue in that workbook. The old file may still be present in its original folder: Save As normally makes a new file rather than removing or renaming the old one. Check the new file and its contents before deciding whether to remove the original.
- For a OneDrive or SharePoint workbook, use the available rename option. In some Microsoft 365 desktop layouts, selecting the file name near the top of the Excel window opens a menu with Rename. If you see it, choose that option, enter the new name, and confirm. If it is not available, open the file’s location in OneDrive or SharePoint in a browser and use the file’s Rename command there. Wait for the change to sync, then verify the new name in Excel.
- Check the result before closing the workbook. Make a small, harmless check, such as confirming a recent edit is still present, and save again with Ctrl+S. If you used Save As, verify the new file exists in the selected folder. If you renamed a cloud file, confirm the new name appears in its online location and that Excel no longer shows a syncing warning.
On Mac: In Excel for Mac, use File > Save As, choose the destination and enter the new name. The dialog may label the command Save As or, for a cloud document, offer a copy-related option depending on how the file is stored. The Mac shortcut for Save As is commonly Command+Shift+S; if that shortcut opens a different dialog in your setup, use the File menu. For a local file, expect the original to remain after saving under another name.
In Excel for the web: If the workbook is in OneDrive or SharePoint, select its displayed name at the top of the page and use the rename control if it appears. You can also rename it from the file’s menu in OneDrive or SharePoint. Because the browser version works with cloud files, allow the change to sync and make sure other people who use the workbook know the name or location has changed.
Common Mistakes
- Expecting Save As to remove the old file. Save As generally creates a second workbook. The old name can remain in the folder even though Excel is now working with the new file. Treat the two files as separate until you confirm which one is needed.
- Changing the extension by accident. The extension identifies the file format, not just its label. A workbook containing macros usually needs to remain in
.xlsmformat. If Excel warns that content will be removed or unsupported, stop and check the selected format before saving. - Renaming the file in File Explorer while Excel still has it open. Windows may block the rename, or the open workbook may continue saving to the old path. Use Save As for a local file, or close Excel before renaming it outside the program.
- Saving the new file in the wrong folder. A familiar name in a different folder can be confusing, and shortcuts or linked workbooks may still point to the old location. Check the destination before selecting Save.
- Deleting the original before checking the new one. The new file may have a different format, location, or content than expected. Open or inspect it first and confirm that important sheets, formulas, links, and macros are present.
- Ignoring cloud sync or coauthoring messages. A rename during an upload, connection interruption, or another person’s active editing session can lead to confusion about which version is current. Wait for syncing to finish and resolve any conflict prompt rather than assuming the rename succeeded.
Tips
- Use a name that makes the file easy to identify. Include a project, date, or version label if it helps, such as
Inventory-2026-11. Avoid making several files called “final” without a clear distinction. - Keep the same folder when you only want a new name. This reduces the chance of breaking shortcuts, references, or workflows tied to the current location. Choose another folder only when you also mean to move the workbook.
- Keep a backup before replacing a shared or important file. Save a copy in a safe location if the workbook is business-critical or has collaborators. A backup gives you a fallback if you later discover that the wrong copy was edited.
- Tell collaborators when a cloud file’s name changes. People may have bookmarks, recent-file entries, or links using the previous name. A rename usually keeps the file itself, but links and access behavior can depend on the service and how the link was created.
- Use Save As when the purpose is to create a new version. For example, save a monthly report under a new month’s name while retaining the previous month as an archive. Use the cloud Rename command or rename after closing Excel when the goal is to change the existing file’s name without keeping a second copy.
Troubleshooting
Save As is unavailable or Excel will not save. Check whether the workbook is read-only, protected by permissions, or opened from an attachment or temporary location. Use File > Info to review the status, and save a copy to a folder where you have permission. If Excel displays a message about a password or restricted access, you may need the owner or administrator to grant permission.
Windows says the file is in use when you rename it outside Excel. Cancel the rename, save your work, and close the workbook. If the file still appears locked, close other Excel windows that may have it open and check whether another user or process is using it. Once it is no longer in use, rename it in File Explorer. Reopen the renamed file from its new location.
The new name does not appear in the title bar. Check that you selected Save rather than Cancel, and look in the destination folder for a newly created file. If the title bar still shows the original name, you may have saved a copy without switching to it, or you may be looking at a different open workbook. Close duplicate windows only after saving any changes, then open the intended file directly.
Excel says a file with that name already exists. Choose a different name, or confirm that the existing file is the one you intend to replace before accepting any overwrite prompt. Do not overwrite it just to clear the warning; the existing workbook may contain newer or different work.
The cloud rename fails or the old name remains online. Confirm you are signed in to the correct Microsoft account and have edit permission. Check the OneDrive or SharePoint page for a sync error, wait for the service to reconnect, and retry from the online file menu if necessary. Avoid making separate edits to two copies while sorting out a conflict. If another person is editing, coordinate before retrying.
The renamed workbook opens but macros or features are missing. Check the file extension and the format selected during Save As. If an .xlsm workbook was saved as .xlsx, return to a backup or the original and save a new copy in macro-enabled format. Renaming the extension alone does not convert a file safely.
Frequently Asked Questions
Can I rename an Excel file without closing it?
Yes. For a local Windows workbook, use File > Save As > Browse and save it under the new name. Excel keeps the newly saved workbook open, but the original file usually remains too.
Does Save As rename the original Excel file?
Usually not. Save As creates a separate file with the new name. To change the existing file’s name without keeping a second copy, close the workbook and rename it in File Explorer, or use the rename command for a OneDrive or SharePoint file.
Can I change the name from the Excel title bar?
Sometimes. For certain Microsoft 365 cloud workbooks, selecting the displayed file name may show a Rename option. If the option is missing, rename the file from OneDrive or SharePoint. A local file may not offer this control.
Will renaming the workbook break formulas?
Formulas within the same workbook normally continue to work after a rename. Other workbooks, shortcuts, automation, or external links that refer to the old file name or path may need updating, so check those if the file is shared or linked.
Can I rename an Excel file while someone else has it open?
For a shared cloud workbook, a user with the right permissions may be able to rename it, but coordinate first and wait for changes to sync. For a local file on a shared drive, another person’s open session may block the rename or cause confusion; ask them to save and close it first.
What is the safest way to keep the old workbook as a backup?
Use Save As to create the new name and leave the original in place. Confirm that the new workbook opens and contains the expected information before you archive or remove either file.
Related
- Open Power Query in Excel for the Web: Step-by-Step
- How to Open a SharePoint Excel File in the Desktop App
- Open Excel Online in the Desktop App
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Google Sheets: How to Highlight DuplicatesYes. In Google Sheets, select the cells you want to check, open Format > Conditional formatting, and use…
- How to Delete a Continuous Page Break in WordTo delete a continuous page break in Word, show formatting marks, find the line labeled Section Break (Continuous),…
- Freeze Panes in Excel: Keep Rows and Columns VisibleTo freeze panes in Excel for Microsoft 365 on Windows, select the cell below the rows and to…
- ISBLANK in Excel: Examples and How It WorksIn Excel, ISBLANK checks whether a cell is genuinely empty: for example, enter =ISBLANK(A2) to return TRUE if…
- Autofit Page in Excel: Fit a Worksheet to One PageTo fit an Excel worksheet onto one printed page in Microsoft 365 for Windows, open Page Layout, then…
- Excel Meal Prep Template: Plan Meals, Shop SmarterYes. An Excel meal-prep template can combine a weekly meal plan, recipe quantities, and a grocery list in…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.