I have two tables
Table 1
CODE1 CODE2
521R 854900511
521G 854900511
513R 889202858
Table 2
Number CODE1 CODE2
6847.83 521R 854900511
440.84 521G 854900511
0 513R 889202858
0 513G 879202858
I want to Merge column Number
to table 1. Is there a way to use VLOOKUP
with multiple matching criteria
Yes. You can create a helper column in source table to provide unique identifiers for VLOOKUP()
by concatenating individual identifiers like this:
=$A1&$B1
And then you perform VLOOKUP()
with multiple criteria like this:
=VLOOKUP($B1&$C1,...)
Use Index/Match as an array formula ( Ctrl-Shift-Enter after inputting formula)
{=INDEX(A7:A10,MATCH(B2&C2,B7:B10&C7:C10,0))}
Paste this in your Table 1
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.