Power Query Challenge: Split by Multiple Delimiters | Merge All Columns @OzduSoleilDATA
Power Query Challenge: Split by Multiple Delimiters | Merge All Columns  @OzduSoleilDATA
Uploaded July 2021 | Updated November 2026, 2 days ago
Iranian Dr. Excel posted a challenge on LinkedIn:
How can you split columns when there are multiple, different delimiters? Ex:
Joe+Lisa+Francine/Kathy
Rita&Sal&Gene
Samantha/Denise

This was interesting for several reasons:

1. It's very easy to do if you want a 1-and-done solution with just 3 delimiters. However,
2. If you want something truly dynamic, it involves solving 2 major problems with Power Query: splitting variable columns and merging all columns in a query.
3. I show an ugly but effective solution that I call The Elephant Through the Front Door Move.

First. When splitting columns with Power Query, a value gets hard-coded; e.g., if your initial split goes into 5 columns, the 5 is stuck, and if you later have 7 columns or 3 columns, that 5 is still there.
I found a solution to this here:
goodly.co.in/split-by-variable-columns-in-power-query

Second. Sometimes we want to merge all of the columns in a query, but there's no feature for that. But here is Power Query M-Code:
exceltown.com/en/tutorials/power-bi/power-query-m-language/merging-of-all-columns-in-power-query-regardless-of-their-names

This was hard! But the solution I show is truly dynamic. If there are more delimiters in future data, they get picked up; if the number of columns grows or expands, Power Query will cooperate.



#SplitByDelimiters
#MergeColumns
#PowerQuery


For a list of my Excel courses at Lynda/LinkedIn:

linkedin.com/learning/instructors/oz-du-soleil


There are courses on Power Query, Good spreadsheet habits, and a weekly Excel challenge that comes out every Friday.

Website: ozdusoleil.com

My book: Guerrilla Data Analysis 2nd Edition
amazon.com/Guerrilla-Analysis-Using-Microsoft-Excel/dp/1615470336

My old blog: datascopic.net/blog-2-2
Power Query Challenge: Split by Multiple Delimiters | Merge All ColumnsPaqui One Chip Challenge 2017 | Carolina Reaper ChipExcel Power Query  Data Cleansing Part 3 Consolidate Workbooks  Worksheets Using Power QueryData Literacy, Power Query, Understanding Data and ReportsFull Anti-Join and the New XLOOKUP with if not foundReconciling Christmas Payments 2: Merging a Power Query Query with ItselfCreating a Dynamic Hyperlink in ExcelFuzzy Matching: Matching Inconsistent Phone Numbers in Power QueryUsing Power Query to Keep Duplicate Records and Delete Single RecordsDynamic Arrays  |  FILTER  |  Retrieve Only Specified ColumnsThe New Fuzzy Matching Feature in Excels Power QueryFunkyFunktionFriday - Consolidating 7 Worksheets using Simple M Code (The Big Payback)
Excel On Fire (Oz du Soleil) |

Power Query Challenge: Split by Multiple Delimiters | Merge All Columns

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER