Cross match in Excel

lyhue802002

New Member
Joined
Jul 6, 2003
Messages
26
Hi experts,

I need to come out a simple formula to seek data.

Sample table:
Group Key Value
X A 2
X B 4
Y AA 5
Y BB 10

The explanation goes like this:

1) I have 2 parameters
2) Parameter value 1 comes from a column named "Group"
3) Parameter value 2 comes from which group that user choose from.
4) The output value would be based on the table provided.
5) Example: If user choose group "X" and select "A"; so the output would
be 2.

What is the simplest way to solve this?

experts please advice. TQ :oops:
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Assuming
the 2 criteria are in column A and B
The Value in Column C = Number
Each criteria match only happens once ..

=SUMPRODUCT(--(B1:B12="A"),--(A1:A12="X"),C1:C12)
 
Upvote 0
Book1
ABCDEFGHIJ
1GroupKeyValueConcat
2XA2X#AXA22
3XB4X#BYBB1010
4YAA5Y#AA
5YBB10Y#BB
6
Sheet1


Formulas...

D2, copied down:

=A2&"#"&B2

I2, copied down:

=INDEX($C$2:$C$5,MATCH(G2&"#"&H2,$D$2:$D$5,0))

If the table in A:D is sorted in ascending order on column D and maintained in that order, invoke the faster:

J2:

=IF(LOOKUP(G2&"#"&H2,$D$2:$D$5)=G2&"#"&H2,LOOKUP(G2&"#"&H2,$D$2:$D$5,$C$2:$C$5),"")
 
Upvote 0

Forum statistics

Threads
1,215,523
Messages
6,125,317
Members
449,218
Latest member
Excel Master

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