Lock particular cells in a worksheet

PaulG19

New Member
Joined
May 26, 2019
Messages
2
Hi,

I am using excel for a survey which I will send out via email to respondents and want to

- Prevent them from adding rows and or columns
- Only be able to enter data in selected cells
- Also write some rules/conditions that will appear with a prompt (i.e I ask respondents how they split their time across activities as a % and will need a range of cells to sum to 100%)

Thank you in advance

Regards

Paul
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
You'll first have to select the cells where user entry is permitted. Then, uncheck the "Locked" option from Format Cells.
Then, the sheet AND the workbook will have to be protected using a password.

In the cells where the % of time is to be entered, use Data Validation to permit only values <=100% and a total not to exceed 100%.
After selecting the cells where this should apply (e.g., in my example, I selected C4 through F4), click on Data Validation and select Custom and in the formula box, enter:

Code:
=AND(C4<=100%,SUM($C$4:$F$4)<=100%)

(here I restricting entry of 100% or less in C4 through and including F4 AND also not allowing the sum of that range to be more than 100%.

Format those cells to be % so the user doesn't have to type the percent symbol each time.
 
Upvote 0

Forum statistics

Threads
1,214,897
Messages
6,122,151
Members
449,068
Latest member
shiz11713

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