Update status if column has duplicate value

Hi,

I wanted to update the status in an excel file where column has duplicate value in to using linq.

for reference please find attached file.
MBL_Retension.xlsx (9.2 KB)

Hi,

Can you also share expected output?

Regards,

MBL_Retension.xlsx (9.4 KB)
please find output in status column

please help because this issue is extending the time of development

HI,

Can you share which column we should check? From the above, I cannot find it.

Regards,

we have to check “E-id/SR” column

HI,

Do you want to input “Duplicated” into the last row of the set of duplicates? The following may help you.

Sample
Sample20241023-2.zip (9.6 KB)

Please check result.xlsx

Regards,

this will show me an error “Assembly with same name is already loaded”

Hi,

For now, can you try to remove project.json then open Main.xaml?

Regards,

this is showing invalid document error
can you share the invoke code activity code in this chat.

HI,

Hope the following helps you.

dt.AsEnumerable.GroupBy(Function(r) r("E-id/SR").ToString).ToList.ForEach(Sub(g)
If (g.Count>1) Then
    g.Last.Item("Status")="Duplicated"
End If
End Sub
)

Regards,

Thanks Bro, its working

1 Like