You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Permanent 'links' across Numbers sheets

I know that I can use the syntax "=Sheet 1::Table 1::B4" to link a cell in, say, a Sheet 2 to B4 in the same Numbers document's Sheet 1's B4.


But is it possible/is there a syntax, please, that will allow me to put a link in any one cell in, say, Sheet 2, in such a way that if I move the contents of Sheet 1's B4 to another location (say B14), that link in Sheet 2 will still work?


TIA…!

iMac Pro, macOS 13.7

Posted on Oct 4, 2024 12:35 PM

Reply
Question marked as Top-ranking reply

Posted on Oct 6, 2024 1:05 PM

Can't you do this with some kind of LOOKUP()?


Assuming on Sheet you you enter the NAME of the book in some cell (e.g. A2), rather than setting A2 to reference the inventory directly (e.g. '=Inventory::A23")


Now the other cells in the reading list can be set to LOOKUP() the current location of the book name in the inventory and update accordingly:


For example, here's a sheet with an 'Inventory' table and a 'Reading List' table.



(clearly I don't have your data, but I'm just using example data to show the idea)


Now, on the reading list, you add the date in column A, and in column B you enter the name of the book you're looking to read.


The 'magic' is in column C. The formula for cell C2 is:


=XLOOKUP($B2, Inventory::$A, Inventory::B, "", 0, 1)


This translates as 'take the value in cell $B2 and go find it in column $A in the inventory table using an 'exact match' search. When you find it, take the corresponding value from column B on the inventory table'.


The $ signs in this are important since they 'lock' the formula to the relevant columns. That way you can fill the formula across and down the Reading List table and it will still perform the correct lookup, but taking values from the Pages and Location columns as appropriate.


With this model you can update the inventory table with new books, and even change their order, and the reading list will automatically maintain the right links, since it's looking for the book name as the key.

12 replies
Question marked as Top-ranking reply

Oct 6, 2024 1:05 PM in response to Mark Sealey

Can't you do this with some kind of LOOKUP()?


Assuming on Sheet you you enter the NAME of the book in some cell (e.g. A2), rather than setting A2 to reference the inventory directly (e.g. '=Inventory::A23")


Now the other cells in the reading list can be set to LOOKUP() the current location of the book name in the inventory and update accordingly:


For example, here's a sheet with an 'Inventory' table and a 'Reading List' table.



(clearly I don't have your data, but I'm just using example data to show the idea)


Now, on the reading list, you add the date in column A, and in column B you enter the name of the book you're looking to read.


The 'magic' is in column C. The formula for cell C2 is:


=XLOOKUP($B2, Inventory::$A, Inventory::B, "", 0, 1)


This translates as 'take the value in cell $B2 and go find it in column $A in the inventory table using an 'exact match' search. When you find it, take the corresponding value from column B on the inventory table'.


The $ signs in this are important since they 'lock' the formula to the relevant columns. That way you can fill the formula across and down the Reading List table and it will still perform the correct lookup, but taking values from the Pages and Location columns as appropriate.


With this model you can update the inventory table with new books, and even change their order, and the reading list will automatically maintain the right links, since it's looking for the book name as the key.

Oct 4, 2024 4:51 PM in response to Mark Sealey

Mark Sealey wrote:

I have a plan of study in Numbers1. . Each row in Sheet 1 contains the author, title and details of a book to be read. Those are - if you like - an inventory of what I have awaiting me. Independent of any order in which I shall read them
2. On another sheet I have the order in which I want to read these books independent of how I have entered them in my 'database' (#1 above)
3. What I have on Sheet 1 gets sorted each time I add a book - in alphabetical order; so the rows are constantly changing positions


Rather than scatter your data in multiple places in your document, have you thought about using the tools built into modern spreadsheet software like Numbers to address common tasks like this?


Alphabetize or sort table data in Numbers on Mac - Apple Support


Filter data in Numbers on Mac - Apple Support


The idea is to keep the data in one place and use the power of the software to give you different "views" into the data.


BTW, where you write "sheet" I think you mean "table." A table in Numbers is the object that has cells in rows and columns.


SG




Oct 4, 2024 1:47 PM in response to Mark Sealey

If you are moving the cell to another place in the same table or to another table on the same sheet,


  1. Click on the cell (i.e., select it)
  2. Click and hold on the cell until it lifts out of the table
  3. Set it down somewhere else


You can do this same thing to an entire column or row or to a range of cells. If you drop it on an empty spot on the canvas, it will create a new table from it.

Oct 4, 2024 6:41 PM in response to Mark Sealey

There are no cell references that will do that. A few other ideas come to mind:


Get rid of Sheet 2, do it all in Sheet 1.

  1. Add a new column to Sheet 1 that has numbers for the order in which you want to read the books. The other books will have nothing in this column.
  2. To create a reading list, put a filter on that column to show only rows that are not blank. Sort by that column.
  3. Turn the filter off when adding new books to the database or when selecting books for your reading list. Turn it back on to see your reading list


Or,


Keep both your tables but instead of creating references to cells in Sheet 1, copy/paste the whole row of cells to Sheet 2. This way you'll have a copy of the actual text from those cells instead of references to them.


Or,


Give every book in your database a unique identifier. Use XLOOKUP to get the data from the row.

  1. Unless you have a column that already has a unique identifier/code, add a new column to the database and create/enter a code. It could be the ISBN number or a number that is the order in which you entered the books, or a concatenation of title-author. Whatever you figure out.
  2. In a new column of Sheet 2, you will enter (or copy paste from the database) the unique identifiers for the books you want to read.
  3. The rest of cells in each row will use XLOOKUP to look up the rest of the information for the books.


Oct 4, 2024 2:11 PM in response to Badunit

Badunit - thanks very much!


Yes, I can get that to work; when the 'source' cell in Sheet 1 moves - following your steps 1, 2, 3) the cell in Sheet 2 still links to its contents.


That's half way there :-) Much appreciated.


But what if I simply want to move, replicate or copy a row of cells in the 'source' Sheet (1) while they are already in an otherwise 'crowded' sheet? Or just need to close up a gap etc?


IOW I need the contents of the cell in which I have the 'link' to follow a (cell or) row regardless of where or how I move it in that other sheet.


The actual use case (in case it helps, please) is this:


  1. I have a plan of study in Numbers. Each row in Sheet 1 contains the author, title and details of a book to be read. Those are - if you like - an inventory of what I have awaiting me. Independent of any order in which I shall read them
  2. On another sheet I have the order in which I want to read these books independent of how I have entered them in my 'database' (#1 above)
  3. What I have on Sheet 1 gets sorted each time I add a book - in alphabetical order; so the rows are constantly changing positions


I need to guarantee that my references on sheet 2 (the contents of each 'linked' cell) stay correct in all cases.



Oct 4, 2024 6:40 PM in response to SGIII

Thanks, SGIII!

Rather than scatter your data in multiple places in your document, have you thought about using the tools built into modern spreadsheet software like Numbers to address common tasks like this?

Yes indeed. That's certainly good design. I would definitely work that way in a relational database… Codd and his friends :-) .


In this case I am trying to see if I can do something not too dissimilar in Numbers.


As things stand, I have - as a very much (over-)simplified example - Sheet 1 (my global list of books) with, let's say, three (to keep it really simple) rows '(TAB)' stands for the next column (in Numbers):


  1. Able (TAB) 'A new day'
  2. Baker (TAB) 'Best of days'
  3. Charlie (TAB) 'Closing thoughts'


So three rows; two columns. Simplified.


On Sheet Two (my study plan) I have (again, simplifying), something like this… dates to begin reading:


  1. October 5 (TAB) 1.Able's 'New Day'
  2. October 10 (TAB) 2. Baker's 'Best of days'


I can link to Sheet 1's rows 1 and 2 (cells A1, A2) in the relevant cells on Sheet 2 in the say which Badunit kindly suggested.


But let's say that I have to amend Sheet 1 thus; I need to intersperse a new row between (previous) rows 1 and 2:


  1. Able (TAB) 'A new day'
  2. Anscome (TAB) 'Another day'
  3. Baker (TAB) 'Best of days'
  4. Charlie (TAB) 'Closing thoughts'


Now all references in Sheet 2 row 2 need to apply to Sheet 1 row 3, not Sheet 1 row 2


But I am beginning to suspect that just isn't possible in Numbers?


Oct 4, 2024 6:44 PM in response to Badunit

Thanks, Badunit!


Three really good ways forward. I shall examine each one. I bet one will work. Extremely helpful :-) .


I may have to do some more adaptation, though, because - as I said - I have simplified: in fact there are two or potentially three Sheet 1s, three lists of books. But only one study plan.


I'm beginning to think I really ought to be doing this in FileMaker Pro :-) !

Oct 6, 2024 1:22 PM in response to Camelot

Thanks so much, Camelot! Yes :-)


And congratulations on understanding so exactly and perfectly what it is I want to do. Spot on!


Yes, it must have been the LOOKUP() Function that I have been searching for.


A bit of experimentation and I now think I can do it.


Thanks again for the clarity of your examples, and the way they approach so closely the data I have. Much appreciated!

Permanent 'links' across Numbers sheets

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.