Excel
#4

Performing Left Lookups Without Restructuring Tables

EasyMcKinsey
Interview Question #4
Asked at McKinsey

In an ERP export, Customer Email is in Column C, while Customer ID is in Column A. In cell `F2`, a user supplies an email address. Write a formula in cell `G2` to retrieve the Customer ID in Column A without rearranging the raw columns.

Input Table: CustomerExport (A1:C4)
3 rows preview
CustomerID (Col A)Customer Name (Col B)Email (Col C)
CUST-001Acme Corporders@acme.com
CUST-002Globex Incinfo@globex.org
CUST-003Initech LLCbilling@initech.net
Expected Output Structure1 rows
Search Email (F2)Customer ID (G2)
info@globex.orgCUST-002
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
CustomerID (Col A)
Customer Name (Col B)
Email (Col C)
2
CUST-001
Acme Corp
orders@acme.com
Target [Enter Formula]
3
CUST-002
Globex Inc
info@globex.org
4
CUST-003
Initech LLC
billing@initech.net
5
6
7
Click on target cell E2 and enter your formula above.Shortcut: Click "Load Solution" to inspect
Chat with us