Forum Discussion
Split cells
Excel You start by saying "Suppose this is the data". That could mean that your real data isn't like in your screenshots at all. But let's suppose it is, then you could go through a number of Text-to-column steps, manually, or you use Power Query (PQ). The attached file contains a PQ solution.
First split by the comma. This will create three columns:
Then split the first column at the point where a character changes to a number (digit):
Then add a custom column that excludes any number from the field that contains the city:
Trim the custom column, delete the original column with the city information and reorder the remaining columns:
Load the end result back to Excel:
Sir can we do with the help of formula?
If yes,
please help..??
Here is a attached file
- Riny_van_EekelenJun 07, 2021Platinum Contributor
Excel Not sure what you are after. The file you attached is the same as earlier. I provided a Power Query solution that does exactly what you asked for, and SergeiBaklan provided a formula solution. The only difference is that his formula does not exclude the numbers for entries like "10786 Berlin". Perhaps Sergei can fix that, as I'm not all that familiar with FILTERXML.
- ExcelJun 07, 2021Iron ContributorOk, Thank you so much sir😊