Hi all, I have this data in excel where it contains list of address
Now I’m reading this data and it determines what are these places
My only problem is that if the address is not complete, it doesn’t properly work. What I want is to replace that missing data to “Not Applicable” like this:
First, I loop through the address list
Then I loop through the reference list
Then I added a condition where address contains a place in my reference list
Then I use write cell to write the data I gathered
I tried to add another condition where address doesn’t contains a place in my reference list but it’s not working
Not CurrentRowData(“Address”).ToString.Contains(CurrentRowRef(“Province”).ToString) Or Not CurrentRowData(“Address”).ToString.Contains(CurrentRowRef(“Municipality”).ToString) Or Not CurrentRowData(“Address”).ToString.Contains(CurrentRowRef(“Barangay”).ToString)
Check the if conditions once if i have given proper columns…and after tostring try including .tolower.Trim on both sides of contains…may be the casing is different