Compare sequentially Coma Separated Values from two columns and give matching values - Help Needed

singhcbs

New Member
Joined
Mar 18, 2018
Messages
1
Hi I have a challenge where I have to compare the coma separate values from 2 columns (Column A , Column B and find the sequentially comma separated matching values and output to Results column.

Example:
Compare "Column A" values (Coma Separated ) with "Column B" (Coma Separated) and output the sequentially comma separated matching Values (Coma Separated) to "Result" column

<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>[TABLE="width: 0"]
<colgroup><col style="width: 190px"><col width="185"><col width="249"><col width="668"></colgroup><tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Result[/TD]
[TD]Required[/TD]
[/TR]
[TR]
[TD]apple,,4,[/TD]
[TD]apple,9,4,mango[/TD]
[TD]apple,9,4,mango / (not matched)[/TD]
[TD]In result color the string with red which is not in Coloumn A[/TD]
[/TR]
[TR]
[TD]apple,mango,banana,14,4[/TD]
[TD]apple,mango,,14,[/TD]
[TD]apple,mango,banana,14,4 / (matched)[/TD]
[TD]Replace column B comma seperated empty value with exact comma seperated dataset value place of column A[/TD]
[/TR]
[TR]
[TD]apple,mango,banana,14,4[/TD]
[TD]apple,mango,lemon,14,4[/TD]
[TD]not matched[/TD]
[TD]if any value not match, example - as banana in column A and Lemon in colomn B mismatch result into not matched[/TD]
[/TR]
[TR]
[TD]apple,mango,banana,14,4[/TD]
[TD]apple,mango,banana,14,4[/TD]
[TD]matched[/TD]
[TD]if all value match result into matched[/TD]
[/TR]
</tbody>[/TABLE]

Any help is greatly appreciated.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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