#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Multiple VLOOKUP


Hello

I am trying to return a value based on a multiple VLOOKUP

i.e. spreadsheet contains multiple lines for given value, say 322654,
and also multiple lines for second lookup value of 015, although there
will only be one 015 for 322654. I would like to return a related cell
that fulfills both of these conditions.

Alternatively perhaps I could use a VLOOKUP with an IF function built
in, any ideas please let me know.

Many thanks


--
ramalana
------------------------------------------------------------------------
ramalana's Profile: http://www.excelforum.com/member.php...o&userid=36949
View this thread: http://www.excelforum.com/showthread...hreadid=566586

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Multiple VLOOKUP

Insert a column in which you concatenate the two key columns, and do a VLOOKUP with concatenated cells

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"ramalana" wrote in message
...
|
| Hello
|
| I am trying to return a value based on a multiple VLOOKUP
|
| i.e. spreadsheet contains multiple lines for given value, say 322654,
| and also multiple lines for second lookup value of 015, although there
| will only be one 015 for 322654. I would like to return a related cell
| that fulfills both of these conditions.
|
| Alternatively perhaps I could use a VLOOKUP with an IF function built
| in, any ideas please let me know.
|
| Many thanks
|
|
| --
| ramalana
| ------------------------------------------------------------------------
| ramalana's Profile: http://www.excelforum.com/member.php...o&userid=36949
| View this thread: http://www.excelforum.com/showthread...hreadid=566586
|


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Multiple VLOOKUP

Assuming value required is in column C and columns A & B contain your "search
parameters" then:

=INDEX(C1:C100,MATCH(1,(A1:A100=322654)*(B1:B100=0 15"),0),1)

Enter with Control+Shift+Enter (as an array formula). Curly brackets {} will
appear around the formula if it is entered correctly.

HTH

"ramalana" wrote:


Hello

I am trying to return a value based on a multiple VLOOKUP

i.e. spreadsheet contains multiple lines for given value, say 322654,
and also multiple lines for second lookup value of 015, although there
will only be one 015 for 322654. I would like to return a related cell
that fulfills both of these conditions.

Alternatively perhaps I could use a VLOOKUP with an IF function built
in, any ideas please let me know.

Many thanks


--
ramalana
------------------------------------------------------------------------
ramalana's Profile: http://www.excelforum.com/member.php...o&userid=36949
View this thread: http://www.excelforum.com/showthread...hreadid=566586


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Multiple VLOOKUP

..... typo ..

=INDEX(C1:C100,MATCH(1,(A1:A100=322654)*(B1:B100=0 15),0),1)

"Toppers" wrote:

Assuming value required is in column C and columns A & B contain your "search
parameters" then:

=INDEX(C1:C100,MATCH(1,(A1:A100=322654)*(B1:B100=0 15"),0),1)

Enter with Control+Shift+Enter (as an array formula). Curly brackets {} will
appear around the formula if it is entered correctly.

HTH

"ramalana" wrote:


Hello

I am trying to return a value based on a multiple VLOOKUP

i.e. spreadsheet contains multiple lines for given value, say 322654,
and also multiple lines for second lookup value of 015, although there
will only be one 015 for 322654. I would like to return a related cell
that fulfills both of these conditions.

Alternatively perhaps I could use a VLOOKUP with an IF function built
in, any ideas please let me know.

Many thanks


--
ramalana
------------------------------------------------------------------------
ramalana's Profile: http://www.excelforum.com/member.php...o&userid=36949
View this thread: http://www.excelforum.com/showthread...hreadid=566586


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 510
Default Multiple VLOOKUP

Hi

The solution depends on your data. When the return value is numeric and
combined conditions always determine a single row or none, you can use
SUMPRODUCT function, like
=SUMPRODUCT(--(Sheet1!A1:$A$1000=322654),--Sheet1!$B$1:$B$1000="015",Sheet1!$C$1:$C$1000)
(when there are several rows matching all conditions, the formula returns
the sum of according values - in my example in column C)

When the return value is string, you have to use array formulas or helper
columns, like explained in previous answers.


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"ramalana" wrote in
message ...

Hello

I am trying to return a value based on a multiple VLOOKUP

i.e. spreadsheet contains multiple lines for given value, say 322654,
and also multiple lines for second lookup value of 015, although there
will only be one 015 for 322654. I would like to return a related cell
that fulfills both of these conditions.

Alternatively perhaps I could use a VLOOKUP with an IF function built
in, any ideas please let me know.

Many thanks


--
ramalana
------------------------------------------------------------------------
ramalana's Profile:
http://www.excelforum.com/member.php...o&userid=36949
View this thread: http://www.excelforum.com/showthread...hreadid=566586





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 510
Default Multiple VLOOKUP

Sorry, a typo there!


=SUMPRODUCT(--(Sheet1!A1:$A$1000=322654),--(Sheet1!$B$1:$B$1000="015"),Sheet1!$C$1:$C$1000)

--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )


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
Want Vlookup to list multiple items with the same key? GarToms Excel Worksheet Functions 13 May 10th 06 11:21 PM
vLookup - display multiple rows Greg Excel Worksheet Functions 2 December 20th 05 03:00 PM
vlookup multiple text rows Tanya Excel Discussion (Misc queries) 4 August 15th 05 04:50 PM
Using VLOOKUP with multiple first column matches John Simons Excel Worksheet Functions 2 February 20th 05 01:27 AM
Multiple Vlookup? changeable Excel Worksheet Functions 0 November 9th 04 11:52 AM


All times are GMT +1. The time now is 12:12 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"