Data Protection Issues

How to Encrypt an Excel Spreadsheet with a Specific Key

Nimra MalikNimra Malik Nov 3, 2026 869 views

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.

How to Encrypt an Excel Spreadsheet with a Password or Specific Key
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.
Before you start

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.

Solution 1Recommended

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.

1
Open File Info

Open your spreadsheet in Excel, navigate to the 'File' tab in the top-left corner, and click on 'Info'.

2
Access Protection Options

Click the 'Protect Workbook' dropdown menu and select 'Encrypt with Password'.

3
Set the Password

In the pop-up dialog box, type your secure password and click 'OK'.

4
Confirm the Password

Re-enter the exact same password in the confirmation box and click 'OK' to finalize the encryption.

Use Built-in Excel Password Encryption
Password Recovery: Microsoft cannot retrieve forgotten passwords. Always maintain a secure backup of your passwords.
Secure Your Data with WPS Office

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. 1. Open WPS Spreadsheets: Launch WPS Office and open the spreadsheet you want to encrypt.
  2. 2. Navigate to Document Encryption: Click on the 'Menu' button in the top-left corner, hover over 'Document Encryption', and select 'Encryption'.
  3. 3. Set Document Password: In the encryption dialog box, enter your desired password in the 'Document Password' field.
  4. 4. Confirm and Save: Re-enter the password to confirm, click 'OK', and save your file to apply the encryption.
Seamless compatibility with Microsoft Excel formats (.xlsx, .xls)Bank-level 128-bit file encryption to protect sensitive dataLightweight architecture that runs smoothly on low-spec devicesFree to download and use for essential office tasks
QA img-9

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).