Excel cannot access a read-only or encrypted file because of one of four things: the file is marked read-only in its properties, it sits in a protected or synced folder (OneDrive/SharePoint) that has restricted permissions, it is encrypted with a password or rights-management (IRM) protection that your account is not authorised to open, or Excel's Protected View is blocking it. The quickest fix is to copy the file to a local folder such as Documents, right-click it and clear the Read-only attribute, then open it and enter the password or request access from the owner. The steps below walk through each cause in order, from safest and simplest to the ones that change permissions.
What You'll Need
- The file in question, plus its exact location (local drive, network share, OneDrive, SharePoint, email attachment or USB stick).
- An account that is allowed to open the file. If someone else owns it, you may need them to grant access or share the password.
- Excel for Windows or Mac, or Excel for the web, signed in with the same account that has permission.
- Administrator rights on the PC only if you need to change folder permissions or Trust Center settings.
Step-by-Step
- Identify the exact error wording. "Cannot access read-only document" usually means a file-attribute or permission problem. "The file is encrypted" or "password protected" means the workbook itself is locked. "Protected View" means Excel is refusing to open a file from an untrusted location. The wording tells you which of the following steps applies, so note it before changing anything.
- Copy the file to a local folder. Right-click the file and choose Copy, then paste it into your Documents folder (or Desktop) and open the copy. Files on network shares, email attachments, USB drives and synced cloud folders are the usual triggers for read-only errors. If the copy opens normally, the problem is the original location, not the workbook.
- Clear the Read-only attribute (Windows). Right-click the file, choose Properties, and on the General tab look at the Attributes section at the bottom. If Read-only is ticked, untick it, click Apply, then OK. On a Mac, select the file, press Command+I, and under Sharing & Permissions check that your account has Read & Write. If the checkbox is greyed out or the change fails, you do not have permission to modify the file and must ask the owner.
- Check folder permissions. If the whole folder is read-only to you, the file will be too. Right-click the folder, choose Properties > Security, and look at your account in the list. You need at least Read; to save changes you need Modify or Full control. On a Mac, use File > Get Info > Sharing & Permissions. If your account is missing or only has Read, ask the folder owner or IT administrator to grant Modify. Menu labels differ slightly between Windows versions and between Windows and macOS, so look for the closest match.
- Open the file from inside Excel instead of double-clicking it. Launch Excel first, then use File > Open > Browse and select the file. This bypasses some Protected View and file-association problems, and it lets you see the real error message rather than a generic "cannot access" prompt.
- Enter the password if the workbook is encrypted. If Excel prompts for a password, type it exactly, including capitals. If you do not know it, there is no built-in way to recover it; ask the person who created the file. Do not use password-cracking tools or "unlocker" downloads, which are a common source of malware.
- Request access to rights-managed files. Workbooks protected with Information Rights Management (IRM) or sensitivity labels show a message that you are not authorised. Use the Request Permission option if it appears, or contact the file owner or your organisation's IT help desk. Only the owner or an administrator can grant access; changing file properties will not help.
- Adjust Protected View if the file came from the internet or email. In Excel, go to File > Options > Trust Center > Trust Center Settings > Protected View. If you trust the source, you can untick the relevant option, or click Enable Editing in the yellow bar when the file opens. Only do this for files you are certain are safe; Protected View exists to block malicious documents.
- Check OneDrive and SharePoint sync status. If the file is in a synced folder, look at the cloud icon in File Explorer. A red X or a "read-only" sync state means the file is not fully downloaded or your account lacks edit rights. Open the file in the browser version of Excel to confirm whether the problem is local sync or the online permission. Signing out of OneDrive and back in often clears a stuck sync state.
- Save a copy under a new name. If you can open the file but cannot save changes, use File > Save As and save to your local Documents folder with a new name. This works around read-only source files and gives you an editable version, though you must remember to share or upload the copy yourself.
Common Mistakes
- Changing the Read-only checkbox on a file you do not own. The change silently fails or reverts, and you waste time repeating it.
- Disabling Protected View for all files instead of just the one trusted file. That removes a real security layer for every document you open.
- Assuming "encrypted" means "corrupted". An encrypted workbook is intact; it just needs the password or permission.
- Downloading third-party "Excel password remover" or "read-only fixer" tools. These are frequently malware and never the official route.
- Editing a file on a USB stick or network share directly. Copy it locally, edit, then copy it back.
Tips
- Keep working files in a local folder and only sync finished versions to the cloud; this avoids most read-only surprises.
- When someone sends a workbook, ask whether it is password-protected before you try to edit it.
- Use File > Info to see at a glance whether a workbook is marked as Read-Only, Protected or Encrypted.
- If a file opens read-only every time, check whether the folder is set to sync as "online-only" in OneDrive; right-click and choose Always keep on this device.
Troubleshooting
If the file still will not open after the steps above, work through these checks in order. First, restart Excel and the PC; a stuck lock file (a hidden file starting with ~$ next to the workbook) can keep a document read-only. Close Excel, delete that lock file if you are sure no one else has the workbook open, and try again. Second, sign out of your Microsoft account in Excel and sign back in, which refreshes permissions for OneDrive and SharePoint files. Third, try opening the file in Excel for the web; if it opens there, the problem is local to your desktop app, and repairing Office (Settings > Apps > Microsoft 365 > Modify > Quick Repair) is the next step. Fourth, if the file is on a company network, ask IT whether the share or the file has been restricted; you cannot override server-side permissions from your PC. Finally, if the workbook opens but every edit is blocked, check Review > Protect Workbook and Review > Protect Sheet; these are separate from file encryption and are removed by the person who set them, not by changing file properties.
Frequently Asked Questions
Why does Excel say read-only when the file is not ticked as read-only?
The folder or network share is probably read-only for your account, or the file is synced from OneDrive in online-only mode. Copy it locally and check folder permissions.
Can I open an encrypted Excel file without the password?
No. Excel encryption is real encryption; without the password or the rights-management permission, the file cannot be opened. Ask the owner for the password or access.
Does clearing the Read-only attribute remove a password?
No. The Read-only attribute and workbook encryption are unrelated. Clearing the attribute only lets you save changes to an unencrypted file.
Why can I open the file in the browser but not in desktop Excel?
Your desktop app may be signed in with a different account, or Protected View is blocking it. Sign out and back in, and check the Trust Center settings.
Is it safe to disable Protected View?
Only for specific files you trust. Disabling it globally removes protection against malicious documents, so prefer Enable Editing on the yellow bar.
What if the file is on a USB drive and opens read-only?
Copy it to your Documents folder, edit the copy, then copy it back. USB drives and network shares are common causes of read-only behaviour.