extract data from on table based on the values in a column in a different table

I have two tables. One table contains customer name and contact info. I have a second table that contains customer name, invoice numbers, job discriptions, date of service. I would like to take the second table and add the contact information from table 1 to each record (row) in the second table using the name as the common piece of data.


Anyhelp?

MacBook Pro 13″, macOS 10.14

Posted on Jan 19, 2024 5:00 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 19, 2024 6:43 AM

The XLOOKUP function will do what you describe.



The formula in C2, filled right and down:


=XLOOKUP($A2,Table 1::$A,Table 1::B,"NF")


Use ; instead of , in the formula if your regions uses , as the decimal separator.


More in XLOOKUP here.


XLOOKUP - Apple Support


(This is also accessible via Help > Formulas and Functions Help in your menu.)


SG



4 replies
Question marked as Top-ranking reply

Jan 19, 2024 6:43 AM in response to neverworks

The XLOOKUP function will do what you describe.



The formula in C2, filled right and down:


=XLOOKUP($A2,Table 1::$A,Table 1::B,"NF")


Use ; instead of , in the formula if your regions uses , as the decimal separator.


More in XLOOKUP here.


XLOOKUP - Apple Support


(This is also accessible via Help > Formulas and Functions Help in your menu.)


SG



Jan 19, 2024 5:59 PM in response to neverworks

neverworks wrote:

iWhere do i put that formula?


The screenshot shows where the formula is. Also, I wrote "The formula in C2 ...."


If you start by reproducing what I did you should get the idea.


If you are new to Numbers be sure to have a look at Help > Numbers Help in the menu. Also have a look at the templates at File > New in your menu and at the link I provided about the XLOOKUP formula.


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.

extract data from on table based on the values in a column in a different table

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