Excel
#36

Joining Dirty Datasets with Power Query Fuzzy Matching

MediumKPMG
Interview Question #36
Asked at KPMG

You need to merge a Vendor Invoice table with an Approved Vendor Master list. Company names in the invoices have typos (e.g. 'Microsoft Corp', 'Microsoft Corporation', 'Micro soft'). VLOOKUP fails. Explain how Power Query's Merge Queries with Fuzzy Matching solves this.

Input Table: TablesToMerge
3 rows preview
Invoice Table VendorMaster List Approved Vendor
Microsoft CorpMicrosoft Corporation
General Electric Inc.General Electric Co.
Amazon.com LLCAmazon
Expected Output Structure2 rows
Matched Invoice VendorResolved Master VendorSimilarity Score
Microsoft CorpMicrosoft Corporation0.92
General Electric Inc.General Electric Co.0.88
Interview Context

Asked frequently in data analyst and business analyst technical rounds. Focus on clean filtering, optimal indexing usage, and unambiguous column selection.

Microsoft Excel 365
E2fx
ABCDEF
1
Invoice Table Vendor
Master List Approved Vendor
2
Microsoft Corp
Microsoft Corporation
Target [Enter Formula]
3
General Electric Inc.
General Electric Co.
4
Amazon.com LLC
Amazon
5
6
7
Click on target cell E2 and enter your formula above.Shortcut: Click "Load Solution" to inspect
Chat with us