Note: The other languages of the website are Google-translated. Back to English
Log in  \/ 
Register  \/ 


How to allow sorting and Filter locked cells in protected sheets?

In general, the protected sheet cannot be edited, but in some cases, you may want to allow the other users to do sorting or filtering in the protect sheets, how can you handle it?

Allow sorting and filtering in a protected sheet

Allow sorting and filtering in a protected sheet

To allow sorting and filter in a protected sheet, you need these steps:

1. Select a range you will allow users to sorting and filtering, click Data > Filter to add the Filtering icons to the headings of the range. See screenshot:
doc allow filter sort 1

2. Then keep the range selected and click Review > Allow Users to Edit Ranges. See screenshot:
doc allow filter sort 2

3. In the Allow Users to Edit Ranges dialog, click New to display the New Range dialog, give the range a name. See screenshot:

doc allow filter sort 3 shot arrow right doc allow filter sort 4

4. Click OK to go back to Allow Users to Edit Ranges dialog, and then click Protect Sheet. See screenshot:
doc allow filter sort 5

5. In the Protect Sheet dialog, type the password in the Password to unprotect sheet text box, and in Allow all users of this worksheet to list to check Sort and Use AutoFilter options. See screenshot:
doc allow filter sort 6

6. Click OK, and retype the password in the textbox in the Confirm Password dialog. Click OK to finish the sheet protecting. See screenshot:
doc allow filter sort 7

Then the users can sort and filter in this protected sheet

Tip. If there are multiple sheets needed to protect and allow users to sort and filter, you can apply Protect Worksheet utility of Kutools for Excel to protect multiple sheets at one time.please go to free try Kutools for Excel first, and then go to apply the operation according below steps.

1. After finish the first three steps to allow users to edit ranges in the specified sheets, click Kutools Plus > Protect Worksheet. See screenshot:
doc allow filter sort 8

2. In the Protect Worksheet dialog, select the sheets you want to protect, click Ok to display the next dialog, type and reenter the password, and check Sort and Use AutoFilter in Allow all users of this worksheet to list.
doc allow filter sort 9

3. Click Ok. Now a dialog box pops out and shows how many sheets have been protected as below screenshot shown. Please click the OK button to close it.
doc allow filter sort 10

Now all specified sheets have been protected but allowed to sort and filter.

The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Johan · 7 months ago

    Doing the above still blocks the users from making any of the changes listed.

    One probably needs to find a way to define which users i.e. "any" can do the allowed changes to the protected document.

    Under point 4. above is the option to define "Permissions". If one do not change here, none gets the permissions.
    But then how does one change that?

  • To post as a guest, your comment is unpublished.
    Fabio DI PRIMA · 1 years ago
    I tried to do so:
    the result is that, yes, user can sort and filter
    ... and can also modify the locked cells in the selected range (the whole range is containing locked and unlocked cells)
    thus, this is NOT a useful way to protect the sheet, I can leave the sheet unprotected and will have the same result ...
    however thanks for yur usual suggestions
    I will investigate more ... :-)

    • To post as a guest, your comment is unpublished.
      Arturo Cohen · 1 years ago
      Hi Fabio, to solve this, when selecting the properties for the sheet protection, do NOT select the option "select locked cells" this will avoid someone from using/changing those cells.
  • To post as a guest, your comment is unpublished.
    Heidi J · 2 years ago
    This solved my issue! Couldn't figure out why columns couldn't still be filtered... I was missing the checkbox to allow for sort and auto filter. I've bookmarked this page :)
  • To post as a guest, your comment is unpublished.
    MJ · 2 years ago
    This also changed the way cells react to clicks. i.e. Protection: Allow users to "select locked cells" no longer rejects attempted changes, but removes protection altogether and allows changes to the data in the cell... and ... Disallowing "select locked cells" will no longer allow you to copy any locked cells. Trade-offs for allowing sort/filter on a protected sheet. pls correct me if I'm wrong.
  • To post as a guest, your comment is unpublished.
    Daniel · 3 years ago
    Here's my issue. I have a Table with several columns and lots of rows. I want people to be able to edit certain columns, filling in the information they gather, sort/filter by any column, and be able to select and copy data from any cell, but not change values in columns they are not entering information into. A = ID, B = Title, C = Description, D = Type, E = Who Knows It?, F = Completed by. They should be able to sort/filter any column and copy from any cell, but they should only be able to edit D, E, and F. Is this possible?
    • To post as a guest, your comment is unpublished.
      Sunny · 2 years ago
      Hi, Daniel, just select the cells you allow others edit, format them to unlock in format cells dialog, then protect the sheet, now only the unlocked cells can be edited.
      • To post as a guest, your comment is unpublished.
        Abhijit · 2 years ago
        However when you protect the sheet and allow filter too, the "Clear Filter" button in the Data tab gets greyed out and user is not able to clear the filter, rather they have to go to each filter and manually clear them. Is there any way to keep the "Clear Filter" option active even after protecting the worksheet?
        • To post as a guest, your comment is unpublished.
          Mike · 10 months ago
          has anyone come up with a solution to this question? I'm still trying to figure this out.
        • To post as a guest, your comment is unpublished.
          David · 2 years ago
          I have the same question. I would love to know the answer to Abhijt's question, if there is one.
          • To post as a guest, your comment is unpublished.
            Ann · 2 years ago
            i m having this problem as well. Do wish for an answer if any ^^
  • To post as a guest, your comment is unpublished.
    chenna · 3 years ago
    very helpful! it fixed my filter issue with protected worksheets