Pulling values from another table

How would I write a formula that fills a cell with a value from a different table based on the row number of the other table matching a cell value in the current table. It's simple lookup for a (filemaker) database but I'd like to get this working in this spreadsheet. Both table are on the same page.


Thanks-

MacBook Pro, OS X Mavericks (10.9)

Posted on Dec 9, 2013 5:55 PM

Reply
15 replies

Dec 9, 2013 6:27 PM in response to jtice

Hi jtice,


Here's one way to do that, using the INDIRECT function:

User uploaded file


The formula in A2 of Table 1, copied down is:


=INDIRECT("Table 2::B"&B2)


The values in column B are the row numbers used to look up values from Table 2.



As you no doubt aware there are VLOOKUP, HLOOKUP, and LOOKUP functions that match on value, rather than row number, if you want to do that kind of lookup.


SG

Dec 10, 2013 8:37 AM in response to Jerrold Green1

I have no idea about other languages. You just get what you would normally view on the site from your locale.


It's hard to miss the other languages. This is prominent on the landing page of the html help:


User uploaded file


Anyway, I'm guessing Site Sucker by default grabs only pages related to the currently selected language, and I hope my app will too.


SG

Dec 10, 2013 4:50 AM in response to SGIII

I think I will need to us one of the lookup functions (VLOOKUP, HLOOKUP, LOOKUP) because the row number I'll be looking up in Table 1 will match a variable in the current row of Table 2, and will not be related by relative position.


I am just trying to get my head around this application for the first time. I've used Excel but my real experience is Filemaker, so I tend to think in terms of triggers, keys, relationships rather than position. I need to read the manual I suppose.


Thanks for your help!

Dec 10, 2013 5:00 AM in response to jtice

Maybe an example will help. Or maybe a short mock-up of the two tables with the answers typed in so we know what you are trying to achieve. The solutions given above match your initial description of the problem. Now I'm not sure what you are asking. Written language is not very precise; examples are often very helpful. I don't want to waste either of our times with another solution to the wrong problem.

Dec 10, 2013 7:57 AM in response to SGIII

Got it! Thanks a bunch! You'd think there would be a simple menu item or preference to turn off alerts since that's going to happen anytime you set up a spreadsheet for data that's to be entered in the future.


Is there a comprehensive PDF manual for this new version (3.0.1)? I've looked and all I'm finding is '08 and '09 manuals.

Dec 10, 2013 8:08 AM in response to jtice

JT,


The V3 manual is HTML. You can open the help document in your browser by clicking the link in the Help menu.


I have used "Site Sucker" to make a local copy of the web version that can be used off-line.


Further to the Error trap and Error Display Preferences, Error Flags serve an important purpose, so trap them wisely. Best to avoid doing that especially while editing the expressions in a table.


Jerry

Dec 10, 2013 8:07 AM in response to Jerrold Green1

I have used "Site Sucker" to make a local copy of the web version that can be used off-line.


Hi Jerry,


That's a good idea. I was thinking of trying something like that with DEVONthink site downloading capability. I'm curious, when you "suck" the site down is it easy to retrieve just the English? Or do you end up with all the languages?


SG

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Pulling values from another table

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