This is Excel Data I want to replace last row data in first row

replace last row data in first row

@Gaurav_Gore

Please try this

Dt.Columns("A-abc") = dt.AsEnumerable.Last(function(x) Not String.IsNullOrEmpty(x("A-abc").ToString.Trim))("A-abc").ToString

Change the column name for other

Cheers

Read CSV into a datatable. Update the data in the datatable as needed. Write CSV back to the file.

Hi,

Can you try the following sample?

Sample20230531-1L.zip (3.5 KB)

Regards,