Skip to main content

Absolute and Relative Cell Referencing in Excel

  - There are two important spreadsheet concepts we haven't yet explored: absolute cell references, and relative cell references. We'll explore these two ideas now. First, absolute cell references.

Relative cell references in Microsoft Excel

Take a look at the spreadsheet below (create it for yourself):
A simple spreadsheet
As you can see, it's quite simple. All we are doing is adding together the numbers in cells A1 and A2. We then put the answer in cell B2.
But suppose we wanted to copy the formula in cell B2 to cell B3. Let's try it and see what happens.
  • Click inside cell B2
  • Then click once with your right mouse button
  • A menu pops up
  • With your left mouse button, click Copy
  • Now click inside cell B3
  • Click once with your right mouse button
  • When the menu pops up, click on Paste
  • Your spreadsheet will look like the one below:
The contents have been copied
Excel has done something rather odd. It has given us the answer 25! The sum 20 + 25 clearly does not equal 25, so what's going on?
Well, look inside the formula bar. The formula is now reading = A2 + A3. Yet that was not the formula we pasted from cell B2. We copied and pasted the formula = A1 + A2. So why did Excel copy and paste the wrong formula?
The answer is that we used a Relative cell reference for B2. We have been using Relative cell references throughout this book. This is Excel's default, and it works like this when you copy a formula:
The formula is = A1 + A2. The answer is in cell B2. When copying the formula to cell B3 Excel will note that the cells for the formula start UP one Row, and LEFT one column. When you paste the formula somewhere else, Excel will not paste the formula, but paste this UP one then Left one. So starting at Cell B3, which is where we're pasting to, go UP one Row. This takes you to row 2. Then go one column Left. This takes you to Column A. So the start for the new formula is cell A2. Your formula will now read = A2 + A3. As there is nothing in cell A3, the formula is really = 25 + 0. Which gives the answer 25.
And that's Relative cell referencing.

Absolute cell references in Microsoft Excel

If you want to keep a reference to the original cells, A1 and A2, you need to use Absolute cell references. Absolute cell referencing is done with dollar signs.
Change your formula in cell B2 to this:
= $A$1 + $A$2
Then copy and paste the new formula to cell B3. You should now get the answer you were looking for: 45. Your spreadsheet will look like the one below:
Absolute cell reference
To recap, then:
  • When you want to copy and paste formulas, use Absolute cell references
  • To use Absolute referencing, place a dollar sign before the Column letter and a dollar sign before the Row number (You can mix absolute and relative cell references, but we won't go into that.)

In the next part of this section, we'll take a look at Named Ranges.

Comments

Popular posts from this blog

PRATYUSHA HOME

Hi interesting readers, Prathysha NGO, Chennai. Bala gurukul orphange, chennai. Pratyusha support, Hyderbad. Krr oldage home, Vizag. Disa foundation.......................................................... so on..................... Join hands with us for a good cause. Thank you all. Contact  us on our  whatsapp no:  8939374254    for the more details. You can pay through Paytm scanner. for each donor we will give an online PDF book as a gift. Thank you Pratyusha Home
Java Contents  -This free course is for those wishing to learn the Java programming language. It is aimed at complete beginners to the subject, and no knowledge is assumed. The software you need to do the course is set out below, in the "What you need to get started" link. Once you have downloaded everything you need, you can make start by following the links on this page. Good luck! Home Page > Section 1: Getting Started with Java 1. What you need to get started 2. The Netbeans Software 3. Java Comments 4. The Structure of Java Code 5. How to Run your Java Programmes 6. Printing to the Output Window 7. Sharing your programmes with others > Section 2: Variables 1. Integer Variables in Java 2. Double Variables 3. Short and Float 4. Operator_Precedence 5. Java String Variables 6. Getting Input from the User 7. Option Panes > Section 3: Control Flow 1. If Statements in Java 2. If Else Statements 3...
Microsoft Word  -This is a full and free computer course for Microsoft Word 2007 to 2016. It is designed for complete beginners. If you're not sure whether or not you're in the right place take a look at Section 1.1 below, How to Open Microsoft Word. For those who have older versions of Word (versions up to 2003) then your tutorials are here:  Word 2000 to 2003 (Older versions) Home Page > Section One - Get Started with Microsoft Word   1.1 How to Open Microsoft Word 1.2 Finding Your Way Around 1.3 Typing Your First Letter 1.4 How to Save Your Work 1.5 Highlighting Techniques 1.6 Opening Word Documents 1.7 Add an Address To A Letter 1.8 Spelling and Grammar Checking > Section Two - Document Formatting   2.1 Crime Statistics Document 2.2 Bold Text 2.3 Italics and Underline 2.4 Seting Tab Stop Positions 2.5 Creating Bulleted Lists 2.6 Working With Fonts 2.7 Setting Up Page Margins > Section Three - C...