Excel 2019 (Part 14): Relative and Absolute Cell References

There are two types of cell references: relative and absolute. Relative and absolute references behave differently when copied and filled into other cells.

In Excel , there are two types of cell references: relative and absolute. Relative and absolute references behave differently when copied and filled into other cells. Relative references change when a formula is copied to another cell. Absolute references, on the other hand, remain unchanged regardless of where they are copied.

 

Relative references

By default, all cell references are relative references. When copied across multiple cells, they change based on the relative positions of the rows and columns. For example, if you copy the formula =A1+B1 from row 1 to row 2, the formula will become =A2+B2. Relative references are especially convenient whenever you need to repeat the same calculation across multiple rows or columns.

How to create and copy formulas using relative references

The following example aims to create a formula that multiplies the price of each item by the quantity. Instead of creating a new formula for each row, you can create a single formula in cell D4 and then copy it to the other rows. The example will use relative references to ensure the formula calculates the exact total for each item.

1. Select the cell that will contain the formula. For example, we would select cell D4.

 

2. Enter the formula to calculate the desired value. For example, you would enter =B4*C4.

3. Press Enter on the keyboard. The formula will be calculated and the result will be displayed in the cell.

4. Locate the fill handle in the bottom right corner of the desired cell. The example will locate the fill handle for cell D4.

5. Click and drag the fill handle to the cells you want to fill. For example, we would select cells D5:D13.

 

6. Release the mouse button. The formula will be copied to the selected cells with relative references, displaying the result in each cell.

You can double-click on filled cells to check the accuracy of their formulas. Relative cell references should be different for each cell, depending on its row.

Absolute reference

There may be times when you don't want a cell reference to change when copied to other cells. Unlike relative references, absolute references don't change when copied or filled. You can use an absolute reference to keep a row and/or column unchanged.

An absolute reference is specified in a formula by adding the dollar sign ( $ ). This sign can precede a column reference, a row reference, or both.

Generally, you would use the $A$2 format when creating formulas that contain absolute references. The other two formats are used much less frequently.

When writing formulas, you can press the F4 key on your keyboard to switch between relative and absolute cell references, as shown in the video below. This is an easy way to quickly insert an absolute reference.

 

How to create and copy formulas using absolute references

The example below will use cell E2 (containing a 7.5% tax rate) to calculate the sales tax for each item in column D. To ensure the reference to the tax rate remains constant—even if the formula is copied and filled into other cells—cell $E$2 needs to be set as an absolute reference.

1. Select the cell that will contain the formula. For example, we would select cell D4.

2. Enter the formula to calculate the desired value. For example, you would enter =(B4*C4)*$E$2 , making $E$2 an absolute reference.

3. Press Enter on the keyboard. The formula will perform the calculation, and the result will be displayed in the cell.

4. Locate the fill handle in the bottom right corner of the desired cell. The example will locate the fill handle for cell D4.

5. Click and drag the fill handle into the cells you want to fill (cells D5:D13 in the example).

6. Release the mouse button. The formula will be copied to the selected cells with absolute references, and the values ​​in each cell will be calculated.

 

You can double-click on filled cells to check the accuracy of the formulas. Absolute references must be the same for each cell, while other references are relative to the cell's row.

Make sure to include the dollar sign ( $ ) whenever you are making an absolute reference across multiple cells. The dollar sign was omitted in the example below. This caused Excel to interpret it as a relative reference, producing an incorrect result when copied to other cells.

Using cell references across multiple worksheets

Excel allows you to reference any cell on any worksheet, which can be especially useful if you want to reference a specific value from one worksheet to another. To do this, simply begin the cell reference with the worksheet name, followed by an exclamation mark ( ! ). For example, if you want to reference cell A1 on Sheet1 , its cell reference would be Sheet1!A1.

Note that if the worksheet name contains spaces, you will need to include double quotes ( '' ) around the name. For example, if you want to reference cell A1 on a worksheet named July Budget , its cell reference would be 'July Budget'!A1.

How to reference cells on spreadsheets

The example below illustrates a cell whose value is calculated across two worksheets. This allows the exact same value to be used on two different worksheets without rewriting formulas or copying data.

1. Locate the cell you want to reference and note the worksheet containing that cell. For example, to reference cell E14 on the Menu Order worksheet .

2. Navigate to the desired worksheet. For example, we would select the Catering Invoice worksheet.

 

3. Locate and select the cell where you want the value to appear. For example, we would select cell C4.

4. Enter the equals sign ( = ), the worksheet name followed by the exclamation mark (!) and the cell address. For example, you would enter ='Menu Order'!E14.

5. Press Enter on your keyboard. The value of the referenced cell will appear. Now, if the value of cell E14 changes on the Menu Order worksheet , it will be automatically updated on the Catering Invoice worksheet.

If you rename your worksheet later, the cell reference will be automatically updated to reflect the new worksheet name.

If you enter the wrong worksheet name, a #REF! error will appear in the cell. In the example below, the worksheet name was misspelled. To edit, ignore, or check for the error, click the Error button next to the cell and select an option from the menu.

Related posts
Other Program articles
  • Excel 2019 (Part 13): Creating Complex Formulas

    khi có nhiều hơn một phép toán trong công thức, thứ tự các phép toán sẽ cho excel biết phép tính nào cần thực hiện trước tiên.
  • Excel 2019 (Part 12): Introduction to Formulas

    một trong những tính năng mạnh mẽ nhất trong excel là khả năng tính toán thông tin số bằng công thức. cũng giống như một máy tính, excel có thể cộng, trừ, nhân và chia.
  • Excel 2019 (Part 11): Layout and Printing

    khi đã chọn được cài đặt bố cục trang của mình, thật dễ dàng để xem trước và in workbook từ excel bằng cách sử dụng bảng điều khiển print.
  • Excel 2019 (Part 8): Working with Multiple Worksheets

    khi làm việc với một lượng lớn dữ liệu, bạn có thể tạo nhiều trang tính để giúp sắp xếp workbook của mình và giúp tìm kiếm nội dung dễ dàng hơn.
  • Excel 2019 (Part 7): Understanding Number Formats

    các định dạng số cho bảng tính biết chính xác loại dữ liệu bạn đang sử dụng, như tỷ lệ phần trăm (%), đơn vị tiền tệ ($), thời gian, ngày tháng, v.v…
  • Excel 2019 (Part 6): Formatting Cells

    Định dạng cơ bản có thể tùy chỉnh giao diện cho workbook của bạn, cho phép bạn thu hút sự chú ý đến các phần cụ thể và làm cho nội dung dễ xem và dễ hiểu hơn.
Category

System

Windows XP

Windows Server 2012

Windows 8

Windows 7

Windows 10

Wifi tips

Virus Removal - Spyware

Speed ​​up the computer

Server

Security solution

Mail Server

LAN - WAN

Ghost - Install Win

Fix computer error

Configure Router Switch

Computer wallpaper

Computer security

Mac OS X

Mac OS System software

Mac OS Security

Mac OS Office application

Mac OS Email Management

Mac OS Data - File

Mac hardware

Hardware

USB - Flash Drive

Speaker headset

Printer

PC hardware

Network equipment

Laptop hardware

Computer components

Advice Computer

Game

PC game

Online game

Mobile Game

Pokemon GO

information

Technology story

Technology comments

Quiz technology

New technology

British talent technology

Attack the network

Artificial intelligence

Technology

Smart watches

Raspberry Pi

Linux

Camera

Basic knowledge

Banking services

SEO tips

Science

Strange story

Space Science

Scientific invention

Science Story

Science photo

Science and technology

Medicine

Health Care

Fun science

Environment

Discover science

Discover nature

Archeology

Life

Travel Experience

Tips

Raise up child

Make up

Life skills

Home Care

Entertainment

DIY Handmade

Cuisine

Christmas

Application

Web Email

Website - Blog

Web browser

Support Download - Upload

Software conversion

Social Network

Simulator software

Online payment

Office information

Music Software

Map and Positioning

Installation - Uninstall

Graphic design

Free - Discount

Email reader

Edit video

Edit photo

Compress and Decompress

Chat, Text, Call

Archive - Share

Electric

Water heater

Washing machine

Television

Machine tool

Fridge

Fans

Air conditioning

Program

Unix and Linux

SQL Server

SQL

Python

Programming C

PHP

NodeJS

MongoDB

jQuery

JavaScript

HTTP

HTML

Git

Database

Data structure and algorithm

CSS and CSS3

C ++

C #

AngularJS

Mobile

Wallpapers and Ringtones

Tricks application

Take and process photos

Storage - Sync

Security and Virus Removal

Personalized

Online Social Network

Map

Manage and edit Video

Data

Chat - Call - Text

Browser and Add-on

Basic setup