Cell References in excel
Cell References in excel
Relative Reference
By default, Excel uses relative references. See the formula in cell D2
below. Cell D2 references (points to) cell B2 and cell C2. Both references
are relative.
1. Select cell D2, click on the lower right corner of cell D2 and drag it down
to cell D5.
Cell D3 references cell B3 and cell C3. Cell D4 references cell B4 and cell
C4. Cell D5 references cell B5 and cell C5. In other words: each cell
references its two neighbors on the left.
Absolute Reference
See the formula in cell E3 below.
The reference to cell H3 is fixed (when we drag the formula down and
across). As a result, the correct lengths and widths in inches are
calculated. Visit our page about absolute reference to learn more about
this type of reference.
Mixed Reference
Sometimes we need a combination of relative and absolute reference
(mixed reference).
Result:
Note: we don't place a $ symbol in front of the row number of $B2 (this
way we allow the reference to change from $B2 (Jeans) to $B3 (Shirts)
when we drag the formula down). In a similar way, we don't place a $
symbol in front of the column letter of B$6 (this way we allow the
reference to change from B$6 (Jan) to C$6 (Feb) and D$6 (Mar) when we
drag the formula across).
Copy a Formula
Copy 101 | Fill Handle | Absolute Reference | Move a Formula | Exact
Copy | Copy Magic
Copy 101
Simply use CTRL + c and CTRL + v to copy and paste a formula in Excel.
1. For example, to copy a formula, select cell A3 below and press CTRL +
c.
Fill Handle
Use the fill handle in Excel to quickly copy a formula to other cells.
1. For example, select cell A3 below, click on the lower right corner of cell
A3 (the fill handle) and drag it across to cell F3.
Result.
You can also use the fill handle to quickly copy a formula down a column.
2. For example, select cell C1 below, click on the lower right corner of cell
C1 (the fill handle) and drag it down to cell C6.
Result.
Tip: instead of dragging the fill handle down, simply select cell C1 and
double click the fill handle. If you have hundreds of rows of data, this can
save time!
Absolute Reference
Create an absolute reference to fix the reference to a cell or range of cells.
When you copy a formula, an absolute reference never changes.
Check:
Explanation: the absolute reference ($E$2) stays the same, while the
relative reference (B2) changes to B3, B4, B5, B6 and B7. Visit our page
about absolute reference to learn more about this topic.
Move a Formula
To move a formula in Excel, simply use cut (CTRL + x) and paste (CTRL +
v). Excel pros use the following trick to move a formula.
Exact Copy
To make an exact copy of a formula, without changing the cell references,
execute the following easy steps.
Result:
Copy Magic
To make an exact copy of multiple formulas, repeat the previous steps for
each formula. You can also use the following magic trick.
3. Use CTRL + c and CTRL + v to copy and paste the text strings.
4. Select the range B6:B10, hold down CTRL, select the range E6:E10
and replace all occurrences of 'xxx' with equal signs (the exact opposite of
step 2).
Result.
Conclusion: cell B6 and cell E6 contain the exact same formula, cell B7
and cell E7 contain the exact same formula, etc.
3D-reference
A 3D-reference in Excel refers to the same cell or range on multiple
worksheets. First, we'll look at the alternative.
Result.
4. This is quite a lot of work. Instead of doing this, use the following 3D-
reference: North:South!B2 as the argument for the SUM function.
1. We start simple. The name box below displays the address of the active
cell (B6).
2. You can use the name box to select a cell, range or named range. For
example, click in the name box and type E2:F8.
3. Press Enter.
Note: the name box only displays the upper-left cell of a selected range.
4. Use the name box to quickly create a named range. For example,
select the range A2:A9 below, click in the name box and type Scores.
5. Press Enter.
7. Finally, click the drop-down arrow in the name box to see a list of all the
named ranges in a workbook. For example, click Ages.
External References
Create External Reference | Alert | Edit Links
2. In the Company workbook, select cell B2 and type the equal sign =
3. On the View tab, in the Window group, click Switch Windows.
4. Click North.
6. Type a +
Alert
Close all workbooks. Change a number in the workbook of a division. Close
all workbooks again. Open the Company workbook.
Edit Links
On the Data tab, in the Queries & Connections group, click Edit Links to
launch the Edit Links dialog box.
1. If you didn't update the links, you can still update the links here. Select
a workbook and click Update Values to update the links to this workbook.
Note how the Status changes to OK.
2. If you don't want to display the alert and update the links automatically,
Click Startup Prompt, select the third option, and click OK.
Hyperlinks
Existing File or Web Page | Place in This Document | Edit Hyperlink
Style | Hyperlink Function
3a. To create a hyperlink to an existing file, select a file (use the Look in
drop-down list, if necessary).
3b. To create a hyperlink to a web page, type the Text to display, the
Address, and click OK.
Result:
Note: if you want to change the text that appears when you hover over the
link, click ScreenTip.
4. Type the Text to display, the cell reference, and click OK.
Result:
Note: if you want to change the text that appears when you hover over the
hyperlink, click ScreenTip.
4. Click Format.
Hyperlink Function
You can also use the HYPERLINK function in Excel to create hyperlinks. The
HYPERLINK function has two arguments.
Note: instead of creating a hyperlink to a web page, create a hyperlink to
an existing file. For example, replace the first argument with "C:\Reports\
sales2020.docx" and the second argument with "Open Report".
Note: press Enter to insert this function. Excel adds the closing
parenthesis for you.
4. You can use the intersect operator (space) to return the intersection of
two named ranges.
Note: the named range Feb refers to the range B3:D3 and the named
range Chocolate refers to the range B2:B13.
Percent Change
The percent change formula is used very often in Excel. For example,
to calculate the Monthly Change and Total Change.
1c. Select cell C3, click on the lower right corner of cell C3 and drag it
down to cell C13.
2b. Select cell D3. On the Home tab, in the Number group, apply a
Percentage format.
2c. Select cell D3, click on the lower right corner of cell D3 and drag it
down to cell D13.
Add a Column
To add a column in Excel, right-click the column letter and click Insert.
When you insert a column or row, cell references update automatically.
1. First, select cell A10 below and press ALT + = to quickly sum a column
of numbers.
2. Select column A.
Result:
You can also use the Insert option on the Home tab.
8. On the Home tab, in the Cells group, click Insert, Insert Sheet Columns.
Result:
To quickly add a column, select a column and use the shortcut CTRL SHIFT
+.
Result:
Note: to quickly add multiple columns, select multiple columns and use
the same shortcut.
Absolute Reference
Cell | Range | Named Range | F4
Cell
Let's start with fixing a reference to a cell.
1. Cell C2 below refers to cell B2 and cell E2. Both references are relative.
2. This is what happens when we copy the formula in cell C2 to cell C3.
3. Fix the reference to cell E2 by placing a $ symbol in front of the column
letter and row number.
4. To quickly copy the formula in cell C2 to the other cells, select cell C2,
click on the lower right corner of cell C2 and drag it down to cell C7.
Check:
Explanation: the absolute reference ($E$2) stays the same, while the
relative reference (B2) changes to B3, B4, B5, B6 and B7.
Range
Sometimes you need to fix a reference to a range. For example, when
using the RANK function to rank numbers in a data set.
1. Cell C2 below refers to cell B2 and the range B2:B7. Both references are
relative.
2. This is what happens when we copy the formula in cell C2 to cell C3.
3. Fix the reference to the range B2:B7 by placing $ symbols in front of the
column letters and row numbers.
4. To quickly copy the formula in cell C2 to the other cells, select cell C2,
click on the lower right corner of cell C2 and drag it down to cell C7.
Check:
Explanation: the absolute reference ($B$2:$B$7) stays the same, while
the relative reference (B2) changes to B3, B4, B5, B6 and B7.
Named Range
Instead of using absolute range references, create a named range. This
way you can make your formulas easier to understand.
1. Select the range B2:B7, type a name in the Name box and press Enter.
2. Now you can use this named range in your formulas. Select cell C2,
enter the RANK function shown below and copy this formula to the other
cells.
Check:
Note: visit our page about named ranges to learn more about this topic.
F4
Use the F4 key to quickly toggle between all 4 types of cell references.
1. For example, select cell C2 below, click in the formula bar and move the
insertion point in or to the right of E2.
Note: visit our page about cell references to learn more about mixed
reference in Excel.
ADDRESS
The ADDRESS function in Excel creates a cell reference as text, based
on a given row and column number.
1. The ADDRESS function below returns $E$8. The row number is 8 and
the column number is 5.
2. The ADDRESS function below returns $G$3. The row number is 3 and
the column number is 7.
5. The ADDRESS function below returns Sheet2!G3. Simply use the fifth
argument of the ADDRESS function to create a sheet reference.
Explanation: the INDIRECT function converts the text value into a valid
sheet reference. As a result, the formula refers to the value in cell G3
(200) on the worksheet named Sheet2.
6. For example, use the ADDRESS function in Excel to find the cell
address of the maximum value in a column.
Note: visit our page about locating the maximum value in a column for
detailed instructions on how to create this formula.