Compare and Combine Columns into One Column

desibouy

Board Regular
Joined
Nov 20, 2014
Messages
98
Office Version
  1. 365
Platform
  1. Windows
Hello All,

I have 3 columns, all using different Vlookups to find me the Internal ID of a product. I've used Vlookup against, SKU, MPN, and Vendor Code hence the 3 columns. I want to combine all 3 into 1 but first compare them.

  • At first, I tried to use 'Concat' but if the value exists in 2 columns or 3 columns then it gets displayed as '1234512345' etc.
  • I have tried to use an IF statement to see if I use that and then concat if the value is empty in row 3 then use row 2 and so forth but no luck
  • lastly tried using the countIF formula but, to be honest, I have no idea what I'm doing LOL.
Here is an example - Sorry I used the Data from Line 697 I was doing something there.

LATEST KENNY-NIKKI FILE.xlsx
ABCD
697AP840451204512045120
698AP840-BIP451214512145121
699DRV10416-1   
700DRVRTL1040011972  
701DRVRTL10370BK72705 72705
702DRVRTL10370BC72708  
703DRVRTL10370RC72707 72707
704RMA76100 1096 
705RMA75600EA 1110 
706DRVRTL10372BC72703  
707DRVRTL10372RC72702  
708DRV10350-1   
709DRVNRS18500630742  
710DRVR728BL11135  
711DRVRTL10304-SH   
712ZCH9201BL   
713ZCH9201BLK   
714ZCH9201BUR   
715AXLLG100   
716EW17148PM 28535
717EW17358M 28536
718EW17152 28539
Final List of Items
Cell Formulas
RangeFormula
D697:D700,D704:D718,D702D697=IFNA(VLOOKUP($A697,'[SKU MPN MATCH.xlsx]SKUMPNMATCHResults'!$E:$F,2,FALSE),"")
C697:C715C697=IFNA(VLOOKUP($A697,'[SKU MPN MATCH.xlsx]SKUMPNMATCHResults'!$D:$F,3,FALSE),"")
B697:B718B697=IFNA(VLOOKUP($A697,'[SKU MPN MATCH.xlsx]SKUMPNMATCHResults'!$C:$F,4,FALSE),"")


Any help is appreciated. I'm not an expert in excel so if someone can break it down for me then at least I can follow instructions.

thanks
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
How about
Excel Formula:
=TEXTJOIN(", ",,UNIQUE(XLOOKUP($A697,'[SKU MPN MATCH.xlsx]SKUMPNMATCHResults'!$C:$C,'[SKU MPN MATCH.xlsx]SKUMPNMATCHResults'!$D:$F,"",0)))
 
Upvote 0
Hi, this does not work. I am only looking for B, C, and D joins, If #I haven't explained this above then I am sorry.

Ankita -Nikki file.xlsx
BCDE
695
696448504485044850MSC263701, MSC263701, 44850
697448514485144851MSC263701H, MSC263701H, 44851
698 
699 
700 
701 
702 
703 
704 
705 
7065174951749ALO100, DRVALO100, 51749
707 
708 
709 
710 
711 
712451204512045120AP840, AP840, 45120
713451214512145121AP840-BIP, AP840-BIP, 45121
714 
71511972RTL10400, RTL10400, 11972
7167270572705RTL10370BK, RTL10370BK, 72705
71772708RTL10370BC, RTL10370BC, 72708
7187270772707RTL10370RC, RTL10370RC, 72707
7191096
Sheet1
Cell Formulas
RangeFormula
E696:E718E696=TEXTJOIN(", ",,UNIQUE(XLOOKUP($A696,'[SKU MPN MATCH.xlsx]SKUMPNMATCHResults'!$C:$C,'[SKU MPN MATCH.xlsx]SKUMPNMATCHResults'!$D:$F,"",0)))
 
Upvote 0
I thought you wanted to concat the values from the vlookup you had in columns B:C.
 
Upvote 0

Forum statistics

Threads
1,224,819
Messages
6,181,153
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