Replace blank cell in column with specific word

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 @8b6861dc5e0c9f7008548ca66

How about the following?

Hope this helps!!

Hi,

Can you try the following sample?

Sample20231214-4L.zip (10.1 KB)

Regards,

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

@8b6861dc5e0c9f7008548ca66

It will work

thanks @Yoichi - I will try this and will let you know.

HI @8b6861dc5e0c9f7008548ca66

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