Making an Excel file read-only prevents accidental changes

You can make an Excel document read-only in three ways: by setting file properties in Windows or Mac, by using Excel's built-in protection features, or by saving the file in a read-only format. The method you choose depends on whether you want to block edits completely or just warn people before they make changes. Most people use file properties when they want a simple barrier that stops casual editing, and Excel protection when they need to control which cells can be changed.

Read-only mode is useful when you are sharing a spreadsheet that should not be modified — like a budget template, a reference list, or a completed report. Someone can still open the file and view it, but they cannot save changes to the original unless they deliberately remove the read-only status or save a copy.

Key Takeaways

  • Setting a file to read-only through Windows or Mac properties is the fastest method and works for any Excel version.
  • Excel's built-in protection features let you lock specific cells or sheets while leaving others editable.
  • Saving as an Excel template (.xltx) or PDF makes the file harder to edit accidentally.
  • Read-only status can be removed by the person opening the file, so it is a barrier to casual changes, not a security lock.
  • You must save the file before the read-only setting takes effect.

Setting read-only status through file properties on Windows

The simplest method works on any Windows computer. Right-click the Excel file, select Properties, and look for the Attributes section at the bottom of the General tab. Check the box next to Read-only, then click Apply and OK. The file is now read-only.

When someone opens this file in Excel, they will see a notification bar at the top saying the file is read-only. If they try to edit and save, Excel will ask them to save as a new file instead. This method does not require you to open Excel at all — you handle it entirely through Windows.

The read-only flag can be removed the same way: right-click the file, uncheck the box, and click Apply. Anyone with access to the file can remove this status, so treat it as a courtesy barrier rather than a lock.

Setting read-only status on Mac

On a Mac, right-click the Excel file and select Get Info. Scroll down to the Sharing & Permissions section at the bottom. Click the lock icon if it is locked, then find your username in the list and change the permission from Read & Write to Read only. Close the window — the change takes effect immediately.

Alternatively, you can click the dropdown next to Everyone at the bottom and change it to Read only if you want all users to see the file as read-only. This method is faster if multiple people will open the file.

Using Excel's sheet and cell protection features

If you want more control — for example, to let people edit certain cells but not others — use Excel's protection tools instead. Open the file in Excel, go to the Review tab, and click Protect Sheet. A dialog box will appear with options to choose which actions are allowed (like selecting cells, formatting, or inserting rows). Leave the password field blank unless you want to require a password to unprotect the sheet, then click OK.

This method locks all cells by default but lets you unlock specific ones first. To do this, select the cells you want people to edit, right-click, choose Format Cells, go to the Protection tab, and uncheck Locked. Then protect the sheet. Now only the unlocked cells can be edited.

To protect the entire workbook instead of just one sheet, go to Review and click Protect Workbook. This prevents people from adding, deleting, or renaming sheets, but does not lock the cells themselves.

Saving as a template or PDF to prevent editing

Another approach is to save the file in a format that discourages editing. In Excel, go to File > Save As, and in the Save as type dropdown, choose Excel Template (.xltx). When someone opens a template file, Excel automatically creates a copy instead of opening the original, so the original stays unchanged.

If you want to make the file even harder to edit, save it as a PDF instead. Go to File > Save As, choose PDF from the dropdown, and click Save. A PDF preserves the layout and numbers but cannot be edited as a spreadsheet without special software. This is useful for final reports or reference documents.

What happens when someone opens a read-only file

When a file is set to read-only through file properties, Excel shows a yellow notification bar at the top saying "This file is read-only." The person can still view and copy data, but if they try to edit a cell and save, Excel will prompt them to save as a new file with a different name.

If you used sheet protection instead, the locked cells will not accept edits at all — the cursor will skip over them or show a message saying the cell is protected. Unlocked cells will work normally.

In both cases, the person opening the file can choose to enable editing if they have permission to do so. Read-only status is not a password-protected lock; it is a flag that tells Excel to warn the user before allowing changes.

Removing read-only status when you need to edit

If you set a file to read-only and later need to edit it yourself, the process is simple. On Windows, right-click the file, open Properties, uncheck Read-only, and click Apply. On Mac, open Get Info, change the permission back to Read & Write, and close the window.

If the file is protected with a sheet lock and you did not set a password, click Review > Unprotect Sheet and it will unlock immediately. If a password was set, you will be asked to enter it. If you forgot the password, there is no built-in recovery — you would need to use a third-party tool or recreate the file.

Frequently Asked Questions

Can someone edit a read-only file if they really want to?

Yes. Read-only status set through file properties can be removed by anyone with access to the file. Sheet protection without a password can also be removed in seconds. These methods are meant to prevent accidental changes, not to secure sensitive data. If you need real security, use password-protected sheet locks or save the file in a format like PDF.

What is the difference between read-only and protected sheets?

Read-only is a file-level setting that applies to the whole document. Protected sheets are cell-level settings within Excel that let you lock some cells while leaving others editable. Use read-only for finished documents you do not want changed at all. Use sheet protection when you want people to fill in certain cells but not modify formulas or structure.

If I save a file as read-only, will it stay read-only when someone else opens it?

Yes, if you set the file properties to read-only on Windows or Mac, that status travels with the file. Anyone who opens it will see it as read-only unless they change the properties themselves. Sheet protection also stays with the file.

Can I password-protect a read-only file?

File properties read-only status does not use passwords — it is just a flag. Sheet protection does support passwords. If you want both read-only status and password protection, set the file to read-only through properties, then also protect the sheets with a password in Excel.

What happens to a read-only file if I make changes and try to save?

Excel will show a dialog asking whether you want to save the file with a new name. You cannot overwrite the original read-only file unless you remove the read-only status first. This is by design — it prevents accidental overwrites of files you meant to keep unchanged.