Selective protection on a worksheet

2davidc8

New Member
Joined
Sep 27, 2018
Messages
32
Office Version
  1. 2019
Platform
  1. Windows
How can I protect only certain formulas and conditional formatting in a worksheet while still allowing the cells to remain open for data input?
Review/Protect Sheet... or Home/Format/Protect Sheet... seem to be all-or-nothing.
Also, how can I make the protection apply only to certain cells but not to others? The Excel help info indicates that I can select a range for protection but I can't make it work. The whole procedure seems to be about protecting the entire sheet, not protecting a range or individual cells.
Appreciate your help!
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Protecting sheets is NOT an all-or-nothing approach. You can lock the cells you want protected, and unlock the ones that you want to allow to be edited.
See: Lock cells to protect them
 
Upvote 0
Thanks for your reply. Perhaps I should rephrase my question.
I would like to protect the conditional formatting but still allow data to be entered into the cell. I find that protecting the conditional formatting also locks the cell.
I can't find a way around this ...
 
Upvote 0
Hi Joe4,

Thanks for the reference! We're almost there. When I tried those instructions, it worked well--just what I wanted--except for one thing:
I would like the user to be able to filter the data to view a subset of the data (two of the columns are dropdowns), but once the sheet is protected, this is not allowed. The user is able to sort, but not filter. What should I do?

Thanks!
 
Upvote 0
Hi Joe4,

Thanks for the reference! We're almost there. When I tried those instructions, it worked well--just what I wanted--except for one thing:
I would like the user to be able to filter the data to view a subset of the data (two of the columns are dropdowns), but once the sheet is protected, this is not allowed. The user is able to sort, but not filter. What should I do?

Thanks!
Did you try selecting the "Use Autofilter" option in the "Protect Sheet" box?

1647516653106.png
 
Upvote 0
Yes, I did. Unfortunately, once the sheet is protected, all filtering options are still grayed out for the user.
 
Upvote 0
It seems to work for me.

Just like the article shows, you need to first "unlock" all the cells that your data resides in.
Then, check the "Use Autofilter" box when protecting the sheet, and you are able to then use the Autofilter.
 
Upvote 0
Thanks for sticking with me.

Here's what I did:
1. As instructed, I first selected a range of cells, then I went to Home/Format/Format Cells ... and unlocked the cells in the range:
Screenshot 2022-03-17 055936.png

2. Next, I went to Review/Protect Sheet and selected:
Screenshot 2022-03-17 060207.png

and clicked OK.
3. But now in Home/Sort & Filter .., the Filter option is grayed out. Also, in the Data tab the Filter option is grayed out. And when I try to force the issue with the keyboard shortcut Ctrl-Shift-L, I get the error message:
Screenshot 2022-03-17 060329.png


What do you suppose I'm doing wrong?
Sorting works, and Conditional Formatting is grayed out, as I wanted. Just can't Filter.
 
Upvote 0
OK. It allows me to use pre-existing filters, but not to create new filters.
Can you set-up the filter on the range BEFORE protecting it?
Then they should be able to interact with the pre-existing filters.
 
Upvote 0

Forum statistics

Threads
1,215,259
Messages
6,123,919
Members
449,135
Latest member
NickWBA

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top