Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Arturo
 
Posts: n/a
Default VlookUp with Multiple Criteria?

Table Range A1:K100
Variables get passed to 6 cells out side of table.
I want returned the remaining 5 fields associated with that record.
Filtering is not an option.
I tried concatenating the 6 variables to use VLookup €“ does not work.
What are the formula or function options available to me?

Sincerely,
Arturo
  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
try something like the following array formula (entered with
CTRL+SHIFT+ENTER)
=INDEX(K1:K100,MATCH(1,(A1:A100="value1")*(B1:B100 ="value2)*...*(F1:F100="value6"),0))

--
Regards
Frank Kabel
Frankfurt, Germany
"Arturo" schrieb im Newsbeitrag
...
Table Range A1:K100
Variables get passed to 6 cells out side of table.
I want returned the remaining 5 fields associated with that record.
Filtering is not an option.
I tried concatenating the 6 variables to use VLookup - does not work.
What are the formula or function options available to me?

Sincerely,
Arturo



  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

One way,

=INDEX(First_field,MATCH(1,(A1:A100=1st_variable)* (B1:B100=2nd_variable)*(C1:C100=3rd_variable)*(D1: D100=4th_variable)*(E1:E100=5th_variable)*(F1:F100 =6th_variable),0))

entered with ctrl + shift & enter, then you change to the second field with
the rest of the formula the same. If the values that you want to return are
numeric you can use sumproduct

=SUMPRODUCT(--(A1:A100=1st_variable),--(B1:B100=2nd_variable),
-- etc,First_field)


Regards,

Peo Sjoblom

"Arturo" wrote:

Table Range A1:K100
Variables get passed to 6 cells out side of table.
I want returned the remaining 5 fields associated with that record.
Filtering is not an option.
I tried concatenating the 6 variables to use VLookup €“ does not work.
What are the formula or function options available to me?

Sincerely,
Arturo

  #4   Report Post  
Arturo
 
Posts: n/a
Default

=INDEX(First_field,MATCH(1,(A1:A100=1st_variable)* (B1:B100=2nd_variable)*(C1:C100=3rd_variable)*(D1: D100=4th_variable)*(E1:E100=5th_variable)*(F1:F100 =6th_variable),0))

Not sure if I am interpreting this correctly€¦.

I have 11 fields per record.
Initially I set up criteria and extract ranges €“ works perfectly.
For what ever reasons this has to be done formulaically.

My understanding of using the above array is as follows;
Im setting €ś1st_variable€ť to a cell reference as I have for the 2nd €“ 6th
variables.
€śFirst_Field€ť has been set to the first filed heading result I want returned.

Mock data table:
A, B, C, D
New, Stable, 80 Secure

I pass in A & B wanting to see C
€śFirst Field€ť = C
€ś1st_variable€ť = A
€ś2nd_variable€ť = B
The Array returns a result of 80

I pass in A & B wanting to see C
€śFirst Field€ť = D
€ś1st_variable€ť = A
€ś2nd_variable€ť = B
The Array returns a result of Secure

Im doing something wrong€¦




"Peo Sjoblom" wrote:

One way,

=INDEX(First_field,MATCH(1,(A1:A100=1st_variable)* (B1:B100=2nd_variable)*(C1:C100=3rd_variable)*(D1: D100=4th_variable)*(E1:E100=5th_variable)*(F1:F100 =6th_variable),0))

entered with ctrl + shift & enter, then you change to the second field with
the rest of the formula the same. If the values that you want to return are
numeric you can use sumproduct

=SUMPRODUCT(--(A1:A100=1st_variable),--(B1:B100=2nd_variable),
-- etc,First_field)


Regards,

Peo Sjoblom

"Arturo" wrote:

Table Range A1:K100
Variables get passed to 6 cells out side of table.
I want returned the remaining 5 fields associated with that record.
Filtering is not an option.
I tried concatenating the 6 variables to use VLookup €“ does not work.
What are the formula or function options available to me?

Sincerely,
Arturo

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 multiple lines of same value lostinexcel Excel Worksheet Functions 1 December 17th 04 02:06 PM
vlookup over multiple worksheets Neil Excel Worksheet Functions 3 December 16th 04 08:19 PM
How do I ask for multiple criteria when creating a "sumif" formul. Rachelle Excel Worksheet Functions 3 December 1st 04 11:49 PM
Counting "rows", i.e. simultaneous criteria for multiple cells gkline Excel Worksheet Functions 2 November 19th 04 07:30 AM
Multiple Vlookup? changeable Excel Worksheet Functions 0 November 9th 04 11:52 AM


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