Back to examples

Duplicate matches

Handle Multiple Lookup Matches for the Same Key

Marcus, a customer success lead, reviews accounts with multiple support tickets and chooses how duplicate matches should appear.

Problem

Marcus prepares a weekly customer health review. The account list has one row per customer, but the support export can have several tickets for the same Customer ID. He needs to decide whether to keep only one ticket, expand every ticket into its own row, or combine values into one cell.

Demo Files

Main file: Customer Health List

Customer IDCustomer Name
C-102Acme Supply
C-118Northstar Co
C-204Bright Labs

Lookup file: Support Ticket Export

Customer IDTicket IDTicket StatusCreated Date
C-102T-1001Open2026-05-01
C-102T-1004Closed2026-05-03
C-118T-1007Waiting2026-05-06

Recommended Options

  • Use first match when you want VLOOKUP-like behavior.
  • Use last match when the newest row appears later in the lookup file.
  • Use expand when every matching lookup row should become its own output row.
  • Use combine when you want all duplicate values kept in one cell.

Result Preview

Result preview: Expand into multiple rows

Customer IDCustomer NameTicket IDTicket StatusCreated Date
C-102Acme SupplyT-1001Open2026-05-01
C-102Acme SupplyT-1004Closed2026-05-03
C-118Northstar CoT-1007Waiting2026-05-06
C-204Bright LabsNo matchNo matchNo match

What This Shows

  • Duplicate handling is where SheetMatch is more flexible than a basic VLOOKUP formula.
  • For Marcus, expand creates a clean review list where each customer stays in place and related tickets appear next to that customer.

Related searches

vlookup multiple matchesvlookup duplicate valueslookup duplicate matches excel

Try the same setup in SheetMatch

Upload your main file and lookup file, choose the matching columns shown above, then select the columns you want to bring into the result.

Open SheetMatch