Hi guys,
I have the below requirement.
A list of excel files with the same format.
Iam reading all the excel files in a loop using For Each activity and reading only one column(D).
The idea is to write the column(D) from each excel file to another excel file but in different columns.
Is it possible?
Please let me know.
example :
Hello @Sanghamitra_Sahoo
Yes, that is possible. Gou can first loop through each file using Directory.GetFiles(“Folderpath”)
Then use for each activity to loop through each file and use “Use excel activity” inside the loop(file will be item)
Use read range to read only the D column (Range you can modify to get only D column)
use insert column activity to insert new column(name you can give as required)
Write range activity to write to the column just created.
Veera_Raj
(Veeraraj Sethuraman)
June 14, 2022, 11:20am
3
use add column activity by creating one datatable and use count for give different column name
Can you please give an example script?
Veera_Raj
(Veeraraj Sethuraman)
June 14, 2022, 11:36am
5
step 1 : read excel (column that you want to read )
step2 : DataTableVar = new system.data.dataTable(this should be outside for for each loop)
step3 : Add data column (addData column should inside for each and use row index from for each)
“column Name”+rowidnex.tostring