The Wayback Machine - https://web.archive.org/web/20250124212228/https://www.geeksforgeeks.org/how-to-password-protect-a-google-sheet/
Open In App

How to Password Protect a Google Sheet: A Complete Guide

Last Updated: 02 Sep, 2024

S

Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

In today's digital world, protecting your sensitive data is more important than ever. Whether you're managing financial records, personal data, or business information, keeping your Google Sheets secure is crucial. Google Sheets offers several built-in features to protect your data, such as locking cells and setting permissions.

In this article, you will learn how to password-protect your Google Sheets, lock specific cells, and ensure your data remains secure.

How-to-Password-Protect-a-Google-Sheet
How to Password Protect a Google Sheet

Why Password Protect Google Sheets?

Password protection in Google Sheets helps safeguard your data from unauthorized access, accidental edits, and potential breaches. Whether you're working on a shared project, handling sensitive information, or simply organizing personal data, securing your sheets with permissions and locks ensures that only trusted individuals can view or modify your content.

How to Password Protect a Google Sheet

Learn how to protect your Google Sheet with permissions to secure sensitive information and prevent unauthorized edits.

Step 1: Open browser

Open your preferred web browser and search for Google on it.

Step 2: Go to Google Workspace

After loading the Google page, check out Google Workspace and visit Google Sheets.

 Password Protect a Google Sheet
Open browser

Step 3: Choose a blank page

After visiting Google Sheets, click a blank page.

 Password Protect a Google Sheet
Go to Google Workspace

Step 4: Enter Data into the Cells

Mention data or open data that you want to hide

 Password Protect a Google Sheet
Data entry

Step 5: Select data

Select the data tab which you want to protect.

Step 6: Go to “Data” tab and choose “Protect sheets and ranges”

After selecting the tab, look at the "Data" tab at the top of the table. Click on it, and you will see a dropdown menu. From there, select Protect sheets and ranges.

 Password Protect a Google Sheet
Choose “Protect sheets and ranges”

Step 7: Add a sheet or range

After clicking on it, you will see a tab on the right-hand side; there, you will see "add a sheet or range." If you want to protect a sheet, choose "sheet"; if you're going to range, choose "range."

 Password Protect a Google Sheet
Add a sheet or range

Note:

To modify a permission that you have previously specified, choose the current permission and make the necessary changes. You may find it by selecting the Add a Sheet and Range option.

Step 8: Set or change permission

After clicking on the Sheet or range, whatever you have selected here, the Sheet you will see the option of set or change permission. Click Set Permissions if you're adding new permissions for the first time. If you're editing existing permissions, select Change Permissions.

 Password Protect a Google Sheet
Set or change permission

Step 9: Select the permission-based editing limit strategy

You will see a permission tab. The first option will be to Show a warning when editing this range, and the other is to Restrict who can edit this range. There are options underneath:

Only you: Only you and the document's owner have the option to edit.

Only domain: Only the people in your domain can edit.

Custom: Only the people you designate have the option to edit.

 Password Protect a Google Sheet
Select the Permission

Copy permissions from another range: Reuse the same permissions you've set up on another range or Sheet.

 Password Protect a Google Sheet
Choose Who can Edit

Step 10: Click save

Click on the save or done option

 Password Protect a Google Sheet
Save the File

How to Lock Cells in Google Sheets

Locking specific cells in Google Sheets helps prevent unwanted changes while allowing edits in other parts of the sheet.

Step 1: Open your Google Sheet

Navigate to the Google Sheet where you want to lock cells.

Step 2: Select the Cells to Lock

  • Click and drag to highlight the cells you want to protect.
  • You can also select entire rows or columns by clicking on their headers.

Step 3: Right Click on the selected cells and Choose Protect Range

Step 4: Set Permissions

A sidebar will appear on the right side of the screen. Enter a description if you like.

Click on “Set permissions.”

Step 5: Specify who can Edit

  • Choose “Only you” to restrict editing to yourself, or select “Custom” to specify who can edit.
  • If you choose “Custom,” you can add specific users who should have edit permissions.

Step 6: Click Done

Once you have set the desired permissions, click Done.

How to Hide Tabs in Google Sheets from Certain Users

Learn how to hide specific tabs in Google Sheets from certain users by adjusting permissions and using functions like IMPORTRANGE.

Step 1: Create a Separate Sheet

Create a new Google Sheet and share it with the users who should see all tabs.

Step 2: Protect Sheets

  • Go to the original sheet.
  • Right-click on the tab you want to hide.
  • Select "Protect sheet."
  • Set permissions to restrict who can edit the sheet.

Step 3: Use Importrange

In the separate sheet, use the IMPORTRANGE function to pull data from the original sheet’s visible tabs.

For example, =IMPORTRANGE("spreadsheet_url", "Sheet1!A1:Z100").

Step 4: Share the Separate Sheet

Share the new sheet with the users who should only see specific tabs.

Step 5: Adjust Permissions

  • Ensure that the original sheet’s permissions are set so that only you or specific users can view it.
  • Do this by going to "File" > "Share" > "Share with others" and adjusting the settings accordingly.

How to Lock a Google Spreadsheet with a Password

While Google Sheets doesn’t support direct password protection, using Google Apps Script adds an additional layer of security.

Step 1: Open Sheets from Google Workspace application

Turn on the default web browser on your device and switch to Google’s Home page. Open Sheets from the 9 dots menu bar at the top right corner of the home screen.

Password Protect a Google Sheet
Open Sheets from Google Workspace application

Step 2: Select your preferred Sheet

Open a Blank sheet or any other sheet that you want to work on.

Password Protect a Google Sheet
Select your preferred Sheet

Step 3: Click at “Extension” menu bar and choose Apps Script

Click Extensions on the main toolbar and choose Apps Script to launch Google Apps Script.

Password Protect a Google Sheet
Click at “Extension” menu bar and choose Apps Script

Step 4: Launch a fresh deployment

‍Choose "New deployment" after clicking the arrow next to the "Deploy" button.

 Password Protect a Google Sheet
Click on Deploy and Select New Deployment

Step 5: Choose Deploy

‍You will be able to configure the deployment through a box that appears. We can choose not to change these configurations. Select "Deploy."

 Password Protect a Google Sheet
Choose Deploy

Step 6: Permit Apps Script Access

When you execute Google Apps Script for the first time, you will be asked to grant it access. To grant authorised access, click Allow.

 Password Protect a Google Sheet
Permit Apps Script Access

A new window will appear, prompting you to select the Google account to authorize. Select your account.

 Password Protect a Google Sheet
Choose an Account

Note:

A page will load, informing you that Google has not verified the app. However, this app is safe.

Step 7: Click Advanced

Click Advanced, then click Go to ProtectedSheet.

 Password Protect a Google Sheet
Click Advanced

Click Go to Protect Sheet

 Password Protect a Google Sheet
Click Go to Protect Sheet

Step 8: Allow all permissions

You will be sent to a screen with a list of permissions needed to use the application. Click Allow button.

 Password Protect a Google Sheet
Allow all permissions

Step 9: New deployment box open, Click Done

‍The window will close, and you will return to the New deployment box. Click Done.

 Password Protect a Google Sheet
New deployment box open, Click Done

Step 10: Enter the password

Write the passwords and press, ok button.

 Password Protect a Google Sheet
Enter the password

How to Unlock a Google Sheet

Unlocking a Google Sheet involves reversing the permission settings you’ve applied to allow access.

Step 1: Open Sheets from Google Workspace application

Turn on the default web browser on your device and switch to Google’s Home page. Open Sheets from the 9 dots menu bar at the top right corner of the home screen.

Step 2: Select your preferred Sheet

Open a Blank sheet or any other sheet that you want to work on.

Step 3: Choose Protect file

From the top menu, choose Protect file.

Step 4: Tap on Decrypt File

Choose the Decrypt File option.

Step 5: Type secure code

Type your password into the pop-up box that displays.

Step 6: Your Sheet is protected

Your data is now visible to you.

Step 7: Re-encrypt sheet

After you're done, return to the Protect File menu and re-encrypt your Sheet.

Also Read

Conclusion

Following these steps can adequately password-secure your Google Sheets, guaranteeing that only authorized users may see and edit sensitive data. While the Apps Script technique gives greater protection for those acquainted with certain technical processes, the built-in method offers a straightforward option. Always select the approach most closely matches your requirements and degree of comfort.

FAQ's on Password Protect a Google Sheet

Is it possible to password-protect just specific sections of a Google Sheet?

Indeed! Instead of password-protecting the whole page, you may opt to password-protect only cells or ranges inside a sheet. It enables you to conceal sensitive data and transmit genetic information.

Is it possible to conceal a sheet from observers entirely?

Although a password restricts modification, the Sheet is theoretically accessible to anybody with the URL. Modify the shared link's access settings to fully conceal a sheet. Select "Anyone with the link needs permission" to limit the Sheet's viewing to those you have invited.

What happens if my password is lost?

Regretfully, Google Sheets cannot retrieve a lost password for the integrated security feature. Password recovery using the script technique is also impossible while using the apps. It's imperative that you either safely save your password or remember it.


S

News
Improve
Discuss
Do you want to advertise with us?Click here to know more

A

How to Password Protect a Google Drive Folder: Comprehensive Guide

article_img
Google Drive is a popular cloud service provider used by millions of customers worldwide. While Google Drive offers robust protection capabilities, including encryption and two-factor authentication, there may be instances where you need to add an extra layer of security to sensitive documents or folders. Password-protecting a Google Drive folder ensures controlled and secured access to the contents, forming an additional layer of security. Although Google Drive doesn’t offer a built-in feature to password-protect folders, there are several alternative methods available. This article will guide you through the steps to safeguard your Google Drive folders and provide tips to enhance your overall data security. Table of Content How to Password Protect Google Drive Folder on PC (4 Ways)How to Password Protect Using Encrypt Files or Folders and Then Uploading It7-ZipUsing VeraCryptHow to Protect Google Drive Folder Using Folder Protection SoftwarezHow to Share with Password in Google DriveHow to Encrypt Doc Files via Microsoft WordHow to Password Protect Google Drive Folder on PC (4 Ways)Method 1: Encrypt Files or Folders and Then Uploading ItMethod 2: Use Folder Protection SoftwareMet
Read More

How to Protect a Sheet in Excel: Step by Step Guide

article_img
How to Protect a Sheet in Excel- Quick Steps Right Click on the Worksheet Tab Select Protect Sheet >>Enter Password Select the Actions you want to allow the UsersClick OkWhen working with sensitive or shared data in Excel, ensuring the security of specific sheets is essential. Excel sheet protection allows you to safeguard the contents of your worksheet, restricting edits while still enabling other users to view the data. Whether you want to secure a worksheet in Excel or protect an entire workbook, Excel offers multiple methods to maintain data integrity and prevent unauthorized changes. In this guide, we will cover step-by-step instructions for protecting Excel sheets using the context menu and Review tab, securing entire workbooks, and even protecting your Excel files. These techniques will help you keep your data secure while maintaining collaborative efficiency. Disclaimer: Always ensure that you keep your passwords secure and regularly back up your work to avoid data loss or any potential security threats. Table of Content How to Protect a Sheet in ExcelHow to Protect a Excel Workbook How to Protect the Files in Excel How to Protect a Sheet in ExcelProtecting a sheet in
Read More

How To Password Protect A Google Form

article_img
Google Forms is an incredibly versatile tool for gathering information, conducting surveys, and planning events. However, when dealing with sensitive data, it's crucial to ensure that your forms are secure and accessible only to intended respondents. By setting up a simple but effective security layer, you can control who accesses your forms and safeguard the information collected. Here will show you how to add a password to your Google Form, ensuring that only the right people can fill it out. How to Create a Password-Protected Google FormStep 1: Create a Google FormStep 2: Add Questions and Split the FormSplit the form into two sections by clicking on the last option of the menu that appears on the right-hand side of the form (as highlighted in the below image). The option is used to split the form into 2 sections. Step 3: Go to the (+) Icon, Add the Text Field as Password, and Add Password QuestionClick the first icon (+) on the right menu (highlighted in the below image). A text field will pop up, and when you type words like "Password" or "Enter Your Password," it will change to a "Short answer" format automatically. Step 4: Enable Password Field as RequiredEnable the "Require
Read More

How to Password Protect a Google Document

article_img
Google Docs is a widely used free word processor to create, edit, and share documents with multiple people. In Google Docs, the file gets automatically saved on Google Drive cloud storage. Google Docs also takes care of the person who wants to protect his sensitive or personal documents and wants to share the document with only a few people. In this article, we have mentioned three methods and discussed them in brief on how you can protect your Google Docs. Note: The password protection option isn't directly supported for Google Docs. A person's documents are protected by their email account password. There isn't any way to access the document unless you share the document with them or share your email password. Table of Content How to Password Protect a Google Docs How to Password Protect a Google Docs Using Third-Party ExtensionsHow to Password-Protect a Google Docs Document Using Microsoft WordHow To Password Protect Google Docs by Sharing the Document using LinkConclusionFAQ's - Password Protect Your Google DocsHow to Password Protect a Google DocsThe password protection option isn't directly supported for Google Docs. But one can use the below-given method for their reference
Read More

How to Password Protect a Microsoft Word Document?

article_img
Microsoft Word is a software tool that allows us to create document files like articles, office letters, project files, and many more in a very simplest and easy manner. MS Word makes our document more attractive as compared to paper or file work by providing different features like it has different sizes of pages, fonts, colors, design, bullets, tables, charts, page border/number, and many more. It also provides various features like editing, texting, formatting, graphics designs, fonts color, and styles, inserting images, videos, printing documents, etc. This MS Word software saves our article/letters in a form of a document and saves it on the computer forever. Whenever it is required it can be shared or can access the document. Features of MS Word: Images: MS Word provides inserting of various images in our document.Videos: We can insert videos in our documentFonts Styles: It has a wide range of font styles for our text.Colors: It also has different types of colors to make our document more attractive.Page number and size: You can set the size of the page of your documentWordArt: It provides various writing styles for our documents.Tables: Tables in MS Word are used to represen
Read More

How to Password Protect Your Excel Macro?

article_img
It is a best practice, to protect the Macro (VBA Code) from other users to edit or view. In this article, we explain to create a simple macro and protect the same "VBA Project" using a password in Excel from other users. Implementation: Follow the below steps to protect your excel macro with a password: Step 1: Open an excel file, to create a simple “hello world” macro. Step 2: Press Alt + F11 – to open Visual Basic Editor. Step 3: Click Insert >> Module, which will add a new module as in Img1. Step 4: Type the below code in “code window”. Sub firstMacro() MsgBox "Hello World" End Sub Step 5: Right-click “VBAProject (Book1)” and then click “VBAProject Properties”. Step 6: GoTo Protection Tab >> Check “Lock project for viewing” and type your password in both Password and Confirm password input text boxes. Press “OK” Step 7: Save your Excel workbook as Excel Macro-Enabled Workbook (*.xlsm) and close Step 8: Now reopen your excel file. Press Alt+F8 – to open the Macro dialog box. Select the macro “firstMacro” and click “RUN”. Step 9: Our macro will pop up below the message box. Close or press OK to hide the message box Step 10: Press Alt + F11 – to open Visual Basic Editor
Read More

How to Password Protect an Excel File (Windows and Mac)

article_img
How to Lock a Excel Sheet with Password - Quick StepsOpen the Excel file Click on File >>Select Info.Protect Workbook >> Choose Encrypt with Password.Set Password >> confirm your password.Keeping your data secure is a priority, especially when handling sensitive information in Excel. Whether you want to put a password on an Excel file, protect a specific sheet, or secure an entire workbook, Excel provides versatile encryption options to meet your needs. On both Windows and Mac, users can add a password to restrict unauthorized access. Additionally, understanding Excel file encryption and common password protection scenarios can enhance your file security. This guide walks you through step-by-step instructions for setting passwords on Excel files across platforms, highlights Excel password recovery tips, and addresses common issues to keep your data safe. Disclaimer: Always keep your password secure and note that once a file is password-protected, it cannot be recovered without the correct password.Note: The password protection may not work for CSV files in some MS Excel versions. Table of Content Why Password Protect Your Excel Files?How to Set a Password for Exce
Read More

How To Create A Prefilled Google Form From A Google Sheet

article_img
Creating a prefilled Google Form from a Google Sheet helps in sending personalized surveys or registrations. This technique allows you to automatically fill in parts of a form based on the data you already have, saving time and reducing entry errors. In this case prefilled Google forms are your savior. Use this technique once and you are good to go with filling details of a large amount of respondents. It will also help you focus on your prioritized work. On the other hand, it will eliminate human error in creating wrong forms. Let's see how to Create a Prefilled Google Form from a Google Sheet. What is a Pre-Filled Google Form?A pre-filled Google Form is like a form that's already been partially filled out before you even see it. This can make it quicker and easier for you to answer because some of the information is already there. It's handy for things like surveys or sign-up form. Prefilled Google Forms is a hassle-free and time-saving technique that helps you collect data without having repetitive data. Suppose you are an employer and have information about your employees but you want to record more details about your employees like their marital status, kids, etc. Getting all
Read More

How to Protect a Workbook in MS Excel?

article_img
Every day in school, offices, business sectors or any other field lots of information are there that are required to store for the future use. For anyone, it is very difficult to remember that information for a long time. Earlier data and information are stored in a form of a register, file, or paperwork but finding it may be difficult for us. It takes a lot of time. To resolve this issue Microsoft brings a software called MS Excel. Microsoft Excel is a software that allows users to store or analyze the data in a proper systematic manner. It uses spreadsheets to organize numbers and data with formulas and functions. MS Excel has a collection of columns and rows that form a table. Generally, alphabetical letters are assigned to columns, and numbers are usually assigned to rows. The point where a column and a row meet is called a cell. Generally, it is used to keep records, data in various fields of business. Some features of MS Excel: Auto calculate- This helps you to calculate a group of data, and it automatically shows the result in the status area You can also create your own formulas.Shared- You can share your data file over a network.Templates- It gives us a variety of elegantl
Read More

Protect Your Skin And Hair From Harmful Holi Colors: 6 Most-Effective Tips!

Festive seasons allow us to reconnect with our roots, culture, and origins. They free us from our routine life by promoting a common feeling of cheer and enthusiasm amongst us. Festivals help us bid farewell to our problems and enmity while building bonds of affection and cultural harmony. The festival of colors has already arrived and everyone out there is ready for the festival and many events are also filling up places for the same. People are thrilled to welcome Holi, popularly referred to as "The Festival of Colors". Playing Holi is indeed fun, but we cannot overlook certain rules in terms of skin and hair protection (from harmful colors). Holi colors may contain toxic chemicals like copper sulfate, lead oxide, mercury sulfide, and others, which may seep into your skin, resulting in itching, allergies, or a burning sensation. Follow the below-mentioned tips to understand how to protect yourself from the toxic Holi colors. Tip 1: Dress Properly When playing with colors, an appropriate outfit is necessary. For instance, girls can protect most of their skin by wearing a typical white salwar suit that fits them well. While taking everything into account, dressing up is an essentia
Read More
three90RightbarBannerImg