Прескочи на основното съдържание

Как да разрешите сортиране и филтриране на заключени клетки в защитени листове?

Автор: Слънце Последна промяна: 2020-04-28

По принцип защитеният лист не може да се редактира, но в някои случаи може да искате да позволите на другите потребители да извършват сортиране или филтриране в защитените листове, как можете да се справите?

Позволява сортиране и филтриране в защитен лист


Позволява сортиране и филтриране в защитен лист

За да позволите сортиране и филтриране в защитен лист, имате нужда от следните стъпки:

1. Изберете диапазон, който ще позволите на потребителите да сортират и филтрират, щракнете Дата > филтър за да добавите Икони за филтриране към заглавията на гамата. Вижте екранна снимка:
doc позволява сортиране на филтър 1

2. След това задръжте диапазона избран и щракнете Оценки на посетители > Позволете на потребителите да редактират диапазони. Вижте екранна снимка:
doc позволява сортиране на филтър 2

3. В Позволете на потребителите да редактират диапазони кликнете върху НОВ за показване на Нов диапазон диалогов прозорец, дайте име на диапазона. Вижте екранна снимка:

doc позволява сортиране на филтър 3 изстреляна стрелка надясно doc позволява сортиране на филтър 4

4. кликване OK да се върна към Позволете на потребителите да редактират диапазони , след което щракнете върху Защита на листа. Вижте екранна снимка:
doc позволява сортиране на филтър 5

5. В Защита на листа въведете паролата в Парола за премахване на защитата на текстовото поле на листа и в Разрешаване на всички потребители на този работен лист в списъка, за да проверите Вид намлява Използвайте AutoFilter настроики. Вижте екранна снимка:
doc позволява сортиране на филтър 6

6. кликване OKи въведете отново паролата в текстовото поле в потвърди парола диалогов прозорец. Кликнете OK за да завършите защитата на листа. Вижте екранна снимка:
doc позволява сортиране на филтър 7

След това потребителите могат да сортират и филтрират в този защитен лист

Бакшиш. Ако има няколко листа, необходими за защита и позволяване на потребителите да сортират и филтрират, можете да кандидатствате Защита на работния лист полезност на Kutools за Excel за защита на няколко листа наведнъж.моля, отидете безплатно опитайте Kutools за Excel първо и след това преминете към прилагане на операцията според стъпките по-долу.

1. След като завършите първите три стъпки, за да позволите на потребителите да редактират диапазони в посочените листове, щракнете Kutools плюс > Защита на работния лист. Вижте екранна снимка:
doc позволява сортиране на филтър 8

2. В Защита на работния лист изберете листовете, които искате да защитите, щракнете Ok за да покажете следващия диалог, въведете и въведете отново паролата и проверете Вид намлява Използвайте AutoFilter in Разрешете на всички потребители на този работен лист списък.
doc позволява сортиране на филтър 9

3. кликване Ok. Сега изскача диалогов прозорец и показва колко листа са били защитени, както е показано на екранната снимка по-долу. Моля, щракнете върху OK за да го затворите.
doc позволява сортиране на филтър 10

Сега всички посочени листове са защитени, но са разрешени за сортиране и филтриране.

Най-добрите инструменти за продуктивност в офиса

🤖 Kutools AI помощник: Революционизирайте анализа на данни въз основа на: Интелигентно изпълнение   |  Генериране на код  |  Създаване на персонализирани формули  |  Анализирайте данни и генерирайте диаграми  |  Извикване на функциите на Kutools...
Популярни функции: Намерете, маркирайте или идентифицирайте дубликати   |  Изтриване на празни редове   |  Комбинирайте колони или клетки без загуба на данни   |   Кръг без формула ...
Супер търсене: VLookup с множество критерии    VLookup с множество стойности  |   VLookup в няколко листа   |   Размито търсене ....
Разширен падащ списък: Бързо създаване на падащ списък   |  Зависим падащ списък   |  Падащ списък с множество избори ....
Мениджър на колони: Добавете конкретен брой колони  |  Преместване на колони  |  Превключване на състоянието на видимост на скритите колони  |  Сравнете диапазони и колони ...
Препоръчани функции: Мрежов фокус   |  Изглед на дизайна   |   Голям формула бар    Мениджър на работни книги и листове   |  Библиотека с ресурси (Автоматичен текст)   |  Избор на дата   |  Комбинирайте работни листове   |  Шифроване/декриптиране на клетки    Изпращайте имейли по списък   |  Супер филтър   |   Специален филтър (филтър получер/курсив/зачертано...) ...
Топ 15 комплекта инструменти12 Текст Инструменти (добавяне на текст, Премахване на символи, ...)   |   50 + Графика Видове (диаграма на Гант, ...)   |   40+ Практичен формули (Изчислете възрастта въз основа на рождения ден, ...)   |   19 вмъкване Инструменти (Въведете QR код, Вмъкване на картина от пътя, ...)   |   12 Конверсия Инструменти (Числа към думи, Валутен обмен, ...)   |   7 Обединяване и разделяне Инструменти (Разширено комбиниране на редове, Разделени клетки, ...)   |   ... и още

Усъвършенствайте уменията си за Excel с Kutools за Excel и изпитайте ефективност, както никога досега. Kutools за Excel предлага над 300 разширени функции за повишаване на производителността и спестяване на време.  Щракнете тук, за да получите функцията, от която се нуждаете най-много...

Описание


Раздел Office Внася интерфейс с раздели в Office и прави работата ви много по-лесна

  • Разрешете редактиране и четене с раздели в Word, Excel, PowerPoint, Publisher, Access, Visio и Project.
  • Отваряйте и създавайте множество документи в нови раздели на един и същ прозорец, а не в нови прозорци.
  • Увеличава вашата производителност с 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