Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
tjb
 
Posts: n/a
Default vlookup using two lookup values?

Is there a way to perform a vlookup with two lookup values? For instance,
I'd like to look up the value of A1 and B1 in a table with A1 and B1 values
included to return cell C2 from the table. Any ideas? I've had limited
succcess using concatenate and then using vlookup on that cell but i'd like
to not have to do the concatenate step.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default vlookup using two lookup values?

=INDEX(Sheet2!C1:C1000,MATCH(A1&B1,Sheet2!A1:A1000 &Sheet2!B1:B1000,0))

as an array formula, so commit with Ctrl-Shift-Enter

--

HTH

RP
(remove nothere from the email address if mailing direct)


"tjb" wrote in message
...
Is there a way to perform a vlookup with two lookup values? For instance,
I'd like to look up the value of A1 and B1 in a table with A1 and B1

values
included to return cell C2 from the table. Any ideas? I've had limited
succcess using concatenate and then using vlookup on that cell but i'd

like
to not have to do the concatenate step.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave R.
 
Posts: n/a
Default vlookup using two lookup values?

You can accomplish this with index/match which works similarly to vlookup.

=INDEX(I17:I19,MATCH(1,(G17:G19="dog")*(H17:H19="c at"),0))

enter this as an array formula (use CTRL-shift-enter when entering the
formula).

This will pull the matching value from column I where columns G and H match
"dog" and "cat" respectively.



"tjb" wrote in message
...
Is there a way to perform a vlookup with two lookup values? For instance,
I'd like to look up the value of A1 and B1 in a table with A1 and B1

values
included to return cell C2 from the table. Any ideas? I've had limited
succcess using concatenate and then using vlookup on that cell but i'd

like
to not have to do the concatenate step.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave R.
 
Posts: n/a
Default vlookup using two lookup values?

Cool, something more intuitive. Have not seen that version before..


"Bob Phillips" wrote in message
...
=INDEX(Sheet2!C1:C1000,MATCH(A1&B1,Sheet2!A1:A1000 &Sheet2!B1:B1000,0))

as an array formula, so commit with Ctrl-Shift-Enter

--

HTH

RP
(remove nothere from the email address if mailing direct)


"tjb" wrote in message
...
Is there a way to perform a vlookup with two lookup values? For

instance,
I'd like to look up the value of A1 and B1 in a table with A1 and B1

values
included to return cell C2 from the table. Any ideas? I've had limited
succcess using concatenate and then using vlookup on that cell but i'd

like
to not have to do the concatenate step.





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave R.
 
Posts: n/a
Default vlookup using two lookup values?

I see now, because they're doing different things. :)


"Dave R." wrote in message
...
Cool, something more intuitive. Have not seen that version before..


"Bob Phillips" wrote in message
...
=INDEX(Sheet2!C1:C1000,MATCH(A1&B1,Sheet2!A1:A1000 &Sheet2!B1:B1000,0))

as an array formula, so commit with Ctrl-Shift-Enter

--

HTH

RP
(remove nothere from the email address if mailing direct)


"tjb" wrote in message
...
Is there a way to perform a vlookup with two lookup values? For

instance,
I'd like to look up the value of A1 and B1 in a table with A1 and B1

values
included to return cell C2 from the table. Any ideas? I've had

limited
succcess using concatenate and then using vlookup on that cell but i'd

like
to not have to do the concatenate step.









  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default vlookup using two lookup values?

How do you mean? They are accomplishing the same thing surely?

Bob


"Dave R." wrote in message
...
I see now, because they're doing different things. :)


"Dave R." wrote in message
...
Cool, something more intuitive. Have not seen that version before..


"Bob Phillips" wrote in message
...
=INDEX(Sheet2!C1:C1000,MATCH(A1&B1,Sheet2!A1:A1000 &Sheet2!B1:B1000,0))

as an array formula, so commit with Ctrl-Shift-Enter

--

HTH

RP
(remove nothere from the email address if mailing direct)


"tjb" wrote in message
...
Is there a way to perform a vlookup with two lookup values? For

instance,
I'd like to look up the value of A1 and B1 in a table with A1 and B1
values
included to return cell C2 from the table. Any ideas? I've had

limited
succcess using concatenate and then using vlookup on that cell but

i'd
like
to not have to do the concatenate step.








  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave R.
 
Posts: n/a
Default vlookup using two lookup values?

So they do, pardon me.


"Bob Phillips" wrote in message
...
How do you mean? They are accomplishing the same thing surely?

Bob


"Dave R." wrote in message
...
I see now, because they're doing different things. :)


"Dave R." wrote in message
...
Cool, something more intuitive. Have not seen that version before..


"Bob Phillips" wrote in message
...

=INDEX(Sheet2!C1:C1000,MATCH(A1&B1,Sheet2!A1:A1000 &Sheet2!B1:B1000,0))

as an array formula, so commit with Ctrl-Shift-Enter

--

HTH

RP
(remove nothere from the email address if mailing direct)


"tjb" wrote in message
...
Is there a way to perform a vlookup with two lookup values? For
instance,
I'd like to look up the value of A1 and B1 in a table with A1 and

B1
values
included to return cell C2 from the table. Any ideas? I've had

limited
succcess using concatenate and then using vlookup on that cell but

i'd
like
to not have to do the concatenate step.










  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
James
 
Posts: n/a
Default vlookup using two lookup values?

I posted this earlier but here it is again...

Assuming City is keyed in into cell "A1"

City State Miles
Lexington NC 423
Nashville TN 501
Lexington KY 354
Hickory NC 645
Bristol TN 344
Lexington TN 233

City State
Lexington KY 354 = Answer Cell "C10"

Key in the following formula into Cell "C10"
=VLOOKUP(A10:B10,A2:C7,3) then enter Crtl+Shift+Enter


"tjb" wrote:

Is there a way to perform a vlookup with two lookup values? For instance,
I'd like to look up the value of A1 and B1 in a table with A1 and B1 values
included to return cell C2 from the table. Any ideas? I've had limited
succcess using concatenate and then using vlookup on that cell but i'd like
to not have to do the concatenate step.

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default vlookup using two lookup values?

Hi James

That doesn't work. It returns 354 no matter whether you enter NC, KY or TN
in cell B10.
Even adding the false fourth argument doesn't help. There is no way that
Vlookup will work in this manner without doing a concatenation of cells.

Regards

Roger Govier


James wrote:
I posted this earlier but here it is again...

Assuming City is keyed in into cell "A1"

City State Miles
Lexington NC 423
Nashville TN 501
Lexington KY 354
Hickory NC 645
Bristol TN 344
Lexington TN 233

City State
Lexington KY 354 = Answer Cell "C10"

Key in the following formula into Cell "C10"
=VLOOKUP(A10:B10,A2:C7,3) then enter Crtl+Shift+Enter


"tjb" wrote:


Is there a way to perform a vlookup with two lookup values? For instance,
I'd like to look up the value of A1 and B1 in a table with A1 and B1 values
included to return cell C2 from the table. Any ideas? I've had limited
succcess using concatenate and then using vlookup on that cell but i'd like
to not have to do the concatenate step.

  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
James
 
Posts: n/a
Default vlookup using two lookup values?

Darn! you are right. My worksheet is also having the problem. Let me see if i
can refine it. Thanks for the update.

"Roger Govier" wrote:

Hi James

That doesn't work. It returns 354 no matter whether you enter NC, KY or TN
in cell B10.
Even adding the false fourth argument doesn't help. There is no way that
Vlookup will work in this manner without doing a concatenation of cells.

Regards

Roger Govier


James wrote:
I posted this earlier but here it is again...

Assuming City is keyed in into cell "A1"

City State Miles
Lexington NC 423
Nashville TN 501
Lexington KY 354
Hickory NC 645
Bristol TN 344
Lexington TN 233

City State
Lexington KY 354 = Answer Cell "C10"

Key in the following formula into Cell "C10"
=VLOOKUP(A10:B10,A2:C7,3) then enter Crtl+Shift+Enter


"tjb" wrote:


Is there a way to perform a vlookup with two lookup values? For instance,
I'd like to look up the value of A1 and B1 in a table with A1 and B1 values
included to return cell C2 from the table. Any ideas? I've had limited
succcess using concatenate and then using vlookup on that cell but i'd like
to not have to do the concatenate step.




  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Krishnakumar
 
Posts: n/a
Default vlookup using two lookup values?


Try iN C10,

=LOOKUP(2,1/((A2:A7=A10)*(B2:B7=B10)),C2:C7)

Normal Enter.

HTH


--
Krishnakumar


------------------------------------------------------------------------
Krishnakumar's Profile: http://www.excelforum.com/member.php...o&userid=20138
View this thread: http://www.excelforum.com/showthread...hreadid=487029

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 doesn't work until i edit(but not change) the lookup cell Confused Excel Worksheet Functions 4 November 8th 05 09:15 AM
vlookup with 2 values NITESH G Excel Discussion (Misc queries) 2 November 8th 05 08:24 AM
How can I use the vlookup function to return a sum of the values? Chaandni Excel Discussion (Misc queries) 4 November 7th 05 03:05 PM
VLookup to sum cell values Zakynthos Excel Worksheet Functions 4 July 26th 05 12:05 PM
Multiple lookup value's rucker31 Excel Worksheet Functions 0 March 11th 05 11:17 PM


All times are GMT +1. The time now is 12:37 PM.

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"