Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default look up multiple criteria


I want to search sheet 2 for both column a and d in sheet 1, and return
column c of sheet 2

sheet 1
a b c d
KD083 12 1 SC513-0001-67.81

sheet 2
a b c
KD082 SCV219-0001-72 4
KD082 SC092/093HB 1
KD082 IT1414/1714 1
KD082 SC513-0001-67.81 1
KD082 DT1414/1714 1
KD082 SCV220-0001-48 4
KD083 SC513-0001-67.81 1
KD083 T-790-68 1
KD083 IT1415/1715 1
KD083 SC092/093HB 1
KD083 SC511-0001-67.81 1


--

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default look up multiple criteria

Try this array-entered** formula...

=INDEX(Sheet2!C1:C10,MATCH(1,(Sheet1!A1=Sheet2!A1: A10)*(Sheet1!D1=Sheet2!B1:B10),0))

** Commit the formula by pressing Ctrl+Shift+Enter, not just Enter.

Rick


"bkunes" wrote in message
...

I want to search sheet 2 for both column a and d in sheet 1, and return
column c of sheet 2

sheet 1
a b c d
KD083 12 1 SC513-0001-67.81

sheet 2
a b c
KD082 SCV219-0001-72 4
KD082 SC092/093HB 1
KD082 IT1414/1714 1
KD082 SC513-0001-67.81 1
KD082 DT1414/1714 1
KD082 SCV220-0001-48 4
KD083 SC513-0001-67.81 1
KD083 T-790-68 1
KD083 IT1415/1715 1
KD083 SC092/093HB 1
KD083 SC511-0001-67.81 1


--


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default look up multiple criteria

=INDEX(Sheet2!C1:C20,MATCH(1,(A1=Sheet2!A1:A20)*(D 1=Sheet2!B1:B20),0))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

Note that you cannot use a whole column in array formulae (prior to excel
2007), but must use an explicit range.

--
---
HTH

Bob


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



"bkunes" wrote in message
...

I want to search sheet 2 for both column a and d in sheet 1, and return
column c of sheet 2

sheet 1
a b c d
KD083 12 1 SC513-0001-67.81

sheet 2
a b c
KD082 SCV219-0001-72 4
KD082 SC092/093HB 1
KD082 IT1414/1714 1
KD082 SC513-0001-67.81 1
KD082 DT1414/1714 1
KD082 SCV220-0001-48 4
KD083 SC513-0001-67.81 1
KD083 T-790-68 1
KD083 IT1415/1715 1
KD083 SC092/093HB 1
KD083 SC511-0001-67.81 1


--



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default look up multiple criteria

thanks it worked
--



"Rick Rothstein (MVP - VB)" wrote:

Try this array-entered** formula...

=INDEX(Sheet2!C1:C10,MATCH(1,(Sheet1!A1=Sheet2!A1: A10)*(Sheet1!D1=Sheet2!B1:B10),0))

** Commit the formula by pressing Ctrl+Shift+Enter, not just Enter.

Rick


"bkunes" wrote in message
...

I want to search sheet 2 for both column a and d in sheet 1, and return
column c of sheet 2

sheet 1
a b c d
KD083 12 1 SC513-0001-67.81

sheet 2
a b c
KD082 SCV219-0001-72 4
KD082 SC092/093HB 1
KD082 IT1414/1714 1
KD082 SC513-0001-67.81 1
KD082 DT1414/1714 1
KD082 SCV220-0001-48 4
KD083 SC513-0001-67.81 1
KD083 T-790-68 1
KD083 IT1415/1715 1
KD083 SC092/093HB 1
KD083 SC511-0001-67.81 1


--



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
Nesting COUNTIF for multiple criteria in multiple columns NeedExcelHelp07 Excel Worksheet Functions 1 December 12th 07 05:47 PM
match multiple criteria ina range from multiple criteria multiplet RG Excel Worksheet Functions 8 September 28th 07 04:21 AM
Index & Match functions - multiple criteria and multiple results [email protected] Excel Worksheet Functions 4 May 2nd 07 03:13 AM
Counting Cells with multiple criteria.One criteria supporting wild Azhar Saleem Excel Worksheet Functions 1 January 12th 05 10:54 AM
Counting Cells with multiple criteria.One criteria supporting wild Azhar Arain Excel Worksheet Functions 1 January 12th 05 08:33 AM


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