Apple Numbers - Search table column and copy results from 1 sheet to another

Hello,


I have 2 sheets that I am looking to merge data into 1 column. Sorting and copy/paste wont work as on sheet 1 there is multiple rows for each customer on sheet 1. Sheet 1 has 42,000 rows and sheet 2 has 11,000 rows.


Sheet 1 contains multiple rows of data for each customer. I have the phone number and name on each row of this sheet.


Sheet 2 contains the unique Account ID, phone number email, etc.


I want to copy the account ID from sheet 2 to sheet 1.


I am looking for a solution to compare the phone number from sheet 1 to sheet 2, then search the Account ID field on sheet 2, to then return the result to sheet 1 to fill in the missing account id data on sheet 1.

iPad Pro, iPadOS 17

Posted on May 6, 2024 8:38 AM

Reply
Question marked as Top-ranking reply

Posted on May 6, 2024 5:11 PM

Have you considered using XLOOKUP?


XLOOKUP - Apple Support


Have a look at the examples in the linked entry in Formulas and Functions Help.


Here's a simple example of what I am guessing you are trying to do.




In C2, filled down:


=XLOOKUP(A2,Table 2::Telephone,Table 2::Account ID,"not found")


SG

2 replies

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.

Apple Numbers - Search table column and copy results from 1 sheet to another

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