If Excel will not let you edit a workbook, the file is almost always in one of three states: it opened in Protected View, it is marked read-only, or the sheet or workbook is protected. The fastest fix is to click Enable Editing on the yellow bar at the top of the window if it appears. If there is no yellow bar, check the title bar for [Read-Only] or [Protected View] and work through the steps below. Menu labels can differ slightly by Excel version, platform and region, but the paths described here exist in current Microsoft 365 and Excel 2019/2021 builds on Windows and Mac.

What You'll Need

  • The workbook file open in Excel (desktop app, not just the web viewer).
  • Permission to edit the file — either ownership of the file or edit rights shared by whoever sent it.
  • The password for the sheet or workbook, if one was set.
  • Excel updated to a current version (File > Account > Update Options > Update Now on Windows; Help > Check for Updates on Mac).

Step-by-Step

  1. Look for the yellow Protected View bar. When Excel opens a file downloaded from the internet or received as an email attachment, it shows a yellow bar reading PROTECTED VIEW with an Enable Editing button. Click Enable Editing. The workbook becomes editable immediately. If you do not see the bar, go to the next step.
  2. Check the title bar. If it says [Read-Only], the file is open read-only. Try File > Save As and save a copy to your Documents folder under a new name, then edit the copy. If it says [Protected View] and there is no yellow bar, close the file, right-click it in File Explorer (Windows) or Finder (Mac), choose Properties (Windows) or Get Info (Mac), and clear the read-only or quarantine flag if present, then reopen.
  3. Check whether someone else has the file open. If the workbook sits on OneDrive, SharePoint or a network share and another person has it open, Excel opens it read-only. Ask them to close it, or use File > Info to see who has it checked out, then reopen.
  4. Turn off Mark as Final. Go to File > Info. If you see a yellow note saying MARK AS FINAL — This document has been marked as final to discourage changes, click Edit Anyway. That clears the read-only recommendation.
  5. Unprotect the sheet. If you can select cells but typing does nothing, the sheet is protected. Go to Review > Unprotect Sheet. If Excel asks for a password, the person who protected it must supply it; there is no built-in bypass. If you set the password yourself, enter it and click OK.
  6. Unprotect the workbook structure. If you cannot add, delete, rename or move sheets, the workbook structure is protected. Go to Review > Protect Workbook and click it to toggle protection off. Enter the password if prompted.
  7. Check the file's read-only attribute (Windows). Close Excel, right-click the file in File Explorer, choose Properties, and on the General tab clear the Read-only checkbox. Click Apply, then OK, and reopen the file.
  8. Check the file's permissions (Mac). Close Excel, select the file in Finder, press Command+I, and under Sharing & Permissions make sure your account has Read & Write access. Change it if you own the file, then reopen.
  9. Sign out and back in if the file is in OneDrive or SharePoint. In Excel, go to File > Account > Sign out, then sign back in with the account that has edit rights. Reopen the file from the cloud location rather than a local copy.
  10. Save a fresh copy. If none of the above helps, use File > Save As to save the workbook as a new .xlsx file in a local folder. This strips inherited read-only flags and Protected View state from the original download.

Common Mistakes

  • Editing a read-only copy and losing the work. If the title bar says [Read-Only], Excel will not save over the original. Use Save As first so your edits go somewhere permanent.
  • Confusing sheet protection with workbook protection. They are two separate settings under Review. Unprotecting the sheet does not unlock the structure, and vice versa.
  • Assuming a password can be recovered. Excel's sheet and workbook passwords are not recoverable through any official Microsoft tool. If you do not have the password, ask the file's owner.
  • Ignoring the Protected View bar. Many people close the yellow bar without clicking Enable Editing, then wonder why typing does nothing.
  • Editing a file someone else has open on a share. Excel silently opens it read-only in that case. Coordinate with the other user.

Tips

  • Check the title bar first — it tells you which of the three problems you have before you touch any menu.
  • If you only need to make a quick change to a protected file, copy the cells into a new blank workbook and edit there.
  • When you protect a sheet yourself, note the password somewhere safe; Microsoft offers no reset.
  • Keep Excel updated, since Protected View handling and cloud file behaviour change between versions.
  • For files shared with you, confirm you were given Can edit permission, not Can view.

Troubleshooting

If Enable Editing does not appear and the file still will not accept typing, try these in order, simplest first:

  1. Close Excel completely and reopen the file. A stuck Protected View session clears on restart.
  2. Restart the computer, then reopen.
  3. Update Excel, then reopen.
  4. Check that you are signed in with the correct Microsoft account for a cloud file.
  5. Copy the file to a local folder outside OneDrive and open it there to rule out sync locks.
  6. If the workbook is corrupt, open Excel blank, go to File > Open > Browse, select the file, click the arrow next to Open, and choose Open and Repair. This can recover an editable copy; keep the original untouched.

If a password prompt blocks you and you do not have the password, stop there — there is no official way around it. Contact the file's owner or the person who protected the sheet. Clearing app data or reinstalling Excel will not remove a workbook password and risks losing your recent-files list and custom settings.

Frequently Asked Questions

Why can I open the file but not type in it?

Either the sheet is protected (Review > Unprotect Sheet) or the file opened in Protected View (click Enable Editing on the yellow bar). Check the title bar to tell which.

How do I remove read-only from an Excel file?

Clear the Read-only checkbox in the file's Properties on Windows, or set Read & Write permission in Finder on Mac. If the file is on a share and someone else has it open, ask them to close it.

Can I edit a workbook marked as final?

Yes. Go to File > Info and click Edit Anyway. Mark as Final is only a recommendation, not real protection.

What if I do not know the sheet password?

There is no official recovery. Ask the person who set it. Copying the visible cells into a new workbook is the only workaround, and it will not carry over hidden rows or formulas.

Why does Excel open my file as read-only from OneDrive?

Usually because another person has it open, you are signed in with an account that has view-only rights, or the file is checked out. Sign out and back in, or ask the owner to grant edit permission.

Does Open and Repair fix an uneditable file?

It can fix a corrupt workbook that behaves as read-only. It creates a repaired copy; the original stays as it was, so you can always go back to it.