Custom Function in Power Query to Merge 2 Tables @OzduSoleilDATA
Custom Function in Power Query to Merge 2 Tables  @OzduSoleilDATA
Uploaded September 2018 | Updated November 2026, 11 hours ago
Custom Functions in Excel's Power Query. It's finally time to take them on. For a while I couldn't think of a good use. It'd seen the how-to but never really a what-for.

In this video I propose a common situation where lists will trickle in and we'll need to convert the state abbreviations into state names via a master list. E.g., convert LA to Louisiana, and GU to Guam.

We'll get one list, then 2 hours later another list, then tomorrow we'll get 2 lists. Ongoing trickle. We could write a new VLOOKUP every time, but that would get tedious.

A Custom Function in Power Query will help us out.

I show how to do this as a partially manual process with 2 steps:
1. Manually bring the data into Power Query
2. Apply the custom function.

Pretty simple, but it takes some thinking.
You'll see some M Code and the "Insert Step After" feature.

#PowerQueryCustomFunction
#CustomFunctionInPowerQuery
#MergeTablesInPowerQuery

For an intro to Get & Transform (Power Query) try my Lynda/LinkedIn course:
linkedin.com/learning/instructors/oz-du-soleil?trk=insiders_28299411_learning

Download the workbook:
datascopic.net/CFMerge


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
Custom 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 CompletionsExcel NETWORKDAYS part 3: calculating custom weekends with Power QueryMr. Excel (Bill Jelen) Challenge | Flattening Crazy Data | Podcast 2316Segmenting a List into 8 Pieces using Excels Power Query (Get and Transform)Cross Joins in Power Query: Measuring Student ProgressRedux: Students, Courses, Power Query, Group By & ListsExcel Power Query  Data Cleansing Part 2 Clean  Extract Data Using Formulas  Analytical Tools
Excel On Fire (Oz du Soleil) |

Custom Function in Power Query to Merge 2 Tables

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER