With Power Query it is a two step event in the UI. Here is the resulting Mcode.
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Split Column by Delimiter" = Table.SplitColumn(Source, "Column1", Splitter.SplitTextByEachDelimiter({" "}, QuoteStyle.Csv, true), {"Column1.1", "Column1.2"}),
#"Split Column by Delimiter1" = Table.SplitColumn(#"Split Column by Delimiter", "Column1.1", Splitter.SplitTextByEachDelimiter({" "}, QuoteStyle.Csv, true), {"Column1.1.1", "Column1.1.2"})
in
#"Split Column by Delimiter1"
Excel 2016 (Windows) 32 bit
|
A |
B |
C |
D |
E |
1 |
Column1 |
|
Column1.1.1 |
Column1.1.2 |
Column1.2 |
2 |
6572 Jenn Dr Payton Township Ohio 48044-5972 USA |
|
6572 Jenn Dr Payton Township Ohio |
48044-5972 |
USA |
3 |
5900 Timber Place Ave. Groplick Kentucky 49859 USA |
|
5900 Timber Place Ave. Groplick Kentucky |
49859 |
USA |
4 |
5359 Midsummer ave. Porktown Kentucky 41741 USA |
|
5359 Midsummer ave. Porktown Kentucky |
41741 |
USA |
5 |
1443 Elk trotter ave Cowcity Ohio 45756 USA |
|
1443 Elk trotter ave Cowcity Ohio |
45756 |
USA |
6 |
|
|
|
|
|
Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").
It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.
- Follow this link to learn how to install Power Query in Excel 2010 / 2013.
- Follow this link for an introduction to Power Query functionality.
- Follow this link for a video which demonstrates how to use Power Query code provided.
Bookmarks