Excel Power Query: Import Data from Web Page and Clear Line-Breaks @OzduSoleilDATA
Excel Power Query: Import Data from Web Page and Clear Line-Breaks  @OzduSoleilDATA
Uploaded March 2017 | Updated November 2026, 1 day ago
Power Query has Clean and Trim features, but sometimes those don't work with line-breaks.

1:49 Importing the data from the Wikipedia page
2:29 Unpivot
3:13 Split columns
3:35 Explanation of the problem of the data being on multiple lines
4:30 Clean & Trim (they don't work)
4:48 Setting up the data to
5:36 #(lf) to expose the line-feeds
6:22 Split columns
6:50 Unpivot

This video imports data from a Wikipedia page and cleanses it. The problem is each cell has a tall column of data that needs to be parsed. To do this, watch how we have to get crafty because it's necessary to handle this with M code.

We have to use #(lf)

Along the way, you'll see:
Unpivot,
Replace Values
Trim and Cleanse
And lots of fire.


Contact me:
oz1.depot@gmail.com

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
Excel Power Query: Import Data from Web Page and Clear Line-BreaksExcel Challenge (Kevin Lehrbass): Get & Transform to List All Unique Pairs in a Class of 10 StudentsWhere INDEX-MATCH Wins Over XLOOKUP and VLOOKUPThe Missing Donation Receipts: Using a Power Query Anti-Join against Multiple Records and CriteriaKen Puls ExcelGuru Challenge: Isolate Members and Memberships using Power Query Group-By and JoinsThe New & Improved RANDARRAY Dynamic Array FunctionCustom Function in Power Query to Merge 2 TablesExcels Get and Transform: Handling Leading Zeros and a Little M-CodeExcel Campus License Plate Challenge: The Down & Dirty EditionPower Query: Combine rows into a single cell with Text.CombineDynamic Array: Unstack Data with SEQUENCE ... just 2 stepsExcel Experts Live Challenge: Diarmuid Early vs. The Jumbled Course Completions
Excel On Fire (Oz du Soleil) |

Excel Power Query: Import Data from Web Page and Clear Line-Breaks

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER