LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bpeltzer
 
Posts: n/a
Default VLOOKUP USING 2 LOOK UP VALUES

vlookup only accepts one value. You could either create another column in
your table that comines the two columns (ex: in C1: =A1&";"&B1) then embed a
similar concatenation in your lookup
(=vlookup(A1&";"&B1,table_cols_3_and_4,2,false). Or, if the combination of A
and B is always unique and you're returning a numeric value, you could use
sumproduct:
=sumproduct(--(table_column1=A1),--(table_column2=B1),table_column3)

"Jay Trull" wrote:


I am trying to use VLOOKUP for both columns A&B and I get the "#value!"
error in the cell with the formula. This is the formula I am using:
=VLOOKUP(A1:B1,table_array,3,false) If I use just column A:
=VLOOKUP(A1,table_array,3,false) it works but I get 0.14 as the result. How
do I write this so I can lookup both A&B. Thanks

A B C
RA-2 20 0.14
RA-2 30 0.17
RA-2 40 0.2
RA-2 50 0.22
RA-2 60 0.24
RA-4 20 0.28
RA-4 30 0..35
etc. etc. etc..

 
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
Using Match function with duplicate values in an array Richard Excel Worksheet Functions 3 April 22nd 23 07:45 PM
Vlookup with multi values tim Excel Worksheet Functions 2 January 8th 06 02:20 PM
Vlookup on a worksheet with similar values GWHITE1 Excel Worksheet Functions 3 December 31st 05 04:16 PM
vlookup returning multiple values soph Excel Worksheet Functions 2 October 14th 05 05:17 AM
VLOOKUP, OFFSET, MATCH PROBLEM, HELP? Steve Excel Worksheet Functions 0 January 30th 05 09:11 PM


All times are GMT +1. The time now is 04:23 AM.

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

About Us

"It's about Microsoft Excel"