Relative and Absolute Reference in Excel

Understand the difference between relative and absolute reference in Excel with real-life examples. Learn when and how to use them like a pro!

If you’ve ever copied a formula in Excel and noticed the result changing unexpectedly – you’re not alone! That’s where relative and absolute references come into play.

Absolute Reference in Excel
A frustrated MIS Executive thinking about how to use a dollar signs in large Excel sheet.

These references are at the heart of every Excel formula and understanding them is a game-changer, especially when you’re working with lots of data.

In this post, we’ll explain both in simple words, with real-life examples to help you confidently use them in your work.

What Are Cell References in Excel?

Before diving deep, let’s quickly recap what a cell reference is.

When you write a formula like =A1 + B1, you’re telling Excel to use values from cells A1 and B1. But when you copy that formula to another cell, Excel may change those references based on where you paste it.

This is where the concept of relative and absolute references matters.


What is a Relative Reference in Excel?

A relative reference changes when you copy the formula to another cell.

Example:

Suppose you have the following data:

ABC
PriceQtyTotal
1002=A2*B2
1501

In C2, you type:
=A2*B2
Now, if you copy this formula down to C3, Excel automatically adjusts it to:
=A3*B3

This is relative reference in action – Excel adjusts based on the row or column where you’re pasting the formula.

👉 Real-Life Use:
Used in most basic calculations like totals, discounts, or multiplying values across rows.


What is an Absolute Reference in Excel?

An absolute reference does not change when you copy the formula.

Syntax:

We use a dollar sign ($) to lock the row, column, or both:

  • $A$1 – Locks both column and row.
  • A$1 – Locks only the row.
  • $A1 – Locks only the column.

Example:

Let’s say you have a fixed tax rate in cell D2:

ABCD
PriceQtyTotalTax Rate
1002=A2*B2*$D$25%

Here, you want to multiply price × quantity × tax rate. The tax rate is always in D2.

👉 If you copy the formula down, using $D$2 keeps the tax rate reference fixed, no matter where the formula is pasted.


Relative vs Absolute Reference – Key Differences

FeatureRelative ReferenceAbsolute Reference
Adjusts when copied✅ Yes❌ No
Use caseRow-wise calculationFixed value like tax rate
Syntax ExampleA2$A$2

Mixed Reference in Excel

What if you want to lock only the row or column?

That’s where mixed references come in:

  • $A2 → Locks column A but row can change
  • A$2 → Locks row 2 but column can change

Example:

In a multiplication table, where you want the top row and left column to stay fixed:

ABCDE
12345
2
3
4

Formula in B2:
=$A2*B$1
This locks the row heading (1) and column heading (A).


Real-Life Examples

Example 1: Applying a Fixed Bonus to Salaries

NameSalaryBonus RateFinal Salary
John4000010%=B2*$C$2

Here, C2 holds the fixed bonus rate. Use $C$2 so it doesn’t change as you copy the formula down.


Example 2: SUMIF with Absolute Reference to Calculate Region Wise Sales Qty and Value

Scenario:

You have a sales transaction sheet with Region, Sales Quantity, and Sales Value.

Raw Data:

RegionSales QtySales Value
North10012000
South15018000
North809600
East9011200
South12015000
North13015600

Goal:

Create a summary table that shows total quantity and total value for each region, using a single formula that can be dragged across and down:

Summary Table:

RegionTotal QtyTotal Value
North
South
East

Formula in B2 (Qty for North):

=SUMIF($A$2:$A$7, $A10, B$2:B$7)

Now, drag right to column C and down to other regions.


Explanation:

PartDescription
$A$2:$A$7Locked criteria range – fixed so it doesn’t change while dragging
$A10Dynamic region name – locked column (A) but row adjusts
B$2:B$7Dynamic metric column – column adjusts when dragged right, but row range stays fixed

This allows the formula to:

  • Automatically sum Qty or Value based on the column it’s in
  • Pick the correct region as per row
  • Work as a dynamic matrix formula — write once, drag in all directions

Real-Life Use Cases:

  • Summarize Sales Qty and Sales Value by region, category, product group
  • Compare planned vs. actuals
  • Create MIS summaries for multiple KPIs side-by-side

Also Read SUMIF & SUMIFS in Excel


Example 3: Fetch Data Using VLOOKUP with Absolute Reference + MATCH

Imagine you have a master table of employee details like this:

Employee Data (Sheet2)

Emp IDNameDepartmentSalary
101RohanSales40000
102NehaHR45000
103AmitIT50000

You want to fetch this information into another sheet using VLOOKUP, but write the formula only once and drag it across and down.

Formula Sheet (Sheet1):

Emp IDNameDepartmentSalary
101
102

You can use the formula like this in B2:

=VLOOKUP($A2, Sheet2!$A$2:$D$4, MATCH(B$1, Sheet2!$A$1:$D$1, 0), 0)

Explanation:

  • $A2 → Lock column A so that when dragging across, the employee ID stays the same.
  • Sheet2!$A$2:$D$4 → Fully locked range of the employee table (absolute reference).
  • MATCH(B$1, Sheet2!$A$1:$D$1, 0) → Dynamically finds the correct column index by matching the column heading like “Name”, “Department”, etc.
  • 0→ Ensures an exact match.

Now, drag the formula to the right and down, and it will pull the correct data for each employee without rewriting the formula.

This is a powerful and scalable technique used in MIS reporting, HR databases, and sales records where lookup tables are involved, and multiple columns need to be fetched.

Also Read: VLOOKUP in Excel and Match in Excel

How to Switch Between Reference Types?

In Excel:

  • Select your formula
  • Press F4 after selecting the cell reference to toggle:
    • A1 ➝ $A$1 ➝ A$1 ➝ $A1 ➝ back to A1

This shortcut saves a lot of time!


Summary

Understanding cell references is essential when working with Excel formulas. Here’s a recap:

  • Relative Reference (A1) – Changes based on position.
  • Absolute Reference ($A$1) – Always refers to the same cell.
  • Mixed Reference (A$1 or $A1) – Partially locked.

Tip: Use absolute references when you’re working with fixed values like tax rates, commission %, or constants in formulas.

Final Thoughts

Learning when and how to use relative and absolute references will help you write more powerful, error-free Excel formulas. It’s a small concept with a huge impact—especially in MIS reporting, financial models, and data analysis.

So next time you copy a formula, keep an eye on those $ signs!

FAQs – References in Excel

Most likely, you need to convert a part of your formula to an absolute reference using $.

Yes. It ensures the rule checks the correct reference across multiple rows/columns.

Example:

=$A2="Pending"

The $ makes the reference absolute, which means it won’t change when you drag the formula across rows or columns. It helps keep the lookup table fixed in VLOOKUP.

  • $A1: Column locked, row flexible

  • A$1: Row locked, column flexible

  • $A$1: Both locked (absolute reference)

When using MATCH() to get column numbers dynamically, we use absolute references in the header range to ensure it doesn't shift when dragging formulas.

=MATCH(B$1, $F$1:$H$1, 0)

Both are good. Named ranges improve readability; $ locks specific cells. For large MIS templates, combining both works best.

What’s Next?

In the next post, we’ll learn about the Charts in Excel

Spread the love

Leave a Comment

Your email address will not be published. Required fields are marked *

Translate »
Scroll to Top