You need for each row activity after reading the excel file:
Set in it an Assign activity and write:
row(“ColumnName1”) = row(“ColumnName2”).ToString + “/” + row(“ColumnName3”).ToString
ColumnName1 → is your destination column
ColumnName2 → is your first column which comes before the division
ColumnName3 → is your second column which comes after the division
After that you need to write the DataTable in Excel again.
You can split the columns into 2 different table and for the first table write the second table data by add data row activity.
Example workflow is attached for you. Here in example i’ve table column name by index in case if you don’t have the column names.
@manjula_rajendran , Thank you for solving it. But I don’t understand the code which you have written . Can you explain me the code or give the resources (Youtube videos) where I will understand these terms??
dt1 = dtTable.DefaultView.ToTable(False,“Division From”, “Location” )
dtTable is having the data of input excel. In the above expression i’m taking first 2 columns into dt1 table.
dt2 = dtTable.DefaultView.ToTable(False,dtTable.Columns(2).ToString, dtTable.Columns(3).ToString)
Same as above i’m taking 3rd and 4th column into dt2 table. As i don’t know the columns name I’m taking it with column index. If you have the unique column name then you can specify the column names.
dt2 = dt2.AsEnumerable.Skip(1).CopyToDataTable
I’m just removing the column headers here. As we don’t want to add with the column headers.
Filter Data Table is used to remove the empty rows.