Hi,
I want to take the second row as header and i want to take the Name,Age,DOB,Gender which is present with multiple columns.
for reference see the attached snapshot below.
Thanks,
Rishi
Hi,
I want to take the second row as header and i want to take the Name,Age,DOB,Gender which is present with multiple columns.
for reference see the attached snapshot below.
Thanks,
Rishi
Try reading excel from cell A2 and make sure add headers option is checked.
I thought the same but if you see the column name all are same .So, it’ll throw an error (like Column name already exist) while reading the excel i think
Regards
Gokul
Hi,
How about the following? This renames each column name like “Country1_Name”.
Sample20220302-2.zip (9.6 KB)
Regards,
@Gokul001 good catched the same col name scenario
we can do:
FixDuplicatedColNames.xaml (10.2 KB)
Try below steps
Read Range – Outpur : outputDT And Range should be Range - A2:D2 and
AddHeaders should be Checked
Assign Activity
arrOfHeaders (Type : Array of String) – (From dc In
outputDT.Columns.Cast(Of DataColumn) Select dc.ColumnName).ToArray()
Iterate on arrOfHeaders OR arrOfHeaders(0), arrOfHeaders(1),…
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.