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
← Swipe the sheet to see more columns →
ABCDEFGHIJ
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
8
9
10
This question demonstrates a technique that can't be graded as a single cell formula (it needs another sheet, a real PivotTable, or compares two methods side-by-side). Read the explanation below instead.
Chat with us