1
00:00:00,080 --> 00:00:03,836
You need to lock the total formula in Excel without locking

2
00:00:03,836 --> 00:00:05,544
the quantity and price inputs.

3
00:00:05,544 --> 00:00:09,300
In this fictional order calculator, three units at twelve dollars and

4
00:00:09,300 --> 00:00:12,374
fifty cents make thirty-seven dollars and fifty cents.

5
00:00:12,374 --> 00:00:16,130
The useful check has two sides: an input edit must work,

6
00:00:16,130 --> 00:00:20,911
and an attempt to replace the formula must fail while sheet protection is on.

7
00:00:21,511 --> 00:00:27,100
Download the practice workbook and open a disposable copy in Excel for the web.

8
00:00:27,100 --> 00:00:31,491
Cell B2 holds quantity three, C2 holds unit price twelve point

9
00:00:31,491 --> 00:00:35,881
five, and D2 holds the exact formula equals B2 times C2.

10
00:00:35,881 --> 00:00:39,873
Confirm the formula bar shows that expression before changing protection.

11
00:00:39,873 --> 00:00:44,264
A typed total would not test whether the formula remains intact.

12
00:00:44,864 --> 00:00:48,984
In Excel for the web, open Review and then Manage Protection.

13
00:00:48,984 --> 00:00:53,853
Microsoft's web guidance places the protected-sheet and unlocked-range controls there.

14
00:00:53,853 --> 00:00:58,723
Check that this control is present in your tenant before applying the instructions.

15
00:00:58,723 --> 00:01:02,843
The desktop Format Cells route is a different workflow, so keep

16
00:01:02,843 --> 00:01:07,712
this practice on the web path or use a separately documented desktop method.

17
00:01:08,312 --> 00:01:13,129
Turn on Protect sheet and add B2 through C2 as an Unlocked range.

18
00:01:13,129 --> 00:01:14,612
Do not include D2.

19
00:01:14,612 --> 00:01:19,058
The spreadsheet's formula cell stays protected by default when the sheet

20
00:01:19,058 --> 00:01:23,134
is protected, while the named input range can still be edited.

21
00:01:23,134 --> 00:01:27,211
Read the range address twice; B2 through D2 would accidentally unlock

22
00:01:27,211 --> 00:01:29,805
the formula you are trying to safeguard.

23
00:01:30,405 --> 00:01:34,174
With protection on, change the fictional quantity from three to four.

24
00:01:34,174 --> 00:01:37,943
At a unit price of twelve dollars and fifty cents, the

25
00:01:37,943 --> 00:01:39,656
total should become fifty dollars.

26
00:01:39,656 --> 00:01:42,739
That is the allowed-edit side of the test.

27
00:01:42,739 --> 00:01:46,508
Return the quantity to three afterward; the original thirty-seven dollar

28
00:01:46,508 --> 00:01:50,277
and fifty cent total should come back from the same formula.

29
00:01:50,877 --> 00:01:57,453
Next, try replacing D2 with nine hundred ninety-nine in the protected practice copy. Cancel the attempt.

30
00:01:57,453 --> 00:02:01,708
The total cell should reject replacement, and its formula should still

31
00:02:01,708 --> 00:02:03,641
read equals B2 times C2.

32
00:02:03,641 --> 00:02:07,896
If it accepts the typed value, either sheet protection is off

33
00:02:07,896 --> 00:02:10,217
or the unlocked range includes D2.

34
00:02:10,217 --> 00:02:12,925
Recheck the setup before calling this done.

35
00:02:13,525 --> 00:02:16,285
This method helps prevent accidental formula edits.

36
00:02:16,285 --> 00:02:19,833
Microsoft explicitly cautions that worksheet protection is not a

37
00:02:19,833 --> 00:02:25,353
security feature, so do not use it to protect confidential prices or personal data.

38
00:02:25,353 --> 00:02:30,479
The workbook and answer check let you reproduce both outcomes with fictional numbers.

39
00:02:30,479 --> 00:02:35,210
Check the control and blocked-edit message in your own tenant before

40
00:02:35,210 --> 00:02:37,182
relying on the protection setup.
