vlookup multiple variables

J

jatman

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
 
K

Ken Johnson

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

=SUMPRODUCT(--([BookB.xls]Sheet1!$A$1:$A$3=A1),--([BookB.xls]Sheet1!$B
$1:$B$3=B1),[BookB.xls]Sheet1!$C$1:$C$3)

Ken Johnson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top