Sub topic 10
Saving Your Work and Choosing a File Format
This chapter assumes you can open a blank workbook, type in cells, and find the File tab. You should also know that a workbook is a file that holds one or more worksheets. Here you will learn how Excel saves files, which format to pick, and which errors to avoid.
What saving does
A workbook that you edit lives in memory until you save it. Saving writes the workbook to a file. The file format decides what that file can hold and which programs can open it.
Excel keeps the format in the file extension, the letters after the final dot in the file name. For example, budget.xlsx uses the extension .xlsx. Excel needs the extension to pick the right format. Changing it by renaming the file in File Explorer or Finder does not convert the contents. It usually makes the file fail to open.
Save, Save As, and AutoSave
You reach all saving commands through the File tab, which opens Backstage view.
| Command | Shortcut | What it does |
|---|---|---|
| Save | Ctrl+S | Writes changes to the current file, using its current name, location, and format. |
| Save As | F12 | Lets you choose a new name, location, or format. The original file stays as it was. |
| Save a Copy | None | In Microsoft 365, saves a copy and keeps you working in the original file. |
The first time you save a new workbook, Excel shows the Save As options even if you chose Save. After that, Ctrl+S saves silently.
Microsoft 365 also has AutoSave, a switch at the left of the title bar. When it is on, Excel saves your changes to the file every few seconds. AutoSave works only for files stored in OneDrive or SharePoint. Because it overwrites the file as you work, make a copy before you try risky edits.
AutoRecover is a different feature. It keeps temporary recovery versions at an interval you set in File > Options > Save, and it helps after a crash. It does not replace saving.
Common file formats
The Save as type list in the Save As dialog box shows every format available. These are the ones you will use most.
| Format | Extension | Use it when |
|---|---|---|
| Excel Workbook | .xlsx | This is the default. It keeps data, formulas, formatting, and charts. It cannot store macros. |
| Excel Macro-Enabled Workbook | .xlsm | The workbook contains VBA macros that you want to keep. |
| Excel Binary Workbook | .xlsb | The file is very large and you want faster opening and saving. |
| Excel 97-2003 Workbook | .xls | You must share with someone using an old version of Excel. |
| Excel Template | .xltx | You want a reusable starting point. Opening it creates a new workbook. |
| CSV (Comma delimited) | .csv | You need plain text to exchange data with other programs. |
| You want a fixed layout for reading or printing, not editing. |
Choosing between them
Start with .xlsx. Change to another format only when you have a specific reason.
- If your workbook has macros, saving as
.xlsxremoves them. Excel warns you first. Choose.xlsmto keep them. - If you share with older software,
.xlsworks but limits you to 65,536 rows and 256 columns per sheet, and some newer features are lost. - If another system needs the data, use
.csv. See the next section for the trade-offs. - If readers only need to view the result, export to PDF so they cannot change it by accident.
What CSV does and does not keep
A CSV file is plain text. Each row of the sheet becomes a line, and commas separate the cells. It is the most portable format, and also the most limited.
- A CSV file holds one worksheet only. Excel saves the active sheet and ignores the others.
- Formulas are not kept. The file stores the values the formulas displayed.
- Formatting, charts, column widths, and colors are lost.
- Leading zeros and long numbers can change when you reopen the file in Excel, because Excel converts text that looks like a number. A code such as
00123can become123.
Some regions use a semicolon instead of a comma, because the comma is their decimal mark. That depends on your system's list separator setting. If the file looks wrong in another program, check this setting first.
Region,Units,Revenue
North,120,4500
South,95,3800This is what a small worksheet looks like inside a .csv file.
Save As dialog options
Next to the Save button, the Tools menu has a few options worth knowing.
- General Options lets you add a password to open the file, or a password to modify it. Without the modify password, others can open the file as read-only.
- Always create backup keeps the previous version as a
.xlkbackup file each time you save.
Passwords in General Options protect the whole file. They differ from workbook structure protection, which only stops people from adding, moving, or deleting sheets. If you lose a file-open password, Excel cannot recover it for you.
Common problems
- "Some features might be lost" message. You chose a format that cannot store something in the workbook. Read the message, then decide whether to keep the format or save as
.xlsxinstead. - The file opens with a "format and extension don't match" warning. The extension was changed by hand, or another program wrote the file with the wrong one. Open the file only if you trust its source.
- A macro workbook lost its macros. It was saved as
.xlsx. Restore it from a backup or AutoRecover version, then save as.xlsm. - Read-only file. Another user or program has it open, or it was marked as final. Use Save As to keep your changes in a new file.
- Save As shows no OneDrive option. You are probably not signed in. Sign in from the account menu in Backstage view.
Practice
Exercise
You open inventory.xlsm, which has a macro that formats a report. A colleague asks for a copy that can be sent by email without any chance of running code. Which format would you choose with Save As, and what does Excel do to the macro?
Show answer
Choose Excel Workbook (.xlsx) with Save As. The .xlsx format cannot store macros, so Excel warns you and removes the macro from the new file. Your original .xlsm file keeps the macro because Save As does not change it.
Exercise
A workbook has three worksheets, with formulas in each. You save it as CSV (Comma delimited). What is in the file, and what would you do to avoid losing your work?
Show answer
The CSV holds only the active worksheet, and it stores the formulas' displayed values, not the formulas. Save an .xlsx copy first so the three sheets and their formulas stay safe. Use the CSV only to send the data out.
Exercise
You turned on AutoSave for a workbook in OneDrive and then deleted a column by mistake. Why is Ctrl+Z not the only thing you should rely on, and what could you have done beforehand?
Show answer
AutoSave writes changes to the file every few seconds, so a mistake can reach the saved file quickly. Undo works for the current session, but you can lose it after closing the file. Before risky edits, use Save a Copy, or use Version History in the File menu to restore an earlier version.