Home / Blog / Find and Mask Personal Data

How to Find and Mask Personal Data in Google Sheets Before You Share Them

πŸ“‹ Table of Contents

  1. Why Shared Sheets Leak Personal Data
  2. Step 1: Find Personal Data in Your Sheet
  3. Step 2: Flag Rows Automatically
  4. Step 3: Mask Values with Formulas
  5. Step 4: Share a Masked Copy, Not the Original
  6. Step 5: Redact Screenshots Too
  7. Frequently Asked Questions

Why Shared Sheets Leak Personal Data

Spreadsheets are where personal data goes to be forgotten. A sign-up sheet gets shared with a volunteer. A lead list goes to a freelancer. A customer export is pasted into a team report "just for this week". Each of these copies carries names, email addresses, phone numbers and sometimes much more, and each one is shared with people who only needed a fraction of it.

The fix isn't to stop sharing spreadsheets. It's to know where the personal data is, mask what the other person doesn't need, and share a copy that only contains what they do.

Step 1: Find Personal Data in Your Sheet

Start by scanning for the obvious patterns. Google Sheets' Find and replace dialog (Edit β†’ Find and replace) has a Search using regular expressions option, which lets you search for patterns rather than exact text. Tick it, set the search to All sheets, and try these one at a time:

Use Find to step through the matches rather than Replace all. The goal at this stage is an inventory: which columns and tabs hold personal data, and which of them the person you're sharing with actually needs.

πŸ’‘ Pro Tip

Check the places people forget: hidden columns, hidden tabs, cell notes and comments. Hiding a column doesn't protect it. Anyone who can open the file can still get at the data, for example by making a copy or downloading it.

Step 2: Flag Rows Automatically

For sheets that keep growing, such as form responses or imported leads, add a helper column that flags rows containing personal data. A simple version uses COUNTIF with wildcards to spot anything that looks like an email address across a row:

=COUNTIF(A2:H2, "*@*.*")>0

For a stricter check on a single column, REGEXMATCH works well. This flags cells containing a long run of digits, ignoring spaces and dashes:

=REGEXMATCH(REGEXREPLACE(TO_TEXT(D2), "[\s-]", ""), "\d{12,19}")

With a Has personal data column returning TRUE or FALSE, CleanSheet can take over: a rule like Has personal data equals TRUE β†’ Highlight row colours every flagged row, and a scheduled run keeps the highlighting up to date as new rows arrive. You can also move or copy flagged rows to a separate restricted tab instead of leaving them mixed in with everything else.

Step 3: Mask Values with Formulas

Masking keeps enough of a value to be useful, such as recognising a customer or matching a record, without exposing the whole thing. Put the masked versions in new columns:

Often the best mask is no column at all. If the recipient only needs counts by region or status, give them a summary built with QUERY or a pivot table instead of row-level data.

Step 4: Share a Masked Copy, Not the Original

Masking columns in the original file isn't enough on its own, because the unmasked columns are still there. Create a separate file for sharing:

  1. Create a new spreadsheet for the recipient.
  2. Copy only the columns they need, including your masked columns, and paste them with Paste special β†’ Values only. This breaks the link to the original formulas, so nothing points back to the full data.
  3. Avoid IMPORTRANGE for this. It pulls data from the source file, and changing the formula could pull in columns you didn't intend to share.
  4. Share the new file with named people, as Viewer or Commenter unless they genuinely need to edit.

Remember that people with edit access to a file can open its version history, which can include values you've since deleted. Another reason to share a fresh copy rather than a cleaned-up original.

Step 5: Redact Screenshots Too

Plenty of spreadsheet data is shared as a screenshot: in a chat, a slide deck, a support ticket or a bug report. Cropping helps, but a stray column of email addresses or a customer's name in the corner is easy to miss.

Before sending a screenshot, cover the sensitive parts. A free in-browser tool for blurring and redacting photos can cover names, card numbers or addresses with a solid box, pixelation or blur, and the image stays in your browser rather than being uploaded. A solid box is the safest choice for text; light blur on small text can sometimes still be read.

Frequently Asked Questions

How do I find email addresses in a Google Sheet?

Open Edit β†’ Find and replace, tick "Search using regular expressions", choose "All sheets" and search for a pattern such as [A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}. To flag rows automatically, add a helper column with =COUNTIF(A2:H2, "*@*.*")>0.

Does hiding a column in Google Sheets protect the data?

No. Hidden columns are only hidden from view. Anyone who can open the file can still get at the data, for example by making a copy or downloading it. Remove the column from the shared copy instead.

What's the safest way to share a spreadsheet that contains personal data?

Create a separate file with only the columns the recipient needs, mask identifiers like emails and phone numbers, paste the data as values only, and share it with named people as a viewer. Keep the original with full data restricted to the people who need it.

Related Articles

πŸ›‘οΈ Keep Sensitive Rows Under Control

CleanSheet highlights, moves or archives the rows your rules flag, on an hourly or daily schedule, so personal data never drifts into the wrong tab.

Install CleanSheet Free