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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
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,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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