How to Hide Confidential Data in Excel – 5 Methods

The dataset contains employees’ information. To hide sensitive information like phone numbers:

 

Method 1 – Applying Custom Cell Formatting to Hide Confidential Data

  • Select F9.
  • Press CTRL+1 to open the Format Cells dialog box.
  • Choose Custom in Number.
  • Enter three semicolons (;;;) in Type.
  • Click OK.

hide confidential data in excel

  • The phone number will be hidden, but the Formula Bar will still show it. You can hide the Formula Bar in the View tab by unchecking it.


Method 2 – Changing the Cell Font Color

  • Change the font color to the background color. Cell content will be invisible.

hide confidential data in excel


Method 3 – Using Helper Columns

To hide a portion of data only:

  • Enter the following formula in G5.
  • Drag down the Fill Handle.
="***-***-" & RIGHT(F5,4)

This is the output.

="***-***-" & RIGHT(F5,4)

  • Right-click column H and select Hide.

  • This is the final output.


Method 4 – Protect the Worksheet to Hide Sensitive Data

 

  • Go to the Review tab and select Protect Sheet.

  • Enter a password and click OK.

  • Reenter the password and click OK.

  • This is the output.

You can also hide cell content in the Formula Bar: Hide cells before protecting the sheet.

  • Select the cells and press CTRL+1.
  • Go to the Protection tab in Format Cells.
  • Check Locked and Hidden.
  • Click OK.

hide confidential data in excel

  • Protect the worksheet and the cell content will not be visible in the Formula Bar.

Read More: How to Hide Part of Text in Excel Cells


Method 5 – Hide the Excel Worksheet

  • Right-click the worksheet tab and select Hide.

hide confidential data in excel

  • It can be unhidden by other users.

Protect the workbook or hide the sheet using VBA:

  • Press ALT+F11 to open the VBA window.
  • Select the worksheet.
  • The Properties window will be visible below (otherwise, enable the feature in the View tab).
  • Choose 2 – xlSheetVeryHidden in Visible using the dropdown arrow.

hide confidential data in excel

  • The unhide option will be grayed out.

Read More: How to Hide Cells in Excel Until Data Entered

 


Download Practice Workbook

Download the practice workbook.


Related Articles


<< Go Back to Hide Cells | Excel Cells | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Md. Shamim Reza
Md. Shamim Reza

Md. Shamim Reza, a marine engineer with expertise in Excel and a fervent interest in VBA programming, sees programming as a time-saving tool for data manipulation, file handling, and internet interaction. His diverse skill set encompasses Rhino3D, Maxsurf C++, AutoCAD, Deep Neural Networks, and Machine Learning. He holds a B.Sc in Naval Architecture & Marine Engineering from BUET and has transitioned into a content developer role, generating technical content focused on Excel and VBA. Beyond his professional pursuits,... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo