I have a table like this
Letter | Selected letter | Number |
---|---|---|
A | B | 1 |
B | D | 2 |
C | 3 | |
D | 4 |
I'd like to have as a result:
Selected letter | Number |
---|---|
B | 1 |
D | 4 |
I tried to compare the two firsts columns to retrieve the third one with no luck.
With the table of key-number pairs in columns A2:A
and C2:C
, you can look up the keys in column B2:B
with this formula in cell D2
:
=arrayformula( iferror( vlookup(B2:B, A2:C, columns(A2:C), false) ) )
,
as decimal separators, you will have to use semicolons ;
as formula argument separators. In other words, replace all the commas in the formula with semicolons. See Set a spreadsheet’s location & calculation settings and Syntax differences in formulas by Ben Collins for more info.
Commented
Jun 4 at 9:01