# how to use Relative and Absolute Reference in Excel

While working or learning Excel, you’ve must hear of Relative and Absolute referencing of cells and ranges. Absolute referencing is also called locking of cells. Understanding of Relative and Absolute Reference in Excel is very important to work effectively on Excel. So let's get started.

#### Absolute Referencing or Locking Cell in Formula

When you don’t want to change the referenced cell while you copy a formula cell somewhere else, you use Absolute Referencing using \$ sign. Let's see an example.

#### Create A Table Generator

In this example, you need to create a table generator. You will write a number in Cell B1. The Range B2: B11 should display the table of that number.

You just need to multiply B1 to A1 and then just copy the formula below. It won’t work my friend but let's just try this…

In cell B2, write this formula and copy it in below cell.

=B1*A2

What happened? ???? This is not the table of 2 you learned in primary school. Ok lets see whats going on here.

When copy or drag down the formula cell, the reference to B1 also changes. See below image.

This is called Relative Referencing. So how do we lock cell B2 or say give an Absolute Reference of a cell?

• Just put a \$ sign before column character and row number to lock the cell in excel. Eg. (\$A\$1).
• Or select the range in formula and hit F4 button.

The formula in cell B2 will look like this.

=\$B\$1*A2

Copy it to the below cells or anywhere else. The reference to B1 will not change.

#### Relative Referencing or Locking Cell in Formula

In the above example, the reference to cell A2 is relative. The relative cell changes relatively when the formula is copied to another cell. As happens to A2 in the above example. Where the cell B2 is copied to B3 the reference of A2 changes to A3.

You can make row absolute and column relative or vice versa by just putting \$ sign before a column or row number.

For example eg; \$A1 means the only column a is locked but the row is not. If you copy this cell to left the column A will not change but when to copy the formula down the row number will change.

Related Articles:

How to use Dynamic Worksheet Reference in Excel

How to use Relative and Absolute Reference in Excel in Excel

How to use Shortcut To Toggle Between Absolute and Relative References in Excel

How to Count Unique Values In Excel

All About Excel Named Ranges in Excel

Popular Articles:

50 Excel Shortcuts to Increase Your Productivity

How to use the VLOOKUP Function in Excel

How to use the COUNTIF function in Excel

How to use the SUMIF Function in Excel

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.