// blog / how-to-redact-in-excel.md

how-to-redact-in-excel.mdARTICLE

Excel doesn’t have a redaction feature. To redact an Excel spreadsheet, you have to replace or delete the sensitive values themselves, then clear out the hidden data Excel keeps behind the scenes with File > Info > Check for Issues > Inspect Document. If the recipient only needs to read the data, the safest route is to export the sheet to PDF and redact the PDF.

Most people start with a black cell fill or white font, or they simply hide the column. None of that removes anything. The data stays in the file, and anyone can bring it back in two clicks. The sections below cover why those shortcuts fail, where Excel stores data you may not know about, and the steps that actually take it out.

Can You Redact in Excel?

Not with a built-in command. Excel has no “redact” button, and none of its formatting or protection features delete data. Microsoft is clear about this: worksheet-level protection isn’t intended as a security feature. It only stops people from editing locked cells.

Here's what the usual shortcuts leave behind:

What people tryWhat the recipient seesWhat’s still in the fileHow to get it back
Black cell fillA black cellThe full valueClick the cell and read the formula bar
White fontAn empty cellThe full valueClick the cell, or change the font color
Custom format ;;;An empty cellThe full valueClick the cell, or reset the format to General
Hidden column, row or sheetNothingEvery hidden valueRight-click > Unhide
Protected sheet with hidden formulasLocked cellsThe values and formulasRemove the protection; it isn’t encryption
Deleting the columnNothingPossibly copies in PivotTable caches, charts and version historyRefresh a PivotTable, open an old version
Overwriting the values, then running Document InspectorMasked or blank cellsNothing, if done fullyCan't be recovered

Of the seven methods, only the last one removes data. The other six change how a cell looks and nothing more.

Word users fall into the same trap with black highlighting. If you redact documents too, our guide on how to redact in Word walks through the fix there.

Where Excel Hides Data You Didn't Mean to Share

An .xlsx file carries a lot more than the grid on your screen. Microsoft’s Document Inspector checks Excel files for more than a dozen kinds of hidden content. Start with these:

  • Hidden rows, columns and worksheets. The classic leak is a “clean” summary tab with the raw data one Unhide away.
  • Defined names. Named ranges can point to cells or values you've already removed from view.
  • Comments and notes. Reviewers often paste names, figures or the reasoning behind a number into them.
  • PivotTable, slicer and PivotChart caches. A PivotTable keeps its own copy of the source data inside the file. Delete the source sheet, and the cache can still hold it.
  • Document properties. Author, company, “last modified by” and file paths travel with the file.
  • Headers and footers. They only show in Page Layout view or print preview, which is why people forget them.
  • External links and data connections. Formulas and queries can reveal server names, file paths and other workbooks.
  • Invisible objects. Shapes, text boxes or images set to invisible.

The Document Inspector won’t help with two more:

  • Version history. If the file lives in OneDrive or SharePoint, earlier versions with the original data may still be open to anyone with access.
  • Formatting tricks. Values hidden with white font or a ;;; format still sit in the cells. Check for these yourself instead of trusting the inspector to flag them.
get-startedFREESECURE

Sending the numbers, not the spreadsheet?

Export the sheet to PDF and let PDFized find and permanently remove the names, SSNs and account numbers – free to start.

Start Redacting – Free

How to Redact an Excel Spreadsheet: Step by Step

Every step below has one job: get the sensitive values out of the file itself. Work through them in order.

  1. Work on a copy. Use File > Save As and redact the new file. Microsoft also recommends running the Document Inspector on a copy, because removed data can't always be brought back with Undo.
  2. Unhide everything. Right-click any sheet tab and choose Unhide to reveal hidden sheets. Then select the whole sheet and unhide all rows and columns. Anything still hidden at this point will slip past the next steps.
  3. Find every instance. Press Ctrl+F, open Options, set Within to Workbook and Look in to Values. Search for each name, account number or ID you need to remove. Then run the same searches with Look in: Formulas and Comments.
  4. Replace or delete the values. Use Ctrl+H (Find & Replace) to swap repeated values, such as a client's name for “Client A”. For whole columns of sensitive data, delete the column or overwrite it with "[REDACTED]".
  5. Mask partial values, then paste as values. If the recipient needs the last four digits, add a helper column with a formula like ="***-**-"&RIGHT(A2,4). Copy the results, use Paste Special > Values, then delete the original column. Until you do, the formula still points to the full number. (Not sure whether you need masking or full removal? Here’s the difference between data redaction and data masking.)
  6. Deal with PivotTables. If the recipient doesn’t need them live, copy each PivotTable and paste it as values. If they do, refresh it after removing the source data, and in PivotTable Options > Data, set Number of items to retain per field to None.
  7. Run the Document Inspector. Go to File > Info > Check for Issues > Inspect Document, click Inspect, then Remove All next to each category you want gone: comments, document properties, hidden rows and sheets, headers and footers, and anything else it flags.
  8. Save it as a new file. A fresh file doesn’t carry the version history of the original, so older copies of the data stay behind.

If you redact spreadsheets often, write down your search terms and keep the list with the file. That list doubles as your checklist at the end.

Example: Redacting an Employee Spreadsheet

Say HR needs to send a headcount file to an outside benefits consultant. The consultant needs departments, start dates and pay bands. Names, Social Security numbers and exact salaries have to stay in-house, since all of them count as PII.

Before redaction:

Employee IDNameSSNDepartmentStart dateSalary
E-1042Maria Lopez123-45-6789Finance2019-03-11$86,400
E-1043James Carter987-65-4321Operations2021-08-02$61,250
E-1044Priya Shah555-12-3456Engineering2023-01-16$112,000

After redaction:

Employee IDNameSSNDepartmentStart datePay band
E-1042[REDACTED]***-**-6789Finance2019-03-11$80k to $90k
E-1043[REDACTED]***-**-4321Operations2021-08-02$60k to $70k
E-1044[REDACTED]***-**-3456Engineering2023-01-16$110k to $120k
Employee row before and after redaction in Excel
Name replaced, SSN masked, salary turned into a band

The table shows only half the work. Inside the file, this is what changed:

  • The Name column was overwritten. Hiding it would have left every name in place.
  • The SSN column was rebuilt with a masking formula, pasted as values, and the original column deleted.
  • Exact salaries became bands, and the PivotTable that summed salaries by department was pasted as values.
  • Document Inspector removed the author name, a hidden “Raw_Payroll” sheet and three cell comments.

The sample data above is made up for illustration.

How to Redact Excel Data as a PDF

If the person on the other end only needs to read the numbers, skip the spreadsheet and send a PDF. A PDF has no hidden sheets, no PivotTable caches and no formulas pointing back to the original values, and a proper PDF redactor can delete text from it permanently.

  1. Export the sheet. Go to File > Save As (or File > Export > Create PDF/XPS) and choose PDF.
  2. Choose what to include. Click Options and pick Active sheet(s) or a selection rather than the entire workbook. Clear Document properties under non-printing information.
  3. Redact the PDF. Open the file in PDF redaction software like PDFized. It finds names, Social Security numbers, account numbers and other sensitive data automatically, then deletes them from the file rather than drawing boxes over them.
  4. Check the PDF’s metadata. PDFs carry their own author and title fields. Here's how to remove metadata from a PDF if your tool doesn't do it for you.

The PDF route also helps when a spreadsheet arrives inside a bigger package, such as a records request or a due-diligence data room. Convert everything to PDF, and one review process covers every page.

How to Check a Redacted Spreadsheet Before Sharing

Close the file, reopen the saved copy, and go through this list. It takes about five minutes.

  • Right-click a sheet tab: Unhide is grayed out, so no hidden sheets remain.
  • Ctrl+F across the whole workbook finds none of your search terms, in values, formulas or comments.
  • Clicking a redacted cell shows the masked value in the formula bar, not a formula.
  • Formulas > Name Manager lists no names pointing to removed data.
  • Data > Queries & Connections and Edit Links are empty, or only show what you meant to keep.
  • File > Info shows no author or company name you didn't intend to share.
  • A second Document Inspector run finds nothing.
  • If you sent a PDF: copy a redacted area, paste it into a text editor, and confirm nothing comes through.

Plenty of public redaction failures came down to a check nobody ran. Our article on what happens if redaction fails shows what those mistakes have cost organizations.

// faq

FAQ

// questions · 6
  • No. Excel has no built-in redaction feature. To redact, overwrite or delete the values, then remove hidden data with the Document Inspector. The other option is to export the sheet to PDF and redact the PDF.

  • You can fill a cell black from the Home tab, but that only changes how it looks. The value still shows in the formula bar. Replace the content with “[REDACTED]” first, then add the black fill if you want that look.

  • Delete the column, or select it and overwrite every cell with a placeholder. Then check PivotTables, charts and named ranges that used the column, since they can keep their own copy of the data.

  • No. Anyone who opens the file can right-click and choose Unhide. Excel’s hiding options exist to tidy up a layout, and they were never meant to protect data.

  • If the values were overwritten or deleted, the Document Inspector was run, and the file was saved as a new copy, no. If they were only hidden, formatted away or covered, yes, and usually in seconds.

  • Yes. Sheets has no redaction feature either, and its version history keeps older copies of the data. Make a fresh copy of the cleaned file before you share it.

// related reading

pdfized.toolsFREE

// try it now

Redact your PDF in seconds

Upload a file and watch every sensitive field get detected and permanently removed. Free, in your browser.

Get started free

// stay in the loop

Prefer to read first? Get new guides on redaction and data privacy in your inbox.