View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
jatman jatman is offline
external usenet poster
 
Posts: 88
Default vlookup multiple variables

i have two workbooks BOOKA and BOOKB. In BOOKA, i am using the following
formula: =IF(B4="","",VLOOKUP(B4,'BOOKB'!B5:C20,2,FALSE))

In BookA, the data is as follows:
COLUMNA COLUMNB COLUMNC
Store 16 Joe formula will be here
Store 16 Bob ....

In BOOKB, the data is as follows:
COLUMNA COLUMNB COLUMNC
Store 16 Joe 45
Store 17 Joe 32
Store 16 Bob 18

I need the formula in BOOKA to return the value from BOOKB, if the Store
matches and the name is present. the value returned would be 45 if the
lookup criteria was Store 16 and Joe or 32 if the lookup criteria was Store
17 and Joe.

thanx,

jat