Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
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




  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,073
Default vlookup multiple variables

On Aug 5, 8:50 am, jatman wrote:
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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP - TWO Variables RJB Excel Discussion (Misc queries) 4 December 13th 07 08:29 AM
VLOOKUP - Two Variables RJB Excel Discussion (Misc queries) 0 December 12th 07 06:49 AM
using VLookup with two variables to get results Scott@CW Excel Discussion (Misc queries) 2 March 28th 07 07:56 PM
vlookup Variables Megadrone Excel Worksheet Functions 2 November 28th 06 11:30 PM
Please Help! vlookup & match with multiple variables ivygirl Excel Worksheet Functions 2 January 7th 06 09:46 AM


All times are GMT +1. The time now is 12:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"