Function Problems

How to Look Up Names from Winning Ticket Numbers in Excel

Olivia MillerOlivia Miller Nov 3, 2026 869 views

Question details

The user needs to automatically retrieve and display first names corresponding to a specific list of winning ticket numbers using data from an existing table.

How to Look Up Names from Winning Ticket Numbers in Excel
Product
Excel
Device & OS
not provided
Scenario
Matching winning ticket numbers drawn in a raffle or event to a master list of participants to quickly identify the winners.
Observed behavior
The goal is to use a formula that automatically searches for a ticket number and returns the corresponding name, replacing manual lookups.
Before you start

Ensure your ticket numbers in both columns share the same formatting (either both text or both numbers), and remove any accidental blank spaces to prevent matching errors.

Solution 1Recommended

Use the VLOOKUP Function

VLOOKUP is the standard and most widely compatible method for searching for a matching value in the first column of a dataset and returning a value from the same row.

In this scenario, column A holds your complete list of ticket numbers and column B holds the names. Since you want to find the names for the winning tickets in column E, VLOOKUP will scan column A for a match and return the corresponding name from column B.

1
Select the target cell

Click on cell F2, which is adjacent to your first winning ticket number in column E.

2
Enter the VLOOKUP formula

Type the formula: =VLOOKUP($E2,$A:$B,2,FALSE) into the formula bar.

3
Apply the formula to all rows

Press Enter to execute the formula. Then, click the small square at the bottom-right corner of cell F2 and drag it down to fill the rest of the column.

Use the VLOOKUP Function
Formula Breakdown: $E2 is the lookup value, $A:$B is the search range, 2 indicates the second column (names), and FALSE ensures an exact match.
Powerful Spreadsheet Tool

Easily Match Data and Find Winners with WPS Spreadsheet

WPS Office offers a fully-featured, lightweight spreadsheet application that supports advanced formulas like VLOOKUP and XLOOKUP out of the box, allowing you to manage your event data completely free of charge.

  1. 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your workbook containing the ticket numbers and names.
  2. 2. Select the blank cell: Click on the empty cell next to your first winning ticket number where the name should appear.
  3. 3. Insert the lookup formula: Go to the Formulas tab, select Lookup & Reference, and choose VLOOKUP, or simply type =VLOOKUP($E2,$A:$B,2,FALSE).
  4. 4. Drag to fill: Press Enter to reveal the winner's name, then drag the fill handle down to apply the formula to the remaining tickets.
100% compatible with Microsoft Excel file formats (.xlsx) and formulasLightning-fast performance for handling large datasets and ticket listsCompletely free to download with an intuitive, familiar user interface
microsoft office alternative - wps office

Frequently Asked Questions

Why is my VLOOKUP returning a #N/A error for a ticket number I know is on the list?

This usually happens due to data formatting inconsistencies. The ticket number in column E might be stored as text, while the numbers in column A are stored as numbers (or vice versa). Check for hidden spaces and ensure both columns use the exact same data format.

Can I use VLOOKUP if the names are in column A and the ticket numbers are in column B?

No, VLOOKUP can only search for a value in the leftmost column of your selected range and return a value to the right. If your ticket numbers are on the right, you must use XLOOKUP or an INDEX and MATCH formula combination instead.

How do I hide the #N/A error if a ticket number doesn't match using VLOOKUP?

You can wrap your VLOOKUP formula inside an IFERROR function to replace the default error with custom text or a blank cell. For example: =IFERROR(VLOOKUP($E2,$A:$B,2,FALSE), "No Match Found").