Multi-Key or Multi-Condition VLOOKUP

 

 

 

 

HomeOur CompanyContact Us
Business Solutions                                                      Business Intelligence                                                      Business Success
Custom software solutions to fit your business needs.
586-899-5599

 

Read all about the Defense Logistic Agency Bidding System

 

 
 
 
 
Browse Services
  Database
  Web
  Server
  ERP
  eCommerce
  Custom Software
  Consulting

 

Excel Links
  Microsoft Solutions
  Resources
  Tips
  Fun Stuff

Back to Excel Tips Index

1. Create a column in your Lookup table and concatenate the values you wish to look up (must be the column furthest to the left of the data to return if using VLOOKUP.)

2. Now you can look up multiple keys using the following formula as an example:

Synt. =VLOOKUP(key_1 & “@” & key_2, Rng_to_Lookup, Col_Ind, [0 or 1])

ex. =VLOOKUP(A1&”@”&B1,Sheet1!A:C,3,0)

Note: There is a “@” in the middle of the two keys/conditions.  This is to avoid errors such as concatenating two different records that form the same value.  For instance 12A and BC equals 12ABC; 12 and ABC equals 12ABC.  Two very different records equal the same key when concatenated.  Using the “@” between the keys helps avoid this error.

Back to Excel Tips Index

 
Send mail to excelchampion@excelchampion.com with questions or comments about this web site.
Copyright © 2008 Excel Champion Consulting