We have Excel file. This file is in a cells with the name “address” containing the line, for example:
The Accounts Department, National Bank Ltd, 20 Lombard Str., London 3 WRS, England
Need to share information in the cell groups. That is, we must have the following cells:
“country”: England
“city”: London
“street”: Lombard Str.
…..
and other
That is necessary to analyze the contents of the cell and divide the content into logical parts.
You can tell from what I get started?
There is no sure-fire way to do this. Assuming (and this is a big assumption) that commas are only used to separate cells, you can the
Datamenu, selectText To Columns, and selectcommaas your delimiter.That should give you something like the following:
From there, in cell F1, you could do the following to try and extract the street name:
You can use this to find the city:
You’ll probably find exceptions to both my formulas, and you’ll just have to work around that.
If my first assumption is wrong, and there are commas in the text other than the field delimiter, I’d ask to get the file back with a different delimiter (pipe for example).