Locking cells, columns, and rows in excel give you the freedom to protect your data. After protecting a worksheet, by default, each and every cell are This article provides you the different techniques of how to lock cells in Excel. We will also see the other techniques of locking and unlocking columns. Apr 26, 2011 Click on the cell with cell references you want to lock - in this case, C1. Now select the formula in the formula bar so that either the whole formula or just the part you want to lock is highlighted, and then press F4.
This tutorial shows how to hide formulas in Excel so they do not show up in the formula bar. Also, you will learn how to quickly lock a selected formula or all formulas in a worksheet to protect them from being deleted or overwritten by other users. Microsoft Excel does its best to make formulas easy to interpret. When you select a cell containing a formula, the formula displays in the Excel formula bar. If that's not enough, you can evaluate each part of the formula individually by going to the Formulas tab Formula Auditing group and clicking the Evaluate Formulas button for a step-by-step walkthrough.
But what if you don't want your formulas to be shown in the formula bar, nor anywhere else in the worksheet, for confidentiality, security, or other reasons? Moreover, you may want to protect your Excel formulas to prevent other users from deleting or overwriting them. For example, when sending some reports outside your organization, you may want the recipients to see the final values, but you don't want them to know how those values are calculated, let along making any changes to your formulas. Luckily, Microsoft Excel makes it fairly simple to hide and lock all or selected formulas in a worksheet, and further on in this tutorial we will show the detailed steps. How to lock formulas in Excel If you've put a lot of effort in creating an awesome worksheet that you need to share with other people, you certainly wouldn't want anyone to mess up any smart formulas that you worked so hard on! The most common way of preventing people from tampering with your Excel formulas is to protect the worksheet. However, this does not just lock formulas, but rather locks all cells on the sheet and stops users from editing any of the existing cells and entering any new data.
Sometimes you may not want to go that far. The following steps demonstrate how you can only lock a selected formula(s) or all cells with formulas on a given sheet, and leave other cells unlocked. Unlock all cells in the worksheet. For starters, unlock all of the cells on your worksheet. I realize that it may sound confusing because you have not locked any cells yet. However, by default, the Locked option is turned on for all cells on any Excel worksheet, whether an existing or a new one.
This does not mean that you cannot edit those cells, because locking cells has no effect until you protect the worksheet. So, if you want to lock only cells with formulas, be sure to perform this step and unlock all cells on the worksheet first.
If you want to lock all cells on the sheet (whether those cells contain formulas, values or are blank), then skip the first three steps, and go right to. Select the entire worksheet either by pressing Ctrl + A, or clicking the Select All button (the gray triangle in the top left corner of the worksheet, to the left of the letter A). Open the Format Cells dialog by pressing Ctrl + 1. Or, right-click any of the selected cells and choose Format Cells from the context menu. In the Format Cells dialog, go to the Protection tab, uncheck the Locked option, and click OK. This will unlock all cells in your worksheet.
Select the formulas you want to lock. Select the cells with the formulas you want to lock. To select non-adjacent cells or ranges, select the first cell/range, press and hold Ctrl, and select other cells/ranges. To select all cells with formulas on the sheet, do the following:.
Go to the Home tab Editing group, click Find & Select button, and choose Go To Special. In the Go To Special dialog box, check the Formulas radio button (this will select the check boxes with all formula types), and click OK: 3. Lock cells with formulas. Now, go to lock the selected cells with formulas. To do this, press Ctrl + 1 to open the Format Cells dialog again, switch to the Protection tab, and check the Locked checkbox.
The Locked option prevents the user from overwriting, deleting or changing the contents of the cells. Protect the worksheet.
To lock formulas in Excel, checking the Locked option is not sufficient because the Locked attribute has no effect unless the worksheet is protected. To protect the sheet, do the following. Go to the Review tab Changes group, and click Protect Sheet. The Protect Sheet dialog window will appear, and you type a password in the corresponding field. This password is needed for unprotecting the worksheet. No one, even yourself, will be able to edit the sheet without entering the password, so be sure to remember it!
Also, you need to select the actions that are allowed in your worksheet. As you see in the screenshot above, two checkboxes are selected by default: Select locked cells and Select unlocked cells. If you click the OK button leaving only these two options selected, the users, including yourself, will be able only to select cells (both locked and unlocked) in your worksheet. If you want to allow some other actions, e.g.
Sort, auto-filter, format cells, delete or insert rows and columns, check the corresponding options in the list. Once you've selected any additional actions you want to allow, if any, click the OK button. The Confirm Password dialog box will appear and ask you to retype the password, to prevent an accidental misprint from locking up your Excel worksheet forever. Retype the password and click OK. Your Excel formulas are now locked and protected, though visible in the formula bar. If you also want to hide formulas in your Excel sheet, read through the following section. If you need to edit or update your formulas once in a while and you don't want to waste your time on protecting / unprotecting the worksheet, you can move your formulas to a separate worksheet (or even workbook), hide that sheet, and then, in your main sheet, simply refer to the appropriate cells with formulas on that hidden sheet.
How to hide formulas in Excel Hiding a formula in Excel means preventing the formula from being shown in the formula bar when you click a cell with the formula's result. To hide Excel formulas, perform the following steps.
Select a cell or range of cells containing the formulas you want to hide. You can select non-adjacent cells or ranges by holding the Ctrl key, or the entire sheet by pressing the Ctrl + A shortcut. To select all cells with formulas, use the Go To Special Formulas feature as demonstrated in.
Open the Format Cells dialog by doing any of the following:. Press the Ctrl + 1 shortcut. Right-click the selected cell(s) and choose Format Cells from the context menu. Go to the Home tab Cells group, and click Format Format Cells. In the Format Cells dialog box, switch to the Protection tab, and select the Hidden checkbox. It is this option that prevents an Excel formula from being shown in the formula bar.
![How to lock values in excel mac How to lock values in excel mac](https://cdn1.tekrevue.com/wp-content/uploads/2013/06/20130601_excelmac_hidecells_1.jpg)
The Locked attribute, which prevents the contents of the cells from editing, is selected by default, and in most cases you'd want to leave it this way. Click the OK button. Protect your Excel worksheet by performing. Please remember that locking cells and hiding formulas has no effect until you protect the worksheet (a short notice right underneath the Locked and Hidden options on the Format Cells dialog points to the next steps). To make sure of this, select any cell with a formula, and look at the formula bar, the formula will still be there. To really hide formulas in Excel, be sure to. How to remove protection and unhide formulas in Excel To get the previously hidden formulas to show in the formula bar again, do one of the following:.
On the Home tab, in the Cells group, click the Format button, and select Unprotect Sheet from the drop-down menu. Then type the password you entered when protecting the spreadsheet, and click OK. Or, go to the Review tab Changes group, and click the Unprotect Sheet button.
If you've before protecting the workbook, you may want to uncheck the Hidden checkbox after unprotecting the worksheet. This won't have any immediate effect because the formulas start showing in the formula bar as soon as you've removed the worksheet protection. However, if you ever want to protect the same sheet in the future, but let the users see the formulas, make sure the Hidden attribute is not selected for those cells (select the cells with formulas, press Ctrl + 1 to open the Format Cells dialog, go to the Protection tab and remove a tick from the Hidden box). This is how you can hide and lock formulas in Excel. In the next tutorial, we will discuss various ways to and you will learn how to apply a formula to all cells in a given column in a click.
I thank you for reading and hope to see you again soon! You may also be interested in:.
Is it possible to have an cell (unprotected and with a formula in it) revert to the formula which was there originally, even after somebody entered a different value? Maybe after a restart? Link a formula to the cell and have the formula be active even if a different value was entered by somebody else? I.E.: cell with existing formula, somebody types over formula, then decides they did so in error and delete what was typed, is there a way to retain the formula, without having to enter it again, or hitting undo? Protecting the cell is not an option. Thanks in advance!
Occasionally you will need to add a picture to a spreadsheet, or someone will send you a spreadsheet with pictures in it. But if you need to move a row or column that contains pictures, you will probably run into a problem where the data in the row or column moves, but the pictures do not. Fortunately you can adjust this behavior by locking a picture to a cell in Excel 2011.
Our guide below will show you how to modify your spreadsheet picture to achieve this result. Locking a Picture to a Cell in Excel 2011 The steps in this article were written for and performed on the Excel 2011 version of the software, for the Mac. The steps are similar for Windows versions. You can to learn about locking pictures to cells in Excel 2010. Once you have completed the steps below, the picture in the cell will resize with the rest of the cells in its row or column, and will be included if you cut and paste a row or column to a different location in the worksheet. Here is how to lock a picture to a cell in Excel 2011 –.
Open the worksheet in Excel 2011. Locate the picture that you wish to lock to the cell. Resize the row and column so that the picture is contained entirely within the cell. Right-click the picture, then click the Format Picture option. Click the Properties option in the column at the left side of the window. Check the option to the left of Move and size with cells, then click the blue OK button at the bottom of the window. These steps are also shown below with pictures – Step 1: Open your worksheet in Excel 2011.
Step 2: Find the picture that you want to lock to a cell. Step 3: Resize the row and column so that the picture is contained entirely within the cell.
You can resize a row by clicking and dragging the one of the borders of the row number, and you can resize a column by clicking and dragging one of the borders around the column letter. Step 4: Right-click the picture, then click the Format Picture option. Step 5: Click Properties in the column at the left side of the window. Step 6: Click the circle to the left of Move and size with cells, then click the OK button at the bottom of the window. If there is a lot of formatting in a workbook that is making it difficult for you to work, then it might be easiest to simply remove all of that formatting.
Learn and make it simpler to format your worksheet to your liking.