Viewing Mode Excel: How to Switch and Protect Data
In this article
To switch to viewing mode in Excel, the most effective method is to use the "Read-Only" feature or protect the worksheet. Because Excel does not have a single "Viewing Mode" toggle like some cloud-based document editors, you achieve this by restricting editing permissions or opening the file in a read-only state. This prevents accidental data entry, formula deletion, or formatting changes while allowing you to analyze the data freely.
What You'll Need
- A computer with Microsoft Excel installed (Windows or macOS) or a web browser for Excel Online.
- An existing Excel workbook (.xlsx, .xls, or .xlsm).
- Administrative permissions for the file (if you intend to set it as read-only for other users).
Step-by-Step
Depending on whether you want to protect the file permanently or simply enter a temporary viewing state, choose one of the following methods. Note that menu labels may differ slightly based on your version of Excel, your operating system, or your region.
Method 1: Opening a File as Read-Only
This is the best method if you want to ensure you don't accidentally change a file while reviewing it. This setting is handled at the file system level rather than inside the Excel ribbon.
- Close the Excel file if it is currently open.
- Open your File Explorer (Windows) or Finder (macOS) and locate the folder containing your spreadsheet.
- Right-click on the file icon to open the properties menu.
- On Windows, select Properties. In the General tab, look for the "Attributes" section at the bottom and check the box labeled Read-only. Click OK.
- On macOS, select Get Info. Under the "General" section, check the box for Locked.
- Double-click the file to open it. Excel will now open the document in a read-only state. You will see "Read-Only" in the title bar at the top of the window.
Method 2: Using "Always Open Read-Only" (Internal Excel Setting)
This method prompts anyone who opens the file to enter viewing mode, though they can choose to bypass it if they have the password or permissions.
- Open your Excel workbook.
- Click on the File tab in the top-left corner of the ribbon.
- Navigate to the Info section.
- Click the Protect Workbook button.
- From the dropdown menu, select Always Open Read-Only.
- Save the workbook to apply the changes. The next time the file is opened, Excel will ask the user if they want to open it as read-only.
Method 3: Protecting the Sheet to Prevent Edits
If you want to allow users to see the data but prevent them from clicking into cells and changing values, sheet protection is the most precise tool.
- Open the worksheet you wish to set to viewing mode.
- Go to the Review tab on the top ribbon.
- Click on Protect Sheet.
- A dialog box will appear. You can enter a password here if you want to prevent others from turning off the protection. If you leave it blank, anyone can unprotect the sheet.
- In the list "Allow all users of this worksheet to:", uncheck Select locked cells if you want a true viewing mode where cells cannot even be highlighted. Keep Select unlocked cells checked if there are specific areas you still want people to interact with.
- Click OK. The sheet is now effectively in viewing mode for all locked cells.
Method 4: Excel Online "Viewing" Permission
For files stored on OneDrive or SharePoint, you can set the access level to "View" instead of "Edit" for collaborators.
- Open the file in Excel Online.
- Click the Share button in the top-right corner.
- Click on the Share option or the settings gear icon to manage link permissions.
- Under the "More settings" or "Link settings" section, change the permission from Can edit to Can view.
- Click Apply and send the link to your collaborators. They will now be restricted to viewing mode and cannot make changes to the live document.
Common Mistakes
One of the most frequent errors is confusing "Read-Only" with "Protected View." Protected View is a security feature that triggers when you open a file from the internet or an email attachment; it is not a mode you manually toggle for productivity. Another mistake is protecting the Workbook Structure instead of the Worksheet. Protecting the workbook prevents users from adding, deleting, or renaming tabs, but it does not stop them from editing the data inside the cells. To stop cell edits, you must use the Protect Sheet command.
Users also often forget to save the file after selecting "Always Open Read-Only." Because this is a file property change, the setting will not persist if the workbook is closed without saving. Additionally, some users apply a password to the sheet protection but forget to record it. Since Microsoft cannot recover forgotten passwords for protected sheets, this can lead to permanent loss of editing capabilities for that specific file.
Tips
To create a professional viewing experience, combine sheet protection with the hiding of gridlines. Go to the View tab and uncheck Gridlines. This makes the spreadsheet look more like a static report or a dashboard rather than a data entry table. If you have a large dataset, you can also use the Freeze Panes feature (found under the View tab) before switching to viewing mode. This ensures that your headers remain visible as the viewer scrolls through the data.
If you only want certain cells to be editable (like a form where users enter their name but cannot change the questions), select those specific cells, right-click, choose Format Cells, go to the Protection tab, and uncheck Locked. Then, apply the Protect Sheet command. The "Locked" status of a cell only takes effect once the sheet is protected.
Troubleshooting
If you have set a file to read-only but find you can still edit the cells, check if you are the owner of the file. In some local network environments, the file creator has overriding permissions. Try saving a copy of the file under a different name to see if the read-only restriction applies to the copy.
If the "Protect Sheet" button is greyed out, ensure that you are not currently in "Cell Edit Mode." If your cursor is blinking inside a cell, many ribbon options are disabled. Press Enter or Esc to exit the cell and try again. If the file is shared via a Co-authoring session in OneDrive, some protection features may behave differently; ensure all other users have closed the file or that you have the primary ownership rights to apply restrictions.
If you are using Excel Online and the "Can View" permission isn't working, verify that the user isn't signed into an account that has "Owner" or "Editor" permissions at the folder level. Folder-level permissions in SharePoint often override individual file permissions, granting the user edit access regardless of the file's specific setting.
Frequently Asked Questions
Can I switch back to editing mode easily?
Yes. If you used the File Explorer method, right-click the file, go to Properties, and uncheck "Read-only." If you used Protect Sheet, go to the Review tab and click "Unprotect Sheet." If a password was set, you will need to enter it.
Does viewing mode stop others from copying my data?
No. While viewing mode prevents people from changing the data, it does not stop them from selecting cells and copying the content to another workbook. To prevent copying, you would need more advanced Information Rights Management (IRM) settings available in enterprise versions of Office 365.
Is there a keyboard shortcut for viewing mode?
There is no single shortcut to toggle viewing mode. However, you can use Alt + R + P + S (on Windows) to quickly navigate to the Protect Sheet menu via the ribbon shortcuts.
Will viewing mode disable my macros?
Read-only status does not automatically disable macros, but it may prevent a macro from saving changes back to the file. If a macro is designed to update a cell value, it will trigger an error if the sheet is protected or the file is read-only.
Does this work on the Excel mobile app?
Yes, but the options are limited. On mobile, you can open a file as read-only if it is stored in a cloud location with "View Only" permissions. You cannot easily access the "Properties" menu of the local file system to set a read-only attribute as you can on a desktop.