Formula for matching names and numbers between two sheets in Number

Here is an example of what I am needing.


Sheet 1


Sheet 2:

Column A I need to call the name from Sheet 1: Column A to match the number in Sheet 2: Column B (Ignore Flow-A, B, C), just need it to look at the number and match the number in Sheet 1 and pull the name over from sheet 1 to sheet 2.


If you can help me with a formula for this, that'd be great.

Thanks!



[Re-Titled by Moderator]

Posted on Jan 17, 2025 7:36 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 18, 2025 12:31 AM

If the codes in the first table are Text (left-aligned by default but you may have changed the alignment manually) then you can do something like this:


In A2, filled down:


=XLOOKUP(TEXTBEFORE(C2,"-"),Table 1::B,Table 1::A,"not found")


If you got those leading 0s in the Code column by applying the 'Numeral System' Data Format with 4 places, then you can do this:



=XLOOKUP(VALUE(TEXTBEFORE(C1,"-")),Table 1::F,Table 1::A,"not found")



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


For future reference note that those are tables in Numbers, not sheets. A sheet in Numbers does not have cells. It is a blank canvas on which you can place multiple tables, charts, text boxes, and other objects.


More on the functions used here:


XLOOKUP - Apple Support


VALUE - Apple Support


SG



4 replies
Question marked as Top-ranking reply

Jan 18, 2025 12:31 AM in response to DanE_6

If the codes in the first table are Text (left-aligned by default but you may have changed the alignment manually) then you can do something like this:


In A2, filled down:


=XLOOKUP(TEXTBEFORE(C2,"-"),Table 1::B,Table 1::A,"not found")


If you got those leading 0s in the Code column by applying the 'Numeral System' Data Format with 4 places, then you can do this:



=XLOOKUP(VALUE(TEXTBEFORE(C1,"-")),Table 1::F,Table 1::A,"not found")



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


For future reference note that those are tables in Numbers, not sheets. A sheet in Numbers does not have cells. It is a blank canvas on which you can place multiple tables, charts, text boxes, and other objects.


More on the functions used here:


XLOOKUP - Apple Support


VALUE - Apple Support


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.

Formula for matching names and numbers between two sheets in Number

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