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>
Column AColumn BResultRequired
apple,,4,apple,9,4,mangoapple,9,4,mango / (not matched)In result color the string with red which is not in Coloumn A
apple,mango,banana,14,4apple,mango,,14,apple,mango,banana,14,4 / (matched)Replace column B comma seperated empty value with exact comma seperated dataset value place of column A
apple,mango,banana,14,4apple,mango,lemon,14,4not matchedif any value not match, example - as banana in column A and Lemon in colomn B mismatch result into not matched
apple,mango,banana,14,4apple,mango,banana,14,4matchedif all value match result into matched

<colgroup><col style="width: 190px"><col width="185"><col width="249"><col width="668"></colgroup><tbody>
</tbody>

Any help is greatly appreciated.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,214,429
Messages
6,119,433
Members
448,897
Latest member
ksjohnson1970

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