We can use the linq expression for the expected output, check the below steps,
→ Use the read range workbook activity to read the excel and store in a datatable called dt.
→ Use the assign activity to write the below linq expression, create a variable called Output_dt which is datatable datatype variable,
- Assign -> Output_dt = (From row in dt.asenumerable()
Let CR = row("Amount").toString
Select dt.Clone.rows.add({row("ID"),row("Code"),row("Date"),row("Amount"), Cdbl(CR)})
).Copytodatatable()
→ Then use the write range workbook activity to write the Output_dt to the same excel.
Check the below workflow for better understanding, Sequence5.xaml (8.9 KB)