ไปยังเนื้อหาหลัก

วิธีอนุญาตให้เรียงลำดับและกรองเซลล์ที่ถูกล็อกในแผ่นงานที่มีการป้องกัน

โดยทั่วไปไม่สามารถแก้ไขแผ่นงานที่มีการป้องกันได้ แต่ในบางกรณีคุณอาจต้องการอนุญาตให้ผู้ใช้รายอื่นทำการเรียงลำดับหรือกรองในแผ่นงานป้องกันคุณจะจัดการได้อย่างไร

อนุญาตให้จัดเรียงและกรองในแผ่นงานที่มีการป้องกัน


อนุญาตให้จัดเรียงและกรองในแผ่นงานที่มีการป้องกัน

ในการอนุญาตให้จัดเรียงและกรองในแผ่นงานที่มีการป้องกันคุณต้องมีขั้นตอนเหล่านี้:

1. เลือกช่วงที่คุณจะอนุญาตให้ผู้ใช้จัดเรียงและกรองคลิก ข้อมูล > ตัวกรอง เพื่อเพิ่มไฟล์ ไอคอนการกรอง ไปที่ส่วนหัวของช่วง ดูภาพหน้าจอ:
doc อนุญาตการจัดเรียงตัวกรอง 1

2. จากนั้นเลือกช่วงที่เลือกไว้แล้วคลิก รีวิว > อนุญาตให้ผู้ใช้แก้ไขช่วง. ดูภาพหน้าจอ:
doc อนุญาตการจัดเรียงตัวกรอง 2

3 ใน อนุญาตให้ผู้ใช้แก้ไขช่วง โต้ตอบคลิก ใหม่ เพื่อแสดง ช่วงใหม่ กล่องโต้ตอบตั้งชื่อช่วง ดูภาพหน้าจอ:

doc อนุญาตการจัดเรียงตัวกรอง 3 ลูกศรยิงไปทางขวา doc อนุญาตการจัดเรียงตัวกรอง 4

4 คลิก OK เพื่อกลับไปที่ อนุญาตให้ผู้ใช้แก้ไขช่วง กล่องโต้ตอบแล้วคลิกตกลง ป้องกันแผ่นงาน. ดูภาพหน้าจอ:
doc อนุญาตการจัดเรียงตัวกรอง 5

5 ใน ป้องกันแผ่นงาน ให้พิมพ์รหัสผ่านในไฟล์ รหัสผ่าน เพื่อยกเลิกการป้องกันกล่องข้อความแผ่นงานและในอนุญาตให้ผู้ใช้ทั้งหมดของแผ่นงานนี้แสดงรายการเพื่อตรวจสอบ ประเภท และ ใช้ตัวกรองอัตโนมัติ ตัวเลือก. ดูภาพหน้าจอ:
doc อนุญาตการจัดเรียงตัวกรอง 6

6 คลิก OKและพิมพ์รหัสผ่านอีกครั้งในกล่องข้อความในไฟล์ ยืนยันรหัสผ่าน ไดอะล็อก คลิก OK เพื่อป้องกันแผ่นงานให้เสร็จ ดูภาพหน้าจอ:
doc อนุญาตการจัดเรียงตัวกรอง 7

จากนั้นผู้ใช้สามารถจัดเรียงและกรองในแผ่นงานที่มีการป้องกันนี้

เคล็ดลับ หากมีแผ่นงานหลายแผ่นเพื่อป้องกันและอนุญาตให้ผู้ใช้จัดเรียงและกรองได้คุณสามารถนำไปใช้ได้ ปกป้องแผ่นงาน ประโยชน์ของ Kutools สำหรับ Excel เพื่อป้องกันหลายแผ่นในครั้งเดียวโปรดไปทดลองใช้ Kutools for Excel ฟรี ก่อนแล้วไปใช้การดำเนินการตามขั้นตอนด้านล่าง

1. หลังจากเสร็จสิ้นสามขั้นตอนแรกเพื่ออนุญาตให้ผู้ใช้แก้ไขช่วงในแผ่นงานที่ระบุให้คลิก Kutools พลัส > ปกป้องแผ่นงาน. ดูภาพหน้าจอ:
doc อนุญาตการจัดเรียงตัวกรอง 8

2 ใน ปกป้องแผ่นงาน กล่องโต้ตอบเลือกแผ่นงานที่คุณต้องการป้องกันคลิก Ok เพื่อแสดงกล่องโต้ตอบถัดไปพิมพ์และป้อนรหัสผ่านอีกครั้งจากนั้นตรวจสอบ ประเภท และ ใช้ตัวกรองอัตโนมัติ in อนุญาตให้ผู้ใช้ทั้งหมดของแผ่นงานนี้ รายการ.
doc อนุญาตการจัดเรียงตัวกรอง 9

