How can I specify all columns of a table in the HLOOKUP function?

I'm running Numbers on an iMac. I specify the range for the HLOOKUP as Table 1::$C$2:AL$32. Is there a way to specify all columns of a table instead so that I can copy the formula and use it in another sheet where the number of columns might be different?

iMac 21.5″, macOS 12.7

Posted on Jan 17, 2025 2:19 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 18, 2025 3:54 PM

You can specify all the columns using "whole row" range reference (example is for rows 1 through 22 of Table 1):

Table 1::1:22

This includes columns A and B, neither of which are in the references you are currently using.

Note that if your other tables have more rows, it will not include them all. If your other table has fewer rows, it will be a reference error.


Also, if you add more rows to the bottom of the table, it will not automatically include them (same as with the ranges you are currently using). However, if you add rows in the middle of the table it will include them or if your last row is a footer row and is included in the range it will include new rows added at the bottom (because they get inserted above the footer row).

2 replies
Question marked as Top-ranking reply

Jan 18, 2025 3:54 PM in response to BettyMitch

You can specify all the columns using "whole row" range reference (example is for rows 1 through 22 of Table 1):

Table 1::1:22

This includes columns A and B, neither of which are in the references you are currently using.

Note that if your other tables have more rows, it will not include them all. If your other table has fewer rows, it will be a reference error.


Also, if you add more rows to the bottom of the table, it will not automatically include them (same as with the ranges you are currently using). However, if you add rows in the middle of the table it will include them or if your last row is a footer row and is included in the range it will include new rows added at the bottom (because they get inserted above the footer row).

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.

How can I specify all columns of a table in the HLOOKUP function?

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