Compare two columns of values

levoxy

New Member
Joined
Sep 12, 2017
Messages
7
I have two columns with values that needs to be compared and difference values need to be printed in separate column.

[TABLE="width: 500"]
<tbody>[TR]
[TD]value1[/TD]
[TD]value2[/TD]
[TD]difference[/TD]
[/TR]
[TR]
[TD]apple,curd,milk[/TD]
[TD]orange,apple,water[/TD]
[TD]curd,milk,orange,water[/TD]
[/TR]
[TR]
[TD]pen,paper,bag[/TD]
[TD]bag,paper,belt[/TD]
[TD]pen,belt[/TD]
[/TR]
</tbody>[/TABLE]

please help.
 
Re: Please help with compare

Hello, I tried it the same way. it is not working.did not get any results.
 
Upvote 0

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Re: Please help with compare

Yes it is working for me. I usually tests the code before posting it
Can you upload sample of your workbook?
 
Upvote 0
sorry. I had my excel different format. column a was the values1 which was derived from another sheet, col B was the input, Col c was values2 again derived from another sheet. so due to the issue of values1 is showing up only formulae but not the actual values due to this the code is not working.

I have done this assignment as a simpler logic than this by just displaying there is mismatch not actually displaying the mismatch difference.

Thanks for the effort.
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,199
Members
453,022
Latest member
RobertV1609

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