Compare 2 columns and delete all junk.

Uriakus

New Member
Joined
Nov 9, 2014
Messages
13
Hi, my English is not good but I will try.
I have a reference column with products and I want to compare it with another column and delete all text that is not related to the control column.

Example...

LG G6 .................... LG G6 New promotion
Samsung C5 .......... Samsung C5 Deal offer
iPhone X ................ IPhone X Black Friday

I would like a formula that can delete from the second column al text but the names in the control column from the right.
In this example it should delete...

New promotion
Deal offer
Black Friday

And leave the names intact as the control column.

Thanks in advance.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
[TABLE="class: grid, width: 800"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]Row 1[/TD]
[TD]LG G6[/TD]
[TD]LG G6 New promotion[/TD]
[TD]=IF(FIND(UPPER(A1),UPPER(B1))>0,A1,"Other Result")[/TD]
[/TR]
[TR]
[TD]Row 2[/TD]
[TD]Samsung C5[/TD]
[TD]Samsung C5 Deal offer[/TD]
[TD]=IF(FIND(UPPER(A2),UPPER(B2))>0,A2,"Other Result")[/TD]
[/TR]
[TR]
[TD]Row 3[/TD]
[TD]iPhone X[/TD]
[TD]IPhone X Black Friday[/TD]
[TD]=IF(FIND(UPPER(A3),UPPER(B3))>0,A3,"Other Result")[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,195
Members
453,021
Latest member
pingpong7117

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