I have excel file with 2 columns with Name and abbreviation.
i will get input from outside as variable InputValue
example input value will be 245st street ABC District Court| here i want to replace ABC District court with JDC from the excel column 2
Name --district
Abbrevation-DC
like if the excel row matches with with input Value from excel in district column have to take the corresponse row value from the excel sheet from column2
below is the excel file sample
Col1 col2
|KENYA COURT|ABBREVIATION|
|ABC District Court|JDC|
|County Court Law No. #|CCL No. #|
|||FEDERAL COURT|ABBREVIATION|
|UK District Court|USDC|
|Germany Bankruptcy Court|GSBC|
Hi @T_Y_Raju ,
You can read 2 file to get data table
Use for loop to compare 2 data
If match , assign value then write back to file
Can you share input file and expect result , I will code for you
Regads,
LNV
on then side use inputValue.Replace(dt.AsEnumerable.Where(function(x) inputValue.Contains(x))(0)("Col1").ToString,dt.AsEnumerable.Where(function(x) inputValue.Contains(x))(0)("Col2").ToString)