Filter table to list of rows that contain the keyword.
Loop through those rows and update column B of those rows
Assign rowlist = datatablevariable.AsEnumerable.Where(Function(r) r(0).ToString.Trim.ToUpper.Contains("keyword")).ToArray
For each row In rowlist =>TypeArgument as DataRow
Assign row(1) = row(0).ToString.Trim
The above will update “All” rows that meet the keyword. If you want to only update the first match then an alternate version would not need the loop:
Thanks for your reply and I appreciate your idea and I feel it works most of time, however, that’s does not work for my problem, because, I didn’t told this, my objective Excel is very hard restricted and cannot change except only few cells… Thus cannot filter it…
Anyway, your solution is might be faster if there is many target data to update so I will note it!!