Cell addresses were covered in a previous blog (What use is a cell address in a spreadsheet?). Next we move into how the addressing types (relative and absolute) can speed up creating your calculations across a spreadsheet.
One of the most useful facilities of a spreadsheet is that you can setup the calculation and copy it to other places to reuse it.
In other words, for example, you have numbers in columns that need to be added up. You write the calculation to add up the first column, check that it’s right, and then copy it across to the other columns.
Without the addressing ‘thing’ this wouldn’t work – image if it just adds up the same group of numbers every time?
Relative Address
This is where the first option – Relative Addressing – comes in.
Pretend your giving out directions from your house to the local supermarket, to a friend.
You start at your house, and explain where to go. However you didn’t say that you were starting at your house.
So, the friend leaves their home, and follows your directions – they end up somewhere completely different.
Moving over to the spreadsheet:
We want to add up the two numbers in each column.
Writing the first calculation, we can see it’s right. Ready for it to be copied to the next two columns.
MS Excel uses Relative Addressing as standard.
Rather than seeing the cell addresses (A1 / A2), it actually works out the location from the starting point – the selected cell.
In this case, it’s 2 cells above, plus, 1 cell above.
Which means that when we copy it, the directions stay the same, but because our starting point moves (first to B3, then C3), the destination changes – giving us the calculation we want.
Absolute Addressing
There maybe times that you want to refer to a specific cell in your formula – an address that doesn’t change.
This is is where Absolute (Fixed) Addressing comes in.
Looking at an example of when you might want to use absolute addressing:
We can write a simple formula to add the VAT to each cost. But when we reference cell H1 and copy it down, it will move to H2, H3 etc.
Making the formula wrong.
As relative addressing is the default, to make a cell absolute you need to “add something” in.
That “something” is the dollar sign ($).
=A2*$H$1
In the example above, the dollar signs are before the column letter and the row number – locking both parts.
You can manually type the dollar signs in – either as you enter the formula, or you can go back and edit it, when you know it’s right.
Note: I recommend the second option – write the formula, check it, then add the absolute references.
Now, as it’s copied down, the VAT cell (H1) remains the same – giving the right answer.
Give it a go yourself!
More tips and shortcuts on my YouTube Channel – subscribe to be notified of new videos.
If you’d like some tips, including AutoCalculations in Excel – sign up for my 15 Top Productivity Tips for Microsoft365
Related Posts
- Complete List Of Options Where You Can Customise the ColourWhen it comes to colour in your office files, we rarely move beyond changing the font or fill colour. But there is so much more to play with when you customise the colour. Read through the post, or jump to your favourite office suite – Google or Microsoft. Google Let’s start with Google, as it’s… Read more: Complete List Of Options Where You Can Customise the Colour
- How to choose your favourite online spreadsheetUnsure of which online spreadsheet program to choose? Find out here the features and benefits of both Microsoft’s Excel and Google Sheets, as well as some tips on how to pick the right one for your needs.
- What’s the point of the Excel Information Functions?What are the information functions in MS Excel? How can you make use of the data they add into your spreadsheet. Read the post to learn more.
- How to use Date and Time Functions in ExcelUnsure how to work with dates and times in Excel? This guide will show you how, with a variety of date and time functions explained.
- VLookup in Excel: What Do You Need to Know Step by StepLearn how to use the VLookup function step by step and you’ll find that it’s actually not as difficult as you might think. Check out this guide to some of the basics!