LOOKUP MULTIPLE COLUMNS AND ROWS

I am not getting correct results from my lookup formula. Say I wanted to choose the letter A, or D, or F, or M and its corresponding number i.e. 1, 4, 1, 3. The lookup formula only returns correct values for the first row of letters. Can anyone help. Should be simple enouhg, but it appears it only looks at one row and no further but makes up incorrect random numbers


Header 1Header 2Header 3Header 4Header 5
12345
ABCDE
FGHIJ
KLMNO


Posted on Oct 2, 2018 7:19 AM

Reply
7 replies

Oct 4, 2018 11:56 AM in response to Foxfire2008

Rearrange your data as shown below in the Key table. Enter your request and calculate the result in a separate table, using the formula(s) provided below.

User uploaded file

Formula(s)

The formula used in Request is shown between the two Request tables.


LOOKUP(A1,Key::$A,Key::$B)


As can be seen, this formula returns an error message if the cell above it is empty.


Request 2 contains the same formula, enclosed in IFERROR, used as an error trap to catch the error messages above and replace them with a null string ( "" ), which gives the appearance of an empty cell.


IFERROR(LOOKUP(A1,Key::$A,Key::$B),"")


Each formula ins entered in cell A2 of its table, then filled right to the end of row 2.


All values shown in Key are entered from the keyboard.


Regarding LOOKUP:


The function browser entry for LOOKUP does mention the possibility of using a two-dimensional array for the search-where and/or the result-values, and gives illustrative examples of each. Take a close read of the description and notes if you want to use the original layout of your table.


To open the Function Browser, click on any cell in a table and type =.


Regards,

Barry

Oct 4, 2018 7:09 AM in response to Barry

1 2 3 4 5 67 89
ABCDEFGHI
JKLMNOPQR
STUVXYZ
BALDYL
213D63


RESULT wanted to find Corresponding numbers for the Letters spelling BALDYL . The number below the name in the Grid above is what I would expect to see. I use the following formular:

LOOKUP(A5,A$2$:I$4$,A$1$:I$1$)


THIS FORMULAR ONLY FINDS THE CORRESPONDING NUMBERS TO THE LETTERS IF THEY APPEAR IN ROW2 IN THIS EXAMPLE.

CAN YOU HELP PROVIDE THE CORRECT FORMULAR

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.

LOOKUP MULTIPLE COLUMNS AND ROWS

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