Where Excel keeps backup copies of your work

Excel automatically saves versions of your file in the background, but only if you have turned on AutoRecover in your settings. When you close a file without saving, or your computer crashes, Excel stores a temporary copy that you can retrieve. The location of this backup depends on which version of Excel you use and your operating system.

On Windows with Excel 2016 or later, look in C:\Users\[Your Username]\AppData\Local\Microsoft\Office\UnsavedFiles. On a Mac, the path is ~/Library/Containers/com.microsoft.Excel/Data/Library/Application Support/Microsoft/Office/UnsavedFiles. These folders hold files that Excel was working on when it closed unexpectedly. If you saved the file at least once before losing it, Excel also keeps numbered backups — look for files ending in .xlk in the same folder as your original file.

Key Takeaways

  • AutoRecover must be turned on in Excel settings for backups to exist; check your settings now if you have not already.
  • Unsaved files appear in your system's temporary folder, which you can reach through File > Open > Recent or by navigating the file path directly.
  • Files you saved at least once create numbered backup copies (.xlk files) in the same folder as the original.
  • If local backups do not exist, check OneDrive or your cloud storage for version history, which may show older copies of the file.
  • Windows File Recovery and Mac Time Machine can restore files deleted from your hard drive, but only if you act before the space is overwritten.

Recovering an unsaved file through Excel's Open dialog

The fastest way to find an unsaved file is through Excel itself. Open Excel and go to File > Open > Recent. At the bottom of the Recent list, you will see a button that says Recover Unsaved Workbooks (on Windows) or Open Recent > Show All (on Mac). Click it to see all files Excel has stored in its temporary folder.

If you see your file in that list, click it to open it. Excel will open the recovered version in a new window. You must save it immediately with a new name or in a new location — do not overwrite the original file path until you confirm the data is correct. Once you save it, the temporary copy is deleted.

If the file does not appear in the Recover Unsaved Workbooks list, it means AutoRecover was not enabled when you lost the file. You will need to use one of the other methods below.

Turning on AutoRecover so you do not lose work again

AutoRecover is not on by default in all versions of Excel. To turn it on, go to File > Options > Save (Windows) or Excel > Preferences > Save (Mac). Look for the checkbox that says Keep the last AutoRecovered version if I close without saving. Check that box and set the time interval — most people use 10 minutes, which means Excel saves a backup every 10 minutes whether you click save or not.

Also check the box for AutoRecover file location and note where it points. This is where your backups will be stored. On Windows, you can also set Save AutoRecover information every X minutes to a shorter interval if you work on important files and want more frequent backups.

These settings only protect new work going forward. They do not recover files you have already lost.

Finding backup files in your file system

If you saved your Excel file at least once before losing it, Excel created a backup copy with a .xlk extension. This file sits in the same folder as your original file. To find it, open File Explorer (Windows) or Finder (Mac) and navigate to the folder where you normally save Excel files. Look for a file with the same name as your lost file but ending in .xlk instead of .xlsx or .xls.

If you see the .xlk file, right-click it and select Open with > Microsoft Excel. The file will open as a read-only copy. Save it with a new name in your normal location. If you do not see a .xlk file, it means the original file was never saved, and you will need to check your cloud storage or use file recovery software.

Note that .xlk files are only created if you have the Always create backup file option turned on. Check this in File > Options > Save (Windows) or Excel > Preferences > Save (Mac). If it is off, no .xlk file was created.

Checking OneDrive or SharePoint version history

If you save your Excel files to OneDrive, Microsoft 365, or SharePoint, you can see older versions of the file even if your local copy is gone. Open OneDrive in your web browser, find the file, right-click it, and select Version history. You will see a list of all saved versions with timestamps. Click the version you want to restore, and OneDrive will show you a preview. If it contains the data you need, click Restore to replace the current file with that version.

This method works only if the file was synced to the cloud before you lost it. If you never saved the file to OneDrive, this option is not available. Also note that version history is kept for 93 days by default in OneDrive; older versions are deleted automatically.

Using Windows File Recovery to restore a deleted file

If you deleted an Excel file from your hard drive and emptied the Recycle Bin, you can still recover it using Windows File Recovery, a free tool from Microsoft. Download it from the Microsoft Store, then open Command Prompt as an administrator. Type the command winfr C: D: /n *.xlsx (replace C: with your drive letter and D: with where you want to save recovered files). Windows will scan your hard drive for deleted Excel files and restore any it finds.

This method works only if the space where the file was stored has not been overwritten by new data. The longer you wait after deleting the file, the less likely recovery becomes. Do not save new files to the drive while recovery is in progress.

Using Mac Time Machine to restore from a backup

If you use Time Machine on a Mac, you can restore a deleted Excel file from an earlier backup. Click the Time Machine icon in the menu bar and select Enter Time Machine. Use the timeline on the right side to navigate to a date when the file still existed. When you find it, select the file and click Restore. Time Machine will copy the file back to its original location.

This method requires that Time Machine was running and backing up your Mac before you lost the file. If you have never set up Time Machine, no backups exist and this method will not work.

Frequently Asked Questions

Can I recover an Excel file if I never saved it?

Only if AutoRecover was turned on. Check File > Open > Recent > Recover Unsaved Workbooks to see if Excel stored a temporary copy. If nothing appears there, the file is not recoverable through Excel. You can try Windows File Recovery or Mac Time Machine if you deleted it from your hard drive, but if you simply closed the file without saving, no copy exists.

How long does Excel keep AutoRecover files?

By default, Excel keeps the most recent AutoRecover file. If you close Excel without saving, the AutoRecover file is deleted. If Excel crashes or your computer loses power, the AutoRecover file is kept and you can recover it the next time you open Excel. Once you open the file and save it, the AutoRecover copy is deleted.

What is the difference between AutoRecover and backup files?

AutoRecover saves a temporary copy every few minutes while you work, but only keeps the most recent version. Backup files (.xlk) are created only when you save, and they store the previous version of your file. Both require you to turn them on in settings first.

Will recovering an old version overwrite my current file?

Only if you save it to the same location with the same name. When you recover a file, always save it with a new name or in a new folder first. Once you confirm the recovered version contains the data you need, you can decide whether to replace the current file or keep both.

Can I recover an Excel file from a shared drive or network folder?

AutoRecover and backup files are stored on your local computer, not on the network drive. However, if the shared drive has its own backup system (common in corporate environments), your IT department may be able to restore an older version. Ask your IT support team whether the drive is backed up and how far back they can restore.