Introduction (Discover-Friendly Hook)
If your Excel file contains salary data, business reports, client details, or personal records, leaving it unprotected is risky. One wrong share—and anyone can open or edit it.
The good news? Excel lets you password protect a file in multiple ways—from blocking access completely to allowing read-only viewing.

And before we start, let’s clear up a common myth 👇
Excel password protection is NOT an OS thing and NOT a hardware or firmware thing.
It’s a built-in Excel software feature, controlled entirely inside Microsoft Excel.
How to Password Protect an Excel File From Opening (Most Secure)
This method prevents anyone from opening the file without a password.
Steps (Windows & Microsoft 365)
- Open the Excel file
- Click File → Info
- Select Protect Workbook
- Click Encrypt with Password
- Enter a strong password → Confirm → Save
✅ Without the password, the file won’t open at all.
How to Password Protect an Excel File in Microsoft 365
Microsoft 365 users get the same security, plus cloud support.
- Open Excel (Microsoft 365)
- Go to File → Info
- Click Encrypt with Password
- Save the file
Works on:
- Windows
- Mac
- OneDrive
- SharePoint
How to Password Protect an Excel File From Editing (Read-Only Access)
Want people to view but not change your data? This is the best option.
Steps
- Open Excel
- Go to File → Save As
- Click Tools → General Options
- Set:
- Password to open (optional)
- Password to modify (recommended)
- Save
🔒 Users can open the file but must enter a password to edit.
How to Password Protect an Excel File but Allow Read Only
This is perfect for reports and shared dashboards.
- Set Password to Modify
- Leave Password to Open empty
- Save the file
Users can:
✅ View data
❌ Edit cells without permission
How to Password Protect an Excel File on Mac
Mac users aren’t left out 🍎
Steps (Excel for Mac)
- Open the file
- Click File → Passwords
- Set:
- Password to open
- Password to modify
- Save
Works the same way as Windows.
How to Password Protect an Excel File in SharePoint
SharePoint relies on file permissions, not traditional passwords.
Best Practice
- Upload Excel file to SharePoint
- Right-click file → Manage Access
- Set:
- View only
- Edit permissions
- Remove unwanted users
🔐 Security is handled by Microsoft account access.
How to Password Protect an Excel File on OneDrive
OneDrive also uses account-based security.
Option 1: Excel Password
- Password-protect the file before uploading
Option 2: OneDrive Sharing Control
- Right-click file
- Click Share
- Choose Can view or Can edit
- Disable download if needed
Important: This Is NOT an OS or Hardware Firmware Thing
Unlike display issues or screen borders:
- ❌ This is NOT controlled by Windows or macOS
- ❌ Not related to hardware firmware
- ❌ Not affected by GPU or system settings
✅ Excel password protection is 100% software-level and app-based
(For comparison, issues like screen capture borders are hardware/firmware related—see below 👇)
Helpful Internal Reads
You may also like:
- 🔗 How to Get Rid of Yellow Border Around Screen in Windows 10
- 🔗 How to Change Default Browser on Mac (Monterey, Catalina & Sequoia)
- 🔗 How to Move Columns in Excel Without Breaking Your Data
Quick Answers (Featured Snippet Style)
How do I password protect an Excel file from opening?
Use File → Info → Encrypt with Password and save the file.
Can I allow read-only access in Excel?
Yes, set a Password to Modify and leave open access enabled.
FAQs (Short AI Overview Snippets)
How to password protect an Excel file in Microsoft 365?
Use Encrypt with Password under File → Info.
How to password protect an Excel file on Mac?
Go to File → Passwords and set open or modify passwords.
How to password protect an Excel file in SharePoint?
Use SharePoint’s Manage Access permissions.
How to password protect an Excel file on OneDrive?
Password-protect before upload or control sharing permissions.
Conclusion
Excel makes it easy to protect sensitive data—whether you want to block access entirely, limit editing, or allow read-only viewing.
Just remember:
Excel file security is application-based, not OS-based or hardware-firmware controlled.
Set it once, save securely, and share with confidence.