Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Using vlookup with two lookup values

I have a range, E5:J748. I want to use a vlookup that will find the
first instance of the value in cell W5 (which is '06G271') and the
value in cell H5 (which is 'Steady State') occuring in the same row
together within the range E5:J748. So it looks for the two values in
W5 and H5, searches for the first row within E5:J748 that they occur
together and then returns the value in cell J5 as the lookup which in
this case is 'BRC'. I have no idea how to use a vlookup, or modify a
vlookup to accept two lookup values as criteria for the lookup. Any
ideas how?

Thanks,

Tom

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Using vlookup with two lookup values

I was going to say

=INDEX(J5:J748,MATCH(1,(E5:E748-W5)*(F5:F748=H5),0))

as an array formula, but I am wondering if you meant contiguous cells
anywhere within the row?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Tommy" wrote in message
ups.com...
I have a range, E5:J748. I want to use a vlookup that will find the
first instance of the value in cell W5 (which is '06G271') and the
value in cell H5 (which is 'Steady State') occuring in the same row
together within the range E5:J748. So it looks for the two values in
W5 and H5, searches for the first row within E5:J748 that they occur
together and then returns the value in cell J5 as the lookup which in
this case is 'BRC'. I have no idea how to use a vlookup, or modify a
vlookup to accept two lookup values as criteria for the lookup. Any
ideas how?

Thanks,

Tom



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Using vlookup with two lookup values

=INDEX(J5:J748,MATCH(1,(E5:E748="06G271")*(H5:H748 ="Steady State"),0))

Enter withe Ctrl+Shift+Enter

Better to put the values in cells:

=INDEX(J5:J748,MATCH(1,(E5:E748=X1)*(H5:H748=X2),0 ))

X1="06G271"
X2="Steady State"

HTH

"Tommy" wrote:

I have a range, E5:J748. I want to use a vlookup that will find the
first instance of the value in cell W5 (which is '06G271') and the
value in cell H5 (which is 'Steady State') occuring in the same row
together within the range E5:J748. So it looks for the two values in
W5 and H5, searches for the first row within E5:J748 that they occur
together and then returns the value in cell J5 as the lookup which in
this case is 'BRC'. I have no idea how to use a vlookup, or modify a
vlookup to accept two lookup values as criteria for the lookup. Any
ideas how?

Thanks,

Tom


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Using vlookup with two lookup values

Bob,
I "assumed" the W5 was a typo and should have been E5 and so the
Op was comparing columns E & H to find J.

Interesting how we interpret these questions!

"Toppers" wrote:

=INDEX(J5:J748,MATCH(1,(E5:E748="06G271")*(H5:H748 ="Steady State"),0))

Enter withe Ctrl+Shift+Enter

Better to put the values in cells:

=INDEX(J5:J748,MATCH(1,(E5:E748=X1)*(H5:H748=X2),0 ))

X1="06G271"
X2="Steady State"

HTH

"Tommy" wrote:

I have a range, E5:J748. I want to use a vlookup that will find the
first instance of the value in cell W5 (which is '06G271') and the
value in cell H5 (which is 'Steady State') occuring in the same row
together within the range E5:J748. So it looks for the two values in
W5 and H5, searches for the first row within E5:J748 that they occur
together and then returns the value in cell J5 as the lookup which in
this case is 'BRC'. I have no idea how to use a vlookup, or modify a
vlookup to accept two lookup values as criteria for the lookup. Any
ideas how?

Thanks,

Tom


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Using vlookup with two lookup values

I thought that at one stage John, but then the answer can only be J5, so why
bother with a formula?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Toppers" wrote in message
...
Bob,
I "assumed" the W5 was a typo and should have been E5 and so the
Op was comparing columns E & H to find J.

Interesting how we interpret these questions!

"Toppers" wrote:

=INDEX(J5:J748,MATCH(1,(E5:E748="06G271")*(H5:H748 ="Steady State"),0))

Enter withe Ctrl+Shift+Enter

Better to put the values in cells:

=INDEX(J5:J748,MATCH(1,(E5:E748=X1)*(H5:H748=X2),0 ))

X1="06G271"
X2="Steady State"

HTH

"Tommy" wrote:

I have a range, E5:J748. I want to use a vlookup that will find the
first instance of the value in cell W5 (which is '06G271') and the
value in cell H5 (which is 'Steady State') occuring in the same row
together within the range E5:J748. So it looks for the two values in
W5 and H5, searches for the first row within E5:J748 that they occur
together and then returns the value in cell J5 as the lookup which in
this case is 'BRC'. I have no idea how to use a vlookup, or modify a
vlookup to accept two lookup values as criteria for the lookup. Any
ideas how?

Thanks,

Tom






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Using vlookup with two lookup values

Another assumption: he used row 5 for illustration but not for the first
time, I could be wrong! My E not W assumption was simply because they are
next to each other
on the keyboard ... but perhaps that just reflects my own keyboard dyslexia!

"Bob Phillips" wrote:

I thought that at one stage John, but then the answer can only be J5, so why
bother with a formula?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Toppers" wrote in message
...
Bob,
I "assumed" the W5 was a typo and should have been E5 and so the
Op was comparing columns E & H to find J.

Interesting how we interpret these questions!

"Toppers" wrote:

=INDEX(J5:J748,MATCH(1,(E5:E748="06G271")*(H5:H748 ="Steady State"),0))

Enter withe Ctrl+Shift+Enter

Better to put the values in cells:

=INDEX(J5:J748,MATCH(1,(E5:E748=X1)*(H5:H748=X2),0 ))

X1="06G271"
X2="Steady State"

HTH

"Tommy" wrote:

I have a range, E5:J748. I want to use a vlookup that will find the
first instance of the value in cell W5 (which is '06G271') and the
value in cell H5 (which is 'Steady State') occuring in the same row
together within the range E5:J748. So it looks for the two values in
W5 and H5, searches for the first row within E5:J748 that they occur
together and then returns the value in cell J5 as the lookup which in
this case is 'BRC'. I have no idea how to use a vlookup, or modify a
vlookup to accept two lookup values as criteria for the lookup. Any
ideas how?

Thanks,

Tom





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 with two lookup values? Kim B. Excel Worksheet Functions 5 August 3rd 07 02:19 AM
Vlookup(?) with 2 Lookup Values o1darcie1o Excel Worksheet Functions 6 January 3rd 07 01:26 AM
can vlookup be used to if the lookup values are in two columns? Hobbes2006 Excel Worksheet Functions 0 December 1st 06 12:23 AM
How do I use vlookup with two lookup values? pinpalchris Excel Worksheet Functions 4 April 25th 06 06:57 PM
vlookup using two lookup values? tjb Excel Worksheet Functions 10 November 25th 05 05:21 AM


All times are GMT +1. The time now is 08:41 PM.

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"