Index Match Array functions

Excel_pal

New Member
Joined
Mar 14, 2014
Messages
19
Tried several index, match funtions but no success. Need expert help. Thanks in advance.

Here is the table source with data.
Table 1. Source

1
A
B
2
Basket 1
Apple
3
Basket 1
Pear
4
Basket 2
Apple
5
Basket 2
Banana
6
Basket 2
Grape
7
Basket 3
Banana
8
Basket 3
Berry
9
Basket 3
Pear

<tbody>
</tbody>

I have another table that has list of fruits in one column and all baskets in one row. The result desired is to put x when a fruit is matched from its respective basket. Here is the snapshot of result table.

Table 2. Result with mark "x"

A
B
C
D


Basket 1
Basket 2
Basket 3
2
Apple
X
X

3
Pear
X

X
4
Banana

X
X
5
Grape

x

6
Berry


x

<tbody>
</tbody>


What is the right formula for B2 to D6 to return result as "x" based on data from Table 1?
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
=IF(MAX(--(N$1&$M2=$A$1:$A$8&$B$1:$B$8))=1,"X","") Ctrl+Shift+Enter
 
Upvote 0
maybe something like...

Excel 2012[TABLE="class: grid, width: 500"]
<tbody>[TR="bgcolor: #DAE7F5"]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD]Basket 1[/TD]
[TD]Apple[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD]Basket 1[/TD]
[TD]Pear[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD]Basket 2[/TD]
[TD]Apple[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD]Basket 2[/TD]
[TD]Banana[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD]Basket 2[/TD]
[TD]Grape[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD]Basket 3[/TD]
[TD]Banana[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD]Basket 3[/TD]
[TD]Berry[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD]Basket 3[/TD]
[TD]Pear[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]10[/TD]
[TD="align: right"][/TD]
[TD]Basket 1[/TD]
[TD]Basket 2[/TD]
[TD]Basket 3[/TD]
[/TR]
[TR]
[TD="align: center"]11[/TD]
[TD]Apple[/TD]
[TD]X[/TD]
[TD]X[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]12[/TD]
[TD]Pear[/TD]
[TD]X[/TD]
[TD][/TD]
[TD]X[/TD]
[/TR]
[TR]
[TD="align: center"]13[/TD]
[TD]Banana[/TD]
[TD][/TD]
[TD]X[/TD]
[TD]X[/TD]
[/TR]
[TR]
[TD="align: center"]14[/TD]
[TD]Grape[/TD]
[TD][/TD]
[TD]X[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]15[/TD]
[TD]Berry[/TD]
[TD][/TD]
[TD][/TD]
[TD]X[/TD]
[/TR]
</tbody>[/TABLE]
Sheet2

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<tbody>[TR="bgcolor: #DAE7F5"]
[TH]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
[TR]
[TH="bgcolor: #DAE7F5"]B11[/TH]
[TD="align: left"]=IF(COUNTIFS(Sheet2!$A$1:$A$8,B$10,Sheet2!$B$1:$B$8,$A11),"X","")[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,226,695
Messages
6,192,475
Members
453,726
Latest member
JoeH57

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