Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default lookup by multiple parameters

Hi,

I wondered if there is a function in Excel that allows you to look up a
value by two or more columns. (e.g. I want to ask for "column 1 = 1" AND
"column 2 = 5" to get the result "pears".

Column 1 Column 2 Column 3
1 5 apples
1 10 oranges
3 5 pears
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default lookup by multiple parameters

=INDEX(C2:C10,MATCH(1,(A2:A10=1)*(B2:B10=5),0))

entered with ctrl + shift & enter

--


Regards,


Peo Sjoblom

"NatashaS" wrote in message
...
Hi,

I wondered if there is a function in Excel that allows you to look up a
value by two or more columns. (e.g. I want to ask for "column 1 = 1" AND
"column 2 = 5" to get the result "pears".

Column 1 Column 2 Column 3
1 5 apples
1 10 oranges
3 5 pears



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 209
Default lookup by multiple parameters

'===============================================
'Cell Formula using the OFFSET worksheet formula with multiple criteria to
' find a value in the same way that the VLOOKUP worksheet formula
' uses a single criteria to find a value.
'
'
'===============================================
'Forumla Example 1:
'Using actual values as the search criteria in EXAMPLE 1:
'{=OFFSET(E11,MAX(ROW(1:6)*--(B12:B17="John")*--(C12:C17="Nov")),0)}
' or
'Forumla Example 2:
'Using cell references as the search criteria in EXAMPLE 1:
'{=OFFSET(E11,MAX(ROW(1:6)*--(B12:B17=A6)*--(C12:C17=A7)),0)}
'
' - Remember to use CTRL-SHIFT-ENTER to make the formula an array
' showing the '{' and "}" at the beginning and ending of the formula
'
'Note: Just as VLOOKUP will give you the FIRST value it finds that meets it's
' criteria, this formul will give you the LAST value it finds that meets
' all of it's criteria.
'
'===============================================
--
Hope this helps.
If this post was helpfull, please remember to click on the ''''YES''''
button at the bottom of the screen.
Thanks,
Gary Brown


"NatashaS" wrote:

Hi,

I wondered if there is a function in Excel that allows you to look up a
value by two or more columns. (e.g. I want to ask for "column 1 = 1" AND
"column 2 = 5" to get the result "pears".

Column 1 Column 2 Column 3
1 5 apples
1 10 oranges
3 5 pears

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
Excel problem - sumif with multiple parameters athletico Excel Worksheet Functions 2 July 7th 08 12:02 PM
Count on multiple parameters TJ[_2_] Excel Worksheet Functions 3 February 27th 07 08:23 PM
Multiple parameters in MS Query Ken Excel Discussion (Misc queries) 1 August 19th 06 01:48 PM
How do I set multiple parameters using VLookup Danelle Boling, Sales Analyst Excel Worksheet Functions 1 August 1st 06 06:41 PM
Counting cells using multiple parameters tuph Excel Discussion (Misc queries) 3 June 19th 06 06:53 AM


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