Reference Another Table in Numbers: The :: Syntax Explained
The examples use this table.
| A | B | C | |
|---|---|---|---|
| 1 | Product | Price | Qty |
| 2 | Apple | 4 | 10 |
| 3 | Pear | 6 | 5 |
| 4 | Kiwi | 12 | 2 |
| 5 | Grape | 8 | 3 |
Why tables need names
A Numbers sheet can hold several tables. A plain address such as B2 always means the table the formula is in. To point to another table, add the table name and two colons in front of the cell address.
=Table 2::B2Get a value from another table
This formula fetches the value of cell B2 from Table 2. It is the country code of the Netherlands.
=Table 2::B2Result: NL
Use a range from another table
You can also use a whole range from another table inside a function. Here the prices from Table 1 are added up, wherever the formula is written.
=SUM(Table 1::B2:B5)Result: 30
Refer to a table on another sheet
When the table is on a different sheet, put the sheet name in front as well, separated by two more colons. Rename sheets and tables to something short and clear, because the names are part of the formula.
=Sheet 2::Table 1::B2The easy way: click instead of type
You do not have to type the names. While you edit a formula, click a cell in another table, and Numbers writes the reference for you. If you rename the table later, the formula updates by itself.
Frequently asked questions
How do I refer to another table in Numbers?
Put the table name and two colons in front of the cell, for example =Table 2::B2.
How do I refer to a table on a different sheet?
Add the sheet name in front, for example =Sheet 2::Table 1::B2.
What happens if I rename a table?
Numbers updates formulas that refer to it, so the references keep working.
Functions in this article
Practise it yourself
Type the formula yourself in a real exercise and see right away if your answer is correct. The first exercises are free.
Start practising