Hi
i have a scenario whee i have to replace blank cells in column 0.
Need to replace with word “xyz”, multiple consecutive rows and multiple times too.
data1.xlsx (9.9 KB)
TIA
Hi
i have a scenario whee i have to replace blank cells in column 0.
Need to replace with word “xyz”, multiple consecutive rows and multiple times too.
data1.xlsx (9.9 KB)
TIA
Thanks @lrtetala will it work if rows more than 50-100, sometimes I observed we get com error if used excel scope .
pls assist on this
It will work
thanks @Yoichi - I will try this and will let you know.
Input:
Output:
=> Use Read Range Workbook to read the excel and store the output in data table say dt.
=> Use the below syntax in Assign activity:
dtUpdated= dt.Clone()
dtUpdated= (From row In dt.AsEnumerable()
Let updatedValueCol0 = If(String.IsNullOrWhiteSpace(row(0).ToString()), "xyz", row(0).ToString())
Let originalValueCol1 = row(1).ToString()
Select dtUpdated.Rows.Add(updatedValueCol0, originalValueCol1)).CopyToDataTable()
=> Use Write Range Workbook to write dtUpdated data table back to excel.
Hope it helps!!
thanks @Parvathy - i will check