Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

filtering protected cellsdata

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Filtering protected cells/data

Filtering protected cells/data

Low priorityVersion 365

Filtering protected cells/data

I have a worksheet that contains cells with detailed formulas that I would like to protect, so that these formulas can't be edited, however I still need the data within this worksheet to be able to be filtered/sorted. Is there any way of locking certain cells, but still being able to apply filters on the data, without having to enter a password in order to rearrange/sort the data please?

RE: Filtering protected cells/data

Hi Alex,

Thank you for the forum question.

Yes—Excel does support exactly what you’re trying to do
You can lock formula cells while still allowing filtering/sorting without re-entering the password each time by using sheet protection options properly.
________________________________________
What to do
1. Unlock the cells users can interact with
By default, all cells are locked, so you must first unlock the ones users should be able to filter/sort:
1. Select the range (or entire sheet with Ctrl + A)
2. Press Ctrl + 1 → go to Protection tab
3. Uncheck “Locked” → click OK
________________________________________
2. Lock only the formula cells
Now select only your formula cells:
• You can use:
Home → Find & Select → Go To Special → Formulas
Then:
1. Press Ctrl + 1
2. Go to Protection
3. Check Locked → OK
________________________________________
3. Protect the worksheet with filter/sort enabled
Now the key step:
1. Go to Review → Protect Sheet
2. Enter a password (optional—but recommended)
3. IMPORTANT: Tick the following options:
o Select unlocked cells
o Sort
o Use AutoFilter
Then click OK.
________________________________________
Result
• Formula cells Protected
• Users can:
o Filter data
o Sort data
• Users won’t be prompted for a password just to filter/sort
• Users cannot edit formulas
________________________________________
Extra tips
• Make sure the filter is already applied (Ctrl + Shift + L) before protecting the sheet
• Tables (Ctrl + T) also work well with this setup
• If sorting doesn’t work, ensure:
o The entire dataset range is unlocked except formulas
o No partially locked columns in the sort range
________________________________________
Key idea
Protection in Excel doesn’t block actions like sorting/filtering unless you leave those options unchecked—it’s fully configurable.
________________________________________


Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Excel tip:

Colouring cells containing formulas

Cells in a worksheet can contain values or they can contain formulas. You may wish to identify all the cells in your worksheet that contain formulas by colouring those cells.

Follow these steps:
1. Choose Edit > Go To menu, or press either F5 or Ctrl+G. Excel displays the Go To dialog box.
2. Click Special. Excel displays the Go To Special dialog box.
3. Select the Formulas radio button option.
4. Select OK.

At this point, every formula cell in the worksheet is selected, and those cells can be coloured formatted as desired.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.13 secs.