-
Read the input excel using read range to a datatable say dt_data
-
Filter the data to a datatable say dt_result
dt_result = dt_data.AsEnumerable().Where(Function(row) row("LOCKBOX NBR").ToString.Equals("200")).Select(Function(x) dt_data.Clone.Rows.Add(x.ItemArray.Take(5).Concat({"Completed",transactionNumber}).ToArray) ).CopyToDataTable
Give the necessary condition in the where clause . -
Write the dt_result data to a new output sheet using write range
Thank you !
Hope this helps!