How to Encrypt an Excel Spreadsheet with a Specific Key
Question details
The user wants to know if it is possible to encrypt a spreadsheet using a specific, vendor-supplied encryption key rather than a standard text password.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Securing sensitive spreadsheet data with advanced encryption methods, such as a vendor-specific key or digital certificate, to comply with custom security requirements.
- Observed behavior
- Excel only offers password-based encryption natively and does not provide a built-in feature to directly import a vendor-supplied encryption key.
Ensure you securely document any password or encryption key you plan to use, as Microsoft Excel and Windows cannot recover encrypted files if the credentials are lost.
Use Built-in Excel Password Encryption
Since Excel does not support importing custom keys directly, using its built-in password encryption feature is the standard way to protect your workbook.
Excel relies on AES encryption tied to a user-generated password rather than external encryption keys. This built-in security is robust and sufficient for most data protection needs.
Open your spreadsheet in Excel, navigate to the 'File' tab in the top-left corner, and click on 'Info'.
Click the 'Protect Workbook' dropdown menu and select 'Encrypt with Password'.
In the pop-up dialog box, type your secure password and click 'OK'.
Re-enter the exact same password in the confirmation box and click 'OK' to finalize the encryption.

Encrypt the File Using Windows Encrypting File System (EFS)
If you must use a certificate or specific encryption key, you can utilize Windows File Explorer's built-in file encryption instead of Excel's native tool.
Protect Your Spreadsheets with WPS Office
WPS Office offers intuitive, robust password encryption to keep your sensitive spreadsheet data completely secure. It is a highly compatible and lightweight alternative for all your document needs.
- 1. Open WPS Spreadsheets: Launch WPS Office and open the spreadsheet you want to encrypt.
- 2. Navigate to Document Encryption: Click on the 'Menu' button in the top-left corner, hover over 'Document Encryption', and select 'Encryption'.
- 3. Set Document Password: In the encryption dialog box, enter your desired password in the 'Document Password' field.
- 4. Confirm and Save: Re-enter the password to confirm, click 'OK', and save your file to apply the encryption.

Frequently Asked Questions
Can I import a PGP or GPG key directly into Excel?
No, Excel does not support importing third-party encryption keys directly. To use PGP or GPG keys, you must use external encryption software (like Gpg4win) to encrypt the saved .xlsx file.
What happens if I forget the password used to encrypt my Excel file?
If you lose or forget the password, Excel cannot recover the file. You will permanently lose access to the data, making it critical to store your passwords in a secure password manager.
Are password-protected Excel files secure?
Yes, modern versions of Excel (2013 and later) use AES-256 bit encryption, which is industry-standard and highly secure, provided you use a strong, complex password.
Why is the 'Encrypt with Password' option missing or grayed out?
The encryption option may be disabled if your workbook is stored on SharePoint or OneDrive with specific co-authoring settings enabled, or if your organization's IT policies restrict manual encryption via Information Rights Management (IRM).