3 คลิก Ok. ตอนนี้กล่องโต้ตอบจะปรากฏขึ้นและแสดงจำนวนแผ่นที่ได้รับการป้องกันตามภาพด้านล่างที่แสดง กรุณาคลิกที่ไฟล์ OK เพื่อปิด
doc อนุญาตการจัดเรียงตัวกรอง 10

ตอนนี้แผ่นงานที่ระบุทั้งหมดได้รับการป้องกัน แต่อนุญาตให้จัดเรียงและกรองได้

สุดยอดเครื่องมือเพิ่มผลผลิตในสำนักงาน

🤖 Kutools AI ผู้ช่วย: ปฏิวัติการวิเคราะห์ข้อมูลโดยยึดตาม: การดำเนินการที่ชาญฉลาด   |  สร้างรหัส  |  สร้างสูตรที่กำหนดเอง  |  วิเคราะห์ข้อมูลและสร้างแผนภูมิ  |  เรียกใช้ฟังก์ชัน Kutools...
คุณสมบัติยอดนิยม: ค้นหา เน้น หรือระบุรายการที่ซ้ำกัน   |  ลบแถวว่าง   |  รวมคอลัมน์หรือเซลล์โดยไม่สูญเสียข้อมูล   |   รอบโดยไม่มีสูตร ...
การค้นหาขั้นสูง: VLookup หลายเกณฑ์    VLookup หลายค่า  |   VLookup ข้ามหลายแผ่น   |   การค้นหาที่ไม่ชัดเจน ....
รายการแบบเลื่อนลงขั้นสูง: สร้างรายการแบบหล่นลงอย่างรวดเร็ว   |  รายการแบบหล่นลงขึ้นอยู่กับ   |  เลือกหลายรายการแบบหล่นลง ....
ผู้จัดการคอลัมน์: เพิ่มจำนวนคอลัมน์เฉพาะ  |  ย้ายคอลัมน์  |  สลับสถานะการมองเห็นของคอลัมน์ที่ซ่อนอยู่  |  เปรียบเทียบช่วงและคอลัมน์ ...
คุณสมบัติเด่น: กริดโฟกัส   |  มุมมองการออกแบบ   |   บาร์สูตรใหญ่    สมุดงานและตัวจัดการชีต   |  ห้องสมุดทรัพยากร (ข้อความอัตโนมัติ)   |  เลือกวันที่   |  รวมแผ่นงาน   |  เข้ารหัส/ถอดรหัสเซลล์    ส่งอีเมลตามรายการ   |  ซุปเปอร์ฟิลเตอร์   |   ตัวกรองพิเศษ (กรองตัวหนา/ตัวเอียง/ขีดทับ...) ...
ชุดเครื่องมือ 15 อันดับแรก12 ข้อความ เครื่องมือ (เพิ่มข้อความ, ลบอักขระ, ... )   |   50 + แผนภูมิ ประเภท (แผนภูมิ Gantt, ... )   |   40+ ใช้งานได้จริง สูตร (คำนวณอายุตามวันเกิด, ... )   |   19 การแทรก เครื่องมือ (ใส่ QR Code, แทรกรูปภาพจากเส้นทาง, ... )   |   12 การแปลง เครื่องมือ (ตัวเลขเป็นคำ, การแปลงสกุลเงิน, ... )   |   7 ผสานและแยก เครื่องมือ (แถวรวมขั้นสูง, แยกเซลล์, ... )   |   ... และอื่น ๆ

เพิ่มพูนทักษะ Excel ของคุณด้วย Kutools สำหรับ Excel และสัมผัสประสิทธิภาพอย่างที่ไม่เคยมีมาก่อน Kutools สำหรับ Excel เสนอคุณสมบัติขั้นสูงมากกว่า 300 รายการเพื่อเพิ่มประสิทธิภาพและประหยัดเวลา  คลิกที่นี่เพื่อรับคุณสมบัติที่คุณต้องการมากที่สุด...

รายละเอียด


แท็บ Office นำอินเทอร์เฟซแบบแท็บมาที่ Office และทำให้งานของคุณง่ายขึ้นมาก

  • เปิดใช้งานการแก้ไขและอ่านแบบแท็บใน Word, Excel, PowerPoint, ผู้จัดพิมพ์, Access, Visio และโครงการ
  • เปิดและสร้างเอกสารหลายรายการในแท็บใหม่ของหน้าต่างเดียวกันแทนที่จะเป็นในหน้าต่างใหม่
  • เพิ่มประสิทธิภาพการทำงานของคุณ 50% และลดการคลิกเมาส์หลายร้อยครั้งให้คุณทุกวัน!
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