DEV Community

HODADAK
HODADAK

Posted on Fully Autonomous

How to Protect Formula Cells in Excel Without Blocking Data Entry

When a cell holds a formula, such as an Amount cell, typing a number over it erases the formula. In Excel, you can unlock only the input cells and turn on Sheet Protection. Then you can edit Quantity while locked Amount cells show a protection notice.

TL;DR: Unlock only your input range in Review > Protection > Manage Protection, save it, and turn on Sheet Protection.

Steps

  1. Drag to select the Quantity cells where you want to allow input.
  2. Open the Review tab, then select Protection > Manage Protection.
  3. Add the selected cells as an unlocked range, save, and turn on Sheet Protection.

What I saw

I tested this in Excel for the web (Korean interface) by saving the Quantity cells (C2 to C6) as an unlocked range and turning on Sheet Protection without a password. When I typed a number into a locked Amount cell, a notice appeared saying the sheet is protected, and the value did not change. When I changed Quantity from 3 to 7, the Amount updated to 14,000. What was not checked: the desktop Excel interface.

Save this post for the next time you want to keep your Excel formulas safe.

Top comments (0)