9.4. Creation and Use of Basic Formulas: Cell References (Relative, Absolute and Mixed)

Formulas are the heart of spreadsheets, allowing users to perform calculations, analyze data and automate tasks. In Google Sheets, understanding how cell references work is critical to creating efficient and dynamic formulas. There are three main types of cell references: relative, absolute, and mixed.

Relative References

Relative cell references are the default type of reference in Google Sheets. When you use a relative reference in a formula and copy it to another cell, the reference changes according to the relative position of the new cell. For example, if you have a formula in cell B2 that is =A1+10 and you copy it to cell B3, the formula in B3 will automatically adjust to =A2+10 code>. This is extremely useful for applying the same formula to multiple rows or columns of data without having to edit each formula individually.

Absolute References

Sometimes you don't want a cell reference to change when you copy a formula. In this case you would use an absolute reference. To make a reference absolute in Google Sheets, you add a dollar sign ($) before the column letter and/or row number. For example, =$A$1+10 is an absolute reference. If you copy this formula from B2 to B3, it will remain as =$A$1+10. Absolute references are useful when you have a constant value or a specific parameter that should not change regardless of where the formula is applied in the worksheet.

Mixed References

Sometimes you may want only part of the cell reference to be fixed. For example, you might want to fix the column but allow the row to change when you copy the formula. This is known as a mixed reference. To create a mixed reference, you add a dollar sign just before the part you want to pin. For example, =$A1+10 is a mixed reference that fixes column A but not the row. If you copy this formula from B2 to B3, it becomes =$A2+10. This is useful when you are working with data where one dimension is fixed (like a tax rate in a specific column) and the other is variable (like different items across multiple rows).

Using Cell References in Formulas

When creating formulas, it's important to choose the correct cell reference type to ensure that your calculations work as expected. Here are some practical tips:

  • Fill sequences: Use relative references when you want to use Google Sheets' fill function (drag the fill handle down or to the side) to apply a formula to a sequence of cells.
  • Constant values: Use absolute references to reference cells that contain constant values ​​or parameters that should not change, such as interest rates or tax amounts.
  • Data Combinations: Use mixed references when you are combining data that varies in one direction (e.g., rows) but is constant in another (e.g., columns).

Practical Examples

Let's look at some practical examples of how these references can be applied to formulas in Google Sheets:

Example 1: Suppose you have product prices in sequential columns (B2, C2, D2...) and a constant tax rate in cell A1. If you want to calculate the final price including taxes for each product, you would use the following formula in cell B3: =B2*(1+$A$1). When you copy this formula to C3, D3, etc., the reference to the product price changes (B2 to C2, D2, etc.), but the reference to the tax rate remains fixed in A1.

Example 2: Imagine an expense spreadsheet where you have expense categories in columns (Transportation, Food, etc.) and months in rows (January, February, etc.). If you wanted to add up the expenses for each category for all months, you would fix the column and allow the row to vary. For example, in cell B13, you could use the formula =SUM(B2:B12) and then copy it to C13, D13, etc., to add up the expenses in the other categories.

Conclusion

Understanding and correctly applying relative, absolute, and mixed cell references can significantly increase your efficiency when working with Google Sheets. By mastering these concepts, you'll be equipped to create complex, dynamic formulas that can adapt as your spreadsheet grows and your data evolves.

Now answer the exercise about the content:

Which of the following statements about cell references in Google Sheets is correct?

You are right! Congratulations, now go to the next page

You missed! Try again.

Article image Creation and use of basic formulas: Basic functions (SUM, AVERAGE, MINIMUM, MAXIMUM, COUNT.NUM)

Next page of the Free Ebook:

14Creation and use of basic formulas: Basic functions (SUM, AVERAGE, MINIMUM, MAXIMUM, COUNT.NUM)

5 minutes

Obtenez votre certificat pour ce cours gratuitement ! en téléchargeant lapplication Cursa et en lisant lebook qui sy trouve. Disponible sur Google Play ou App Store !

Get it on Google Play Get it on App Store

+ 6.5 million
students

Free and Valid
Certificate with QR Code

48 thousand free
exercises

4.8/5 rating in
app stores

Free courses in
video, audio and text