Comparing data table header column

@Shanika_Perera
Variables:

we assume that read range with AddHeaders ticked OFF (along with the demerged cells) will create a datatable with auto generated header names similar like this:

grafik

Helpers:
we defined an array with col indexes not to use for the checks: arrBlockIDX variable

and we create some helper (used later)
grafik

we create an Info on the columns for check without the blocked cols:
grafik

we calculate the duplicates and non duplicates:
grafik
grafik

then we prepare String Arrays for the both cases later use for the datatble col filters / removal
grafik

And remove/filter to the datatables
grafik

Find starter help here:
DuplicatedColInfo_SplitUnique-Dup.V2.xaml (13.6 KB)

And some introduction to LINQ here:
[HowTo] LINQ (VB.Net) Learning Catalogue - Help / Something Else - UiPath Community Forum

1 Like