How To Lock A Cell Value In Excel Formula
Keep formula cell reference constant with the f4 key.
How to lock a cell value in excel formula. On the home tab in the editing group click. For locking the cell reference of a single formula cell the f4 key can help you easily. Drag or copy formula and lock the cell value with the f4 key. To keep cell reference constant in formula you just need to add the symbol to the cell reference with pressing the f4 key.
On the protection tab uncheck the locked check box and click ok. Fortunately the header row of a data table always stays in the same place so you can lock it like a normal cell reference in excel. This means that to reference a header in a data table in a formula and let that formula stay drag able you need to lock the reference. Select the formula cell click on one of the cell reference in the formula bar and press the f4 key.
Find out how to lock in a number when doing excel formulas with help from a microsoft certified. In this example well select cell e5. Locking in a number when doing excel formulas is easy thanks to the control z shortcut. In this example well enter c5d5e2.
Finally protect the sheet. To lock all cells that contain formulas first unlock all cells. Select the cell that will contain the formula. In the example formula above thats exactly what we did.
Then the selected cell reference is locked. Now enter the formula to calculate the desired result. Please do as follows. Inside the formula click the cell reference you want to lock cell e2 and press the f4 key.
Next lock all formula cells. Go ahead to lock the other cell references of.