To protect an Excel sheet or workbook with a password, follow these steps:
- Go to File > Info > Protect Workbook.
- Select Encrypt with Password.
- Enter the password in the corresponding box.
- Click OK and enter the password again when prompted.
- Save the workbook.