π Table of Contents
How Secrets End Up in Spreadsheets
It starts innocently. A "Household admin" sheet with insurance policy numbers. A tab of Wi-Fi and router passwords. A column of passport numbers for a family trip. A shared office sheet with the login for the company's social accounts. Spreadsheets are easy to open on any device and easy to share, which is exactly why they're a poor place for secrets.
A Google Sheet is protected by your Google account and by whoever it's shared with. If any of those accounts is compromised, or the file is shared a little too widely, everything in it is exposed at once. This guide shows how to clean these sheets up properly.
Step 1: Find the Sensitive Cells
Open Edit β Find and replace, choose All sheets, tick Search using regular expressions, untick Match case, and search for:
- Password-like labels:
passw|pwd|login|PIN|passcode|security question - Identity documents:
passport|licen[cs]e|national id|social security|tax id|date of birth - Financial details:
card|IBAN|account n|sort code|routing|CVV|CVC - Long numbers:
\d{12,19}to catch card or account numbers without a label
Don't forget cell notes, comments and hidden tabs. Make a quick list of every place you find something, because you'll need it in Step 3.
For a sheet you'll keep using, add a helper column such as =REGEXMATCH(LOWER(TEXTJOIN(" ", TRUE, A2:H2)), "passw|passport|iban|cvv"). A CleanSheet rule that highlights rows where it returns TRUE makes anything sensitive stand out the moment it's added.
Step 2: Move Each Type to the Right Place
Different secrets belong in different tools. Here's where each kind should go instead:
- Passwords, PINs and logins β a password manager. Password managers encrypt your vault, fill logins for you, and can share individual logins with family or colleagues without exposing the rest. Most can import a CSV, but delete the exported CSV right after importing.
- Card and bank details β nowhere you control, ideally. Your bank's app and your password manager's card storage are better places than a cell. If you only need to recognise which card is which, keep the last four digits.
- Passport, ID and licence numbers, and the scans that go with them β encrypted storage. The number on its own is rarely needed day to day. Usually you want the document itself to hand.
For those document scans and photos, a sheet or a camera roll is the wrong home. On iPhone and iPad, an encrypted vault such as Hushkeeper is one option: it encrypts photos, videos and documents on the device with AES-256-GCM, opens with a pattern, needs no account or email, and imports from Photos and Files. You can keep a "Passports" or "Insurance" folder there and leave only a reference in your spreadsheet, such as "Passport (exp. 2029) β stored in vault".
What can stay in the sheet: renewal dates, policy providers, the last four digits of a number, and where each document is stored. That's enough to run a household or an office without keeping the secrets themselves in a spreadsheet.
Step 3: Delete the Data, Including Version History
Deleting the cells is the easy part. The catch is version history: Google Sheets keeps earlier versions of your file, and anyone with edit access can open File β Version history and see the values you just removed.
To get a genuinely clean file:
- Delete the sensitive cells, columns, notes and tabs you found in Step 1. CleanSheet's clear cell contents action is handy if the data is spread across many rows matching the same rule.
- Use File β Make a copy. The copy starts without the original's version history.
- Check the copy, then re-share it with the people who need it.
- Delete the original file and empty it from your Google Drive trash.
- Update any links or bookmarks that pointed to the old file.
If the sheet was ever downloaded, exported or emailed, those copies need deleting too. And if the sheet held passwords, change those passwords now. You can't be sure who saw them while they sat in a spreadsheet.
Step 4: Keep It From Coming Back
- Add a note at the top of shared sheets: "No passwords, card numbers or ID numbers in this file."
- Keep the flagging column and the highlight rule from Step 1 running on a schedule, so anything sensitive shows up in colour.
- Review sharing every few months, removing people who no longer need access.
- Turn on two-step verification for every Google account that can open the file.
Frequently Asked Questions
Is it safe to keep passwords in a Google Sheet?
It isn't recommended. Anyone who gets into your Google account, or anyone the file is shared with, can read every password in it, and old values stay in version history after you delete them. A password manager is a far safer place.
Does deleting a cell in Google Sheets remove it from version history?
No. Earlier versions of the file still contain the value, and people with edit access can view them in File β Version history. To start clean, delete the data, use File β Make a copy (the copy has no earlier versions), then delete the original and empty your Drive trash.
Where should I keep scans of my passport and ID?
Somewhere encrypted and locked rather than in a spreadsheet, an email inbox or your phone's photo library. An encrypted vault app on your phone keeps the scans to hand while protecting them, and your spreadsheet can simply note where each document is stored.
Related Articles
- How to Find and Mask Personal Data in Google Sheets Before You Share Them
- How to Protect and Lock Cells in Google Sheets from Accidental Edits
- How to Clean Up Google Sheets Data: The Ultimate 2026 Checklist
π§Ή Make Sensitive Data Easy to Spot
Build a CleanSheet rule once and it highlights, clears or archives matching rows on an hourly or daily schedule, without Apps Script.
Install CleanSheet Free