How to Remove Duplicate Columns in Excel and have the distinct values in the other sheet

Hi,

Thanks in Advance

@tgopalas, This one, kindly refer/search for (an existing solution).

Regards,
Dom :slight_smile:

2 Likes

@Dominic The code didnt worked , The Duplicate values are not coming . The same Table with all the values are coming as an output

PFADates.xlsx (8.0 KB)
Add billd.xaml (9.5 KB)

@tgopalas, Have you used this query ?

DataTable distinctValues = Defaultview.ToTable(true, "Column1", "Column2" )

Regards,
Dom :slight_smile:

2 Likes

Yaa…but i didnt understand what is defaultview over ther

Refer this

DataTableName =DataTableName.DefaultView.ToTable(true,"Column1", "Column2" )

Regards,
Arivu

4 Likes

@tgopalas, Dataview - different views of the data stored in a DataTable

Reference
Select Distinct and obtain all row of it - #11 by aksh1yadav

Regards,
Dom :slight_smile:

1 Like

Hello Dominic, could you explain this in a bit detail, I could not find a way to use this since when I read the excel it first generates a duplicateNameException before moving pon to the further activities.