What’s Relative and Absolute Addressing in a Spreadsheet?

Relative and Absolute Addressing

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:

A simple formula automatically uses Relative (change) addresses.

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:

Example spreadsheet where you want the VAT amount to always be used in the formula.

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.

Adding absolute (fixed) reference to an Excel formula

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

Share this post

Shopping Basket