Cell Reference in Excel (Absolute, Relative, and Mixed)

Cell Reference in Excel

In this article, you will learn how to use absolute, relative, and mixed cell references. We’ll use a sample dataset for Products and Sales, in which we have individually referred to cells and summed them up. ⏷ What is Cell Reference?
⏷ How to Create or Change a Cell Reference
⏵ A Simple Reference
⏵ Reference a Cell Range
⏵ Cell Reference in a Function
⏵ Reference Text in Another Cell
⏵ Use Cell Reference in a Formula Using Worksheet Name
⏵ Cell Reference Using OFFSET Function
⏷ Clicking Cells to Refer
⏷ Types of Cell References
⏵ Relative Cell Reference & Its Application
⏵ Absolute Cell Reference & Its Application
⏵ Mixed Cell Reference & Its Application
⏷ Switch Among Relative, Absolute, and Mixed References
⏷ Difference Between Absolute, and Relative Cell Reference
⏷ Refer Entire Row or Column
⏷ Refer Entire Column Except for First Few Rows
⏷ Variable Row & Column Number As Cell Reference
⏷ Cell Reference to Refer Another Worksheet or Workbook
⏷ Difference Between A1 and R1C1 Reference Style
⏷ Named Range to Refer Cells
⏷ Circular Reference in Excel
⏷ 3D Reference in Excel

What Is a Cell Reference?

Cell references create dynamic formulas that can be replicated and adapted, allowing for efficient data analysis and manipulation.

How to Create or Change a Cell Reference

Example 1 – A Simple Reference

A simple reference in Excel involves pointing to the content of a single cell using its column letter and row number (e.g., C6).

In this section, we have used Product and corresponding Sales data. Here we will use individual product sales values from C6 to C14 and sum them up individually.

2. Simple cell reference with formula

=C6+C7+C8+C9+C10+C11+C12+C13+C14

3-After Using simple cell reference

Example 2 – Reference a Cell Range

We have Products and Sales for two different months, January and February. As the product names are the same for both months, we can refer to the cell values of January in February.

4-Dataset for referencing cell range

=B6:B14

5. Referencing cell range

Example 3 – Cell Reference in a Function

To find the Total Sales from a dataset with Product and Sales information, we will add up all the sales values in the dataset.

6.Dataset for cell reference in function

=SUM(C6:C14)

which would replace the more convoluted list:

=SUM(C6,C7,C8,C9,C10,C11,C12,C13,C14)

7.After using function

Example 4 – Reference Text in Another Cell

In this section, we have a dataset of Product and Sales values. The cell C16 is fetching a sales value based on the value of cell B16. We have to refer to the Product to find the corresponding sales value.

8.Dataset for Referencing text

9.After Referencing text

Example 5 – Use a Cell Reference in a Formula with a Worksheet Name

For example, =Sheet2!A1 refers to cell A1 in the Sheet2 worksheet. This is one of the few ways you can cross-reference between worksheets.

We are going to find the total sales when sales data is in another worksheet Jan.

10.Before referring to another worksheet

=SUM(Jan!C4:C12)

The formula =SUM(Jan!C4:C12) in cell C5 of the current worksheet calculates the sum of values in the range C4 to C12 of another worksheet named Jan.

11.Use Cell Reference In A Formula Using Worksheet Name

Example 6 – Cell Reference Using the OFFSET Function

We have a dataset of prices of different products in different shops. We will extract the whole row.

12. Before adding offset function

=OFFSET(B5,4,0,1,4)

13. After Adding Offset function

Example 7 – Clicking on Cells to Refer to Them

Let’s sum the sales of TV and Oven.

Types of Cell References and How to Use Them

Type 1 – Relative Cell Reference

A relative cell reference adjusts its position when copied to a new location. It refers to a cell’s position relative to the one containing the formula.

For instance, when multiplying B6*C6 in a cell and dragging the Fill handle down, the formula for subsequent rows will multiply B7*C7, B8*C8, and so on.

Pros:

Cons:

We have a dataset for the Unit Price of some products and the number of Unit Sold. We have multiplied C6 and D6. When we drag and drop the Fill Handle, we will get respective multiplications such as C7*D7, C8* D8, and so on.

16- Relative cell reference dataset

17-Relative cell reference after last cell

Type 2 – Absolute Cell Reference

An absolute cell reference does not change the referred cell when you drag down the Fill Handle or copy the formula. If you put $C$6 as an absolute cell reference, the C6 will be constant throughout the cells after you drag the Fill Handle.

Pros:

Cons:

We have used the commission percentage as an absolute cell reference in the dataset for the Products. We have to write the formula in the F8 cell. Commission, $C$5, is an absolute cell reference and the C5 cell will be fixed:

18-Absolute cell reference in Excel dataset

19-Result of absolute cell reference

Type 3 – Mixed Cell Reference

A mixed cell reference is a blend of fixed (absolute) and relative references. For example, with $C6, column C stays constant as you drag horizontally, while C$6 keeps row 6 fixed when dragged vertically. It’s a handy way to control references partially in formulas.

Pros:

Cons:

We will use three different types of commission in three different tiers. So, we have to make some rows absolute and some columns relative.

20-Mixed cell reference data

Here, column E will not change (so we lock the product sales reference) and row 6 will not change (since it contains the commission values) because the $ sign is given before them.

21-Applying mixed cell reference

How to Switch Between Relative, Absolute, and Mixed References in Excel

To switch between references, press F4 while referencing a cell. It will change your cells to relative, absolute, and mixed references in the following order:

Switching between references

Differences Between Absolute and Relative Cell References in Excel

We have calculated the Total using both relative cell reference and absolute cell reference. When we use a relative cell reference, the total revenue will change respectively. But when we use an absolute cell reference, the total revenue will not change for the other rows.

25- Difference between cells Absolute cell reference and relative cells

How to Reference an Entire Row or Column in Excel?

26-Use entire column as reference

27-Using entire column

We’ll find the average price of a TV by referencing an entire row.

=SUM(6:6)/3

29-Referring entire row as reference

30. Entire row reference

How to Reference an Entire Column Except for First Few Rows in Excel

In this section, we have used the dataset of Product and Sales. But, we will ignore some rows. Here we reference from row C8 to C1048576 (max value for row numbers), leaving out C1 to C7.

31-Choose the entire column except row

=SUM(C8:C1048576)

32- Whole column except few rows

How to Use Variable Row and Column Numbers as a Cell Reference in Excel

We will create a user-input model where you can select any row and column number in two separate cells and fetch the value of the corresponding cell.

33-Dataset for variable row and column

=INDIRECT(ADDRESS(B17,C17))

34- How to Use Variable Row & Column Number As Cell Reference

How to Use a Cell Reference to Refer to Another Worksheet or Workbook in Excel

We have used the formula below to refer to another worksheet March in the present worksheet:

=SUM(March!C4:C12)

35-How to Use Cell Reference to Refer Another Worksheet or Workbook

We have another workbook named December.xlsx and from the Sales in December worksheet, we want to get the total sales and average sales.

= SUM('C:\Users\HP\Downloads\[December.xlsx] Sales in December'!$C$4:$C$12)

36- Another workbooks sales december

What Is the Difference Between the A1 and R1C1 Reference Styles in Excel?

There are two styles of cell references: A1 and R1C1.

The A1 reference style identifies cells by letters and numbers (e.g., A1). The R1C1 reference style uses row and column offsets from the active cell (e.g., R2C3 means two rows down and three columns to the right of the active cell).

We will calculate the Total price for the below dataset and show the formula using both reference styles.

=C6*D6

C6 refers to the cell in column C and 6th

D6 refers to the cell in the second column D and 6th

=RC[-2]*RC[-1]

RC[-2] refers to two columns to the left of the current column, and RC[-1] refers to one column to the left.

If you need to go one row up while staying in the same column, you’d put R[-1]C.

37. difference between r1c1 and a1

38-Enabling R1c1

How to Use a Named Range to Refer to Cells in Excel

39-Named range

=SUM(TotalSales)

40. Sum using named range

What Is a Circular Reference in Excel?

A circular reference in Excel happens when a cell’s formula refers to itself or creates a loop with other cells, causing calculation issues.

Here C16 refers to itself. Every time you open the worksheet, it will add the previous data and you will get an ever-increasing sum.

41. Circular reference

=SUM(C6:C16)

43-Warning when circular reference

How to Use a 3D Reference in Excel

A 3D reference in Excel is a way to combine information from the same cell or range of cells across multiple sheets in a workbook. It’s like looking at the data from different sheets all at once.

We have extracted the corresponding sales columns of May, June, July worksheets and summed them up by using the formula below:

=SUM(May!C4:C12,June!C4:C12,July!C4:C12)

44-How Can We Use 3D Reference in Excel

Download the Practice Workbook