List of values from table using multiple criteria

borolo222

New Member
Joined
Aug 18, 2009
Messages
42
Hi I need to use the example in this page

link

but with a twist...

Instead of using one lookup value criteria I need to use two or more..

Code:
   A    B     C         
 1 item value state     
 2 1    a     pending 
 3 2    b     ready     
 4 3    c     pending 
 5 1    d     ready     
 6 2    e     pending 
 7 1    f     ready
 8 2    g     pending 
 9 3    h     ready
10 1    i     pending 
11 2    j     ready
12 1    k     pending

So I want to display a list of values for example all items "1" with state "pending", resulting in

a
i
k

thks for your help,

Emilio
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hi I need to use the example in this page

link

but with a twist...

Instead of using one lookup value criteria I need to use two or more..

Code:
   A    B     C         
 1 item value state     
 2 1    a     pending 
 3 2    b     ready     
 4 3    c     pending 
 5 1    d     ready     
 6 2    e     pending 
 7 1    f     ready
 8 2    g     pending 
 9 3    h     ready
10 1    i     pending 
11 2    j     ready
12 1    k     pending

So I want to display a list of values for example all items "1" with state "pending", resulting in

a
i
k

thks for your help,

Emilio
E2: 1

which is an item of interest.

E3: Pending

which is a state of interest.

E4, just enter:
Code:
=SUMPRODUCT(--(A2:A12=E2),--(C2:C12=E3))

E5: List

E6, control+shift+enter, not just enter, and copy down:
Code:
=IF(ROWS($E$6:E6)<=$E$4,INDEX($B$2:$B$12,
    SMALL(IF($A$2:$A$12=$E$2,IF($C$2:$C$12=$E$3,
      ROW($B$2:$B$12)-ROW($B$2)+1)),ROWS($E$6:E6))),"")
 
Upvote 0
E2: 1

which is an item of interest.

E3: Pending

which is a state of interest.

E4, just enter:
Code:
=SUMPRODUCT(--(A2:A12=E2),--(C2:C12=E3))

E5: List

E6, control+shift+enter, not just enter, and copy down:
Code:
=IF(ROWS($E$6:E6)<=$E$4,INDEX($B$2:$B$12,
    SMALL(IF($A$2:$A$12=$E$2,IF($C$2:$C$12=$E$3,
      ROW($B$2:$B$12)-ROW($B$2)+1)),ROWS($E$6:E6))),"")

Wonderful!!!

Thanks very much.
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,898
Members
452,948
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top