Gus_Fring
(Gus Fring)
September 23, 2022, 2:04am
1
Hello everyone,
I have 2 excel file and I want to add the data of the first excel file to another excel file. I’m using Add Data Row but I can’t achieve what I want.
I want to add the data of A-C to the another excel file that has a “Employee Details” sheet name then add the data of D-F to “Invoice Details” sheet.
muthuraj.c
(Muthuraj)
September 23, 2022, 2:11am
2
Hi @Gus_Fring
Try This,
DT_Input.DefaultView.ToTable(False,“Invoice Code”,“Category”,"Department")
Thanks,
Muthuraj
1 Like
Gus_Fring
(Gus Fring)
September 23, 2022, 2:13am
3
Hello @muthuraj.c
Should I add that to assign activity? Btw i’m using write range.
muthuraj.c
(Muthuraj)
September 23, 2022, 2:21am
4
HI @Gus_Fring ,
Yes, you should add assign activity.
Use Read Range Activity to read the input file.
Define columns for output data table using Build Datatable activity.
Then use Assign activity “DT_Input.DefaultView.ToTable(False,“Invoice Code”,“Category”,“Department”)”
Finally use Write Range activity.
Sample xaml is attached follow this.
Specific_Column.xaml (7.9 KB)
Thanks,
Muthuraj
Gus_Fring
(Gus Fring)
September 23, 2022, 2:49am
5
Hi @muthuraj.c
Thank you for that. How about adding this data first:
to another excel file then after processing it, it will clear the data table then process the next Invoice number?