Skip to content
Advertisement

I need help formating this data

I have data like this

JavaScript

The problem is some data is not in the format like this

JavaScript

As you can see in the “local,hometown” there are 3 commas, I want to delete one of them so the data become like this

JavaScript

This is just an example to the problem in my data there could be more than 3 commas and different addresses

Essentially I want to load the data into excel and have it show up clean each column with the right data

Advertisement

Answer

The problem is that a value is split into multiple colums when it should be in one column. If this is only possible with one column but we have a fixed number of columns before and after, then it’s possible to fix it:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement