What is the fastest way to remove characters for each cell? I have 300k rows, looping every single cell is not ideal. I tried text to column but i would need to know how many symbols there could be within each cell. Is there a better way to do this?
Here's what I have looping 300,000 cell. It takes way too much time.
For Each destineCell In destinRange
cellVal = destineCell.Value
If (InStr(cellVal, ", ")) Then
removed = Left(cellVal, InStr(cellVal, ", ") - 1)
ActiveCell.Value = removed & " "
End If
ActiveCell.Offset(1, 0).Select
Next destineCell
[[Update]] Here's what a sample data would look like..
New York, NY, USA
Rome, Italy - Tier 1 City
the data itself varies. Sometimes it'll have a comma, a dash or both.