Confirming two pieces of data match

dschemmel

New Member
Joined
Feb 1, 2017
Messages
20
I have a spreadsheet set up as follows:
Leftmost column contains customer numbers all the way down
Columns 2-20 contain part numbers in row one with blank spaces below. The intent is for an X to be placed in each cell on the table to correspond to that customer number having purchased that part
I.E. Customer 555 is listed on the left in cell A2 and there is an X in cells D2, I2, and K2 to represent customer 555 purchasing those part numbers.

The other sheet (called Data) is set up as follows
Left column customer numbers
Right Column the part number that the customer bought

Each customer number could be repeated numerous times (data has more part numbers than those listed on the sheet) as could each part number.

I was hoping to find a formula for what I am seeking above rather than going through 5,000+ individual data points.

Thank you to anyone who has some advice to offer!
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
A
B
C
D
E
F
G
H
I
J
K
L
1
Customer numberPN 1PN 2PN 3PN 4PN 5PN 6PN 7PN 8Customer numberPart numbers
2
1000​
1001​
PN 2,PN 5,PN 8
3
1001​
XXX
1004​
PN 1,PN 6
4
1002​
X
1010​
PN 2
5
1003​
X
6
1004​
XX
7
1005​
X
8
1006​
XX
9
1007​
XX
10
1008​
XX
11
1009​
XX
12
1010​
X
13
1011​
XXX
Sheet: Sheet4

Array formula in cell L2:
=TEXTJOIN(",",TRUE,IF(INDEX($B$2:$I$13,MATCH(K2,$A$2:$A$13,0),0)="X",$B$1:$I$1,""))

How to enter an array formula
1. Double click on cell L2
2. Copy / Paste formula to cell L2
3. Press and hold CTRL + SHIFT
4. Press Enter
 
Upvote 0

Forum statistics

Threads
1,214,648
Messages
6,120,726
Members
448,987
Latest member
marion_davis

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