Compare two Columns in Datatable Using Linq

Hello Friends,

I have Two Columns(Reference and External) of Data two compare as below

This image shows an Excel spreadsheet with columns for Reference, External, and Result, containing various numerical values. (Captioned by AI)

Need to Compare Reference Column and External column and to write results in Result Column as below

{74A21739-7958-4896-99A9-F800726BAFE6}

How to achieve this, Anyone kindly suggest me on this, Thanks

Can you share the excel file?

Hi @Akash_Javalekar1 Thanks for the reply, Pls refer the Screenshot which is same as excel

Hi @Manii_K,

You can use linq or invoke code to acheive this.
Sharing the workflow with invoke code. Please try and let me know if it works.
Code.txt (1.9 KB)
Main.xaml (23.2 KB)

1 Like

Thanks for your valuable solution @rashmisingh2695, I’ll try and let you know

Here’s another solution; I’ve included more failure modes

image

image

Hi @Manii_K
Here is my solution
Workflow.zip (3.0 KB)

Hi @sudster, Can I get this workflow xaml

@Manii_K , here it is:

DTCompare2Cols.xaml (27.8 KB)

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.