Bỏ qua nội dung chính

Làm cách nào để cho phép sắp xếp và Lọc các ô bị khóa trong các trang tính được bảo vệ?

Nói chung, không thể chỉnh sửa trang tính được bảo vệ, nhưng trong một số trường hợp, bạn có thể muốn cho phép người dùng khác thực hiện việc sắp xếp hoặc lọc trong các trang tính bảo vệ, bạn có thể xử lý như thế nào?

Cho phép sắp xếp và lọc trong một trang tính được bảo vệ


Cho phép sắp xếp và lọc trong một trang tính được bảo vệ

Để cho phép sắp xếp và lọc trong một trang tính được bảo vệ, bạn cần các bước sau:

1. Chọn một phạm vi mà bạn sẽ cho phép người dùng sắp xếp và lọc, nhấp vào Ngày > Lọc thêm Biểu tượng lọc vào tiêu đề của phạm vi. Xem ảnh chụp màn hình :
doc cho phép bộ lọc sắp xếp 1

2. Sau đó, giữ phạm vi đã chọn và nhấp vào Đánh giá > Cho phép người dùng chỉnh sửa phạm vi. Xem ảnh chụp màn hình:
doc cho phép bộ lọc sắp xếp 2

3. bên trong Cho phép người dùng chỉnh sửa phạm vi thoại, bấm Mới để hiển thị Dãy mới , đặt tên cho phạm vi. Xem ảnh chụp màn hình:

doc cho phép bộ lọc sắp xếp 3 mũi tên bắn sang phải doc cho phép bộ lọc sắp xếp 4

4. nhấp chuột OK quay lại Cho phép người dùng chỉnh sửa phạm vi hộp thoại, và sau đó nhấp vào Bảo vệ Sheet. Xem ảnh chụp màn hình:
doc cho phép bộ lọc sắp xếp 5

5. bên trong Bảo vệ Sheet hộp thoại, nhập mật khẩu vào Mật khẩu để bỏ bảo vệ hộp văn bản trang tính và trong Cho phép tất cả người dùng trang tính này vào danh sách để kiểm tra Sắp xếp Sử dụng AutoFilter các tùy chọn. Xem ảnh chụp màn hình:
doc cho phép bộ lọc sắp xếp 6

6. nhấp chuột OKvà nhập lại mật khẩu vào hộp văn bản trong Xác nhận mật khẩu hộp thoại. Nhấp chuột OK để hoàn thành việc bảo vệ trang tính. Xem ảnh chụp màn hình:
doc cho phép bộ lọc sắp xếp 7

Sau đó, người dùng có thể sắp xếp và lọc trong trang tính được bảo vệ này

Tiền boa. Nếu có nhiều trang tính cần thiết để bảo vệ và cho phép người dùng sắp xếp và lọc, bạn có thể áp dụng Bảo vệ trang tính tiện ích của Kutools cho Excel để bảo vệ nhiều trang tính cùng một lúc.vui lòng chuyển đến dùng thử miễn phí Kutools cho Excel đầu tiên, và sau đó đi đến áp dụng hoạt động theo các bước dưới đây.

1. Sau khi hoàn thành ba bước đầu tiên để cho phép người dùng chỉnh sửa phạm vi trong các trang tính được chỉ định, hãy nhấp vào Kutools Plus > Bảo vệ trang tính. Xem ảnh chụp màn hình:
doc cho phép bộ lọc sắp xếp 8

2. bên trong Bảo vệ trang tính hộp thoại, chọn trang tính bạn muốn bảo vệ, nhấp vào Ok để hiển thị hộp thoại tiếp theo, hãy nhập và nhập lại mật khẩu và kiểm tra Sắp xếpSử dụng AutoFilter in Cho phép tất cả người dùng trang tính này danh sách.
doc cho phép bộ lọc sắp xếp 9

3. nhấp chuột Ok. Bây giờ một hộp thoại bật ra và hiển thị bao nhiêu trang tính đã được bảo vệ như hình minh họa bên dưới. Vui lòng nhấp vào OK để đóng nó.
doc cho phép bộ lọc sắp xếp 10

Bây giờ tất cả các trang tính được chỉ định đã được bảo vệ nhưng được phép sắp xếp và lọc.

Công cụ năng suất văn phòng tốt nhất

🤖 Trợ lý AI của Kutools: Cách mạng hóa việc phân tích dữ liệu dựa trên: Thực thi thông minh   |  Tạo mã  |  Tạo công thức tùy chỉnh  |  Phân tích dữ liệu và tạo biểu đồ  |  Gọi các hàm Kutools...
Các tính năng phổ biến: Tìm, đánh dấu hoặc xác định các bản sao   |  Xóa hàng trống   |  Kết hợp các cột hoặc ô mà không làm mất dữ liệu   |   Vòng không có công thức hữu ích. Cảm ơn !
Siêu tra cứu: Nhiều tiêu chí VLookup    VLookup Nhiều Giá Trị  |   VLookup trên nhiều trang tính   |   Tra cứu mờ ....
Danh sách thả xuống nâng cao: Tạo nhanh danh sách thả xuống   |  Danh sách thả xuống phụ thuộc   |  Danh sách thả xuống nhiều lựa chọn ....
Trình quản lý cột: Thêm một số cột cụ thể  |  Di chuyển cột  |  Chuyển đổi trạng thái hiển thị của các cột ẩn  |  So sánh dãy và cột hữu ích. Cảm ơn !
Các tính năng nổi bật: Tiêu điểm lưới   |  Chế độ xem thiết kế   |   Thanh công thức lớn    Trình quản lý sổ làm việc & trang tính   |  Thư viện tài nguyên (Văn bản tự động)   |  Bảng chọn ngày   |  Kết hợp các bảng tính   |  Mã hóa/Giải mã ô    Gửi email theo danh sách   |  Siêu lọc   |   Bộ lọc đặc biệt (lọc in đậm/nghiêng/gạch ngang...) ...
15 bộ công cụ hàng đầu12 bản văn CÔNG CỤ (thêm văn bản, Xóa ký tự,...)   |   50 + Biểu đồ Các loại (Biểu đồ Gantt,...)   |   40+ Thực tế Công thức (Tính tuổi dựa trên ngày sinh,...)   |   19 chèn CÔNG CỤ (Chèn mã QR, Chèn ảnh từ đường dẫn,...)   |   12 Chuyển đổi CÔNG CỤ (Số thành từ, Chuyển đổi tiền tệ,...)   |   7 Hợp nhất & Tách CÔNG CỤ (Các hàng kết hợp nâng cao, Chia ô,...)   |   ... và nhiều hơn nữa

Nâng cao kỹ năng Excel của bạn với Kutools for Excel và trải nghiệm hiệu quả hơn bao giờ hết. Kutools for Excel cung cấp hơn 300 tính năng nâng cao để tăng năng suất và tiết kiệm thời gian.  Bấm vào đây để có được tính năng bạn cần nhất...

Mô tả


Tab Office mang lại giao diện Tab cho Office và giúp công việc của bạn trở nên dễ dàng hơn nhiều

  • Cho phép chỉnh sửa và đọc theo thẻ trong Word, Excel, PowerPoint, Publisher, Access, Visio và Project.
  • Mở và tạo nhiều tài liệu trong các tab mới của cùng một cửa sổ, thay vì trong các cửa sổ mới.
  • Tăng 50% năng suất của bạn và giảm hàng trăm cú nhấp chuột cho bạn mỗi ngày!
Comments (23)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Good job!
Now i could do filtering in protected worksheets
Thank you
This comment was minimized by the moderator on the site
Bonjour,

J'ai été confronté à ce problème sur PC il y a un temps. Je confirme la manip. Mais aujourd'hui, je suis sur Microsoft 365 sur Mac et malheureusement je ne trouve pas le même menu dans 'Révision'. Le menu "Autoriser les utilisateurs à modifier les plages" est inexistant.

Que faire ?

Merci d'avance
This comment was minimized by the moderator on the site
Ok so my issue is that i have the protection on and the fields people can edit - so only certain fields are locked. happy days.

however Only the filter works when protected and not sort :(

ive allowed sort and auto filter on the options but still no joy with sorting

any ideas
This comment was minimized by the moderator on the site
This is a great solution for something that has puzzled me for years.
However, I just need one further tweak. 🤔

When unprotected, the table in my worksheet allows me to add additional rows by entering a new item in Column A and all formulae in the table is copied down to the new row.

When I protect the worksheet using the method above it now allows filtering and sorting, but it won't create a new row.

I have tried selecting "Format cells", "Format rows" and "Insert Rows" to no avail.
Any idea how I can achieve this functionality in a protected worksheet?
This comment was minimized by the moderator on the site
Hi, sw_77, if you want to insert rows in a protect sheet, just tick Insert rows checkbox in the Ptrotect Sheet dialog when protecting sheet.
This comment was minimized by the moderator on the site
Hi
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?

//Johan
This comment was minimized by the moderator on the site
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 ... :-)
cheers
This comment was minimized by the moderator on the site
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.
This comment was minimized by the moderator on the site
OMG! you did it... you beautiful sob, that's it. been researching for a solution to this for a good 8 hours over 3 days now. So simple. Thank you!
This comment was minimized by the moderator on the site
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 :)
This comment was minimized by the moderator on the site
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.
This comment was minimized by the moderator on the site
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?
This comment was minimized by the moderator on the site
I have a solution for you. ... Use "Format Cells" to unlock the columns you want users to be able to change. Then use the method shown here create a range (your table) that users can edit. Then, when you protect the sheet, select the options for autofilter and sort AND deselect the top option to let users "select locked cells" .... if you put in no password for the range protection, then users can sort and filter the range, make changes to unlocked cells, and can't touch the formulas they shouldn't!
This comment was minimized by the moderator on the site
I agree with MJ. This solution makes it so users can make almost any change they want within the "edit ranges" area, including deleting locked and hidden formulas. The sheet might as well be unlocked. 
1) Not change the values. Not see or change or delete the formulas.2) Sort and Filter on any of the 60 columns3) Select areas (of locked cells) and copyThe suggested method allows 2) and 3) but could allow users to inadvertently delete data in cells.  
This comment was minimized by the moderator on the site
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.
This comment was minimized by the moderator on the site
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?
This comment was minimized by the moderator on the site
has anyone come up with a solution to this question? I'm still trying to figure this out.
This comment was minimized by the moderator on the site
3 years later. Still searching for a solution.
This comment was minimized by the moderator on the site
I had the same issue, solved it with a Macro. So I added a Button and signed following macro to it, see below.

It doesn't solve my issue with sorting. Following the steps above, I have a similar file converted to a table, the sorting still doesn't work.


Sub Reset_All_Filters()
'
' Reset_All_Filters Macro
' will reset all the slicers in the dashboards
'

'
Dim cache As SlicerCache
For Each cache In ActiveWorkbook.SlicerCaches
cache.ClearManualFilter
Next cache

End Sub
This comment was minimized by the moderator on the site
Sorry Mark, I have tried, cannot solve this problem. If you find the solution, please let me know, thank you.
This comment was minimized by the moderator on the site
I have the same question. I would love to know the answer to Abhijt's question, if there is one.
This comment was minimized by the moderator on the site
i m having this problem as well. Do wish for an answer if any ^^
This comment was minimized by the moderator on the site
very helpful! it fixed my filter issue with protected worksheets
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations