Column match on same row

kway2004

New Member
Joined
Mar 29, 2016
Messages
7
I have a table with Sku and Item Name. There are multiple lines with the same Sku. I want to take this information and create a table showing one line for the sku name and place an "X" with the Item Name that make up the Sku.

Beginning data table

[TABLE="width: 561"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]SKU[/TD]
[TD]Item Name[/TD]
[/TR]
[TR]
[TD]ELF02[/TD]
[TD]Beef Bully Stick 6"[/TD]
[/TR]
[TR]
[TD]ELF02[/TD]
[TD]Small Generic Box[/TD]
[/TR]
[TR]
[TD]ELF02[/TD]
[TD]Box Label Small[/TD]
[/TR]
[TR]
[TD]ELF02[/TD]
[TD]Beef Label[/TD]
[/TR]
[TR]
[TD]ELF03[/TD]
[TD]Beef Bully Stick 12"[/TD]
[/TR]
[TR]
[TD]ELF03[/TD]
[TD]Small Generic Box[/TD]
[/TR]
[TR]
[TD]ELF03[/TD]
[TD]Box Label Small[/TD]
[/TR]
[TR]
[TD]ELF03[/TD]
[TD]Beef Label


[/TD]
[/TR]
</tbody>[/TABLE]
End result that I am seeking

[TABLE="width: 822"]
<colgroup><col span="6"></colgroup><tbody>[TR]
[TD][/TD]
[TD]Beef Bully Stick 6"[/TD]
[TD]Beef Bully Stick 12"[/TD]
[TD]Small Generic Box[/TD]
[TD]Box Label Small[/TD]
[TD]Beef Label[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ELF02[/TD]
[TD="align: center"]X[/TD]
[TD][/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]X[/TD]
[/TR]
[TR]
[TD]ELF03[/TD]
[TD][/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]X[/TD]
[/TR]
</tbody>[/TABLE]

Of course the beginning table has about 1200 lines to it. I have tried If(And(match which gives me "X" in cell that should not have them because of the condition is satisfied once it finds a match in both columns. I need the column match to be for the same row.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
How about


Book1
ABCDEFGHIJK
1SKUItem NameBeef Bully Stick 6"Beef Bully Stick 12"Small Generic BoxBox Label SmallBeef Label
2ELF02Beef Bully Stick 6"
3ELF02Small Generic BoxELF02XXXX
4ELF02Box Label SmallELF03XXXX
5ELF02Beef Label
6ELF03Beef Bully Stick 12"
7ELF03Small Generic Box
8ELF03Box Label Small
9ELF03Beef Label
Summary
Cell Formulas
RangeFormula
G3=IF(ISNUMBER(MATCH($F3&"|"&G$1,INDEX($A$2:$A$9&"|"&$B$2:$B$9,0),0)),"X","")
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,139
Members
453,021
Latest member
Justyna P

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