How to Look Up Names from Winning Ticket Numbers in Excel
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.

- 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.
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.
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.
Click on cell F2, which is adjacent to your first winning ticket number in column E.
Type the formula: =VLOOKUP($E2,$A:$B,2,FALSE) into the formula bar.
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 XLOOKUP Function (For Newer Excel Versions)
XLOOKUP is a more modern, flexible alternative to VLOOKUP that easily handles missing matches and doesn't require the search column to be the first column.
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. Open your file in WPS Spreadsheet: Launch WPS Office and open your workbook containing the ticket numbers and names.
- 2. Select the blank cell: Click on the empty cell next to your first winning ticket number where the name should appear.
- 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. 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.

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").




