XLOOKUP : returning multiple columns

I see that Microsoft's version of XLOOKUP can return multiple columns in one go but I am not able to reproduce this in Numbers. Am I missing something here?!

MacBook Pro 15″, macOS 12.3

Posted on May 11, 2022 8:40 AM

Reply
Question marked as Top-ranking reply

Posted on May 11, 2022 6:02 PM

It is easy to get that result, just not like Excel does it. Numbers does not have that shortcut way of doing formulas to create "arrays" of values.


Instead of cell G2 =XLOOKUP(F2,A2:A7,B2:D7)

it is

cell G2 = XLOOKUP($F2,$A2:$A7, B2:B7)

Fill right to the other columns.


or doing it the Numbers way

cell G2 = XLOOKUP($F2,$A,B)

fill right to the other columns.

You can also fill this downward to search on other names.


7 replies
Question marked as Top-ranking reply

May 11, 2022 6:02 PM in response to marconey

It is easy to get that result, just not like Excel does it. Numbers does not have that shortcut way of doing formulas to create "arrays" of values.


Instead of cell G2 =XLOOKUP(F2,A2:A7,B2:D7)

it is

cell G2 = XLOOKUP($F2,$A2:$A7, B2:B7)

Fill right to the other columns.


or doing it the Numbers way

cell G2 = XLOOKUP($F2,$A,B)

fill right to the other columns.

You can also fill this downward to search on other names.


May 11, 2022 4:45 PM in response to marconey

Perhaps what you are missing is that Numbers is not an MS Excel clone.


XLOOKUP is a relatively recent addition to Numbers supported functions. "multiple return columns does not appear to be a supported action in the Numbers version.

Image below is the complete set of examples provided with the Function Browser article on XLOOKUP.




Function Browser contains articles explaining the purpose, syntax and properties of every function supported in Numbers.


Select any cell in a table, then press = to open the Formula Editor and the Function Browser.

In the Browser, which opens in the right sidebar, typing as many characters as necessary to identify the function (two is enough for XLOOKUP) takes you to that function's page in the Browser.


If multiple returns at one go is a feature you want to see in Numbers, use the Provide Numbers Feedback menu item in the Numbers menu to make a Feature Request.


Feedback items go directly to Apple (and the production teams at Apple).


Apple provides the space for these Apple Support Communities, but has limited participation in these user-to-user communities, none of it by members of the appliction production team members.


Regards,

Barry

Regards,

Barry

May 11, 2022 4:48 PM in response to Badunit

Hi Badunit,

Thanks for the response! What I am trying to achieve is this : https://www.ablebits.com/office-addins-blog/excel-xlookup-function/

In the return-range argument of Xlookup, I'd like to have the function not just fill out A2, where I actually have the XLOOKUP function but that same function should also fill out B2, C2, D2 and so on... like in the example linked above.

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.

XLOOKUP : returning multiple columns

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