How to Automatically Populate Excel Columns from a Vehicle Registration
Question details
The user needs to automatically retrieve and populate related vehicle information into Excel columns based on an entered vehicle registration number.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Entering a vehicle registration in one column and having adjacent columns auto-fill with specific details (like make, model, year) referenced from a master lookup table.
- Observed behavior
- Related vehicle fields are automatically populated from the source table using lookup formulas when a registration number is entered.
Ensure you have a complete master source table where the first column contains the vehicle registration numbers and the adjacent columns hold the corresponding vehicle details.
Use IF and VLOOKUP to Populate Vehicle Details
The VLOOKUP function is the most straightforward way to search for a vehicle registration and return corresponding data from a master table, while IF prevents errors when cells are left blank.
VLOOKUP searches for a value in the leftmost column of a table and returns a value in the same row from a specified column. By nesting it inside an IF statement, you can ensure that the formula cell remains blank until a registration is actually entered.
Create a master table (e.g., named 'Table1') where the leftmost column contains all vehicle registration numbers and subsequent columns hold related data like Make, Model, and Year.
In the cell where you want the information to appear, enter the formula `=IF(C2<>"",VLOOKUP(C2,Table1,2,FALSE),"")`. Replace 'C2' with the cell containing the vehicle registration you want to look up, and '2' with the column index of the data you want to retrieve.
Change the column index number (e.g., from 2 to 3) for different fields to return different data columns. Drag the fill handle down to apply the formula to the rest of the worksheet.

Use INDEX and MATCH for Flexible Data Retrieval
INDEX and MATCH provide a more robust alternative to VLOOKUP, especially if your vehicle registration column is not the first column in your source data.
Easily Auto-Populate Columns with WPS Spreadsheet
WPS Spreadsheet fully supports advanced lookup functions like VLOOKUP, XLOOKUP, and INDEX/MATCH, allowing you to effortlessly manage vehicle registration databases and automate your data entry tasks.
- 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your vehicle registration workbook containing the source table.
- 2. Apply Lookup Formulas: Select the target cell and type your VLOOKUP or INDEX/MATCH formula to fetch the corresponding vehicle details.
- 3. Quick fill across rows: Double-click the fill handle at the bottom right corner of the selected cell to instantly apply the lookup formula to hundreds of rows.

Frequently Asked Questions
Why is my VLOOKUP returning an #N/A error when looking up vehicle registrations?
An #N/A error means the formula cannot find the exact vehicle registration in your lookup table. Ensure there are no trailing spaces, format differences (like text vs. numbers), and that the lookup value exists in the very first column of your source table.
Can I use XLOOKUP instead of VLOOKUP for auto-populating vehicle data?
Yes. XLOOKUP is highly recommended as a modern alternative. It is simpler to use, does not require the lookup value to be in the first column, automatically handles missing values without needing an IFERROR wrapper, and can easily return multiple columns at once.
How do I return multiple columns of vehicle details with one formula?
With VLOOKUP, you can use an array constant for the column index, such as `=VLOOKUP(C2, Table1, {2,3,4}, FALSE)`, to spill the Make, Model, and Year into adjacent columns simultaneously. If you use XLOOKUP, simply select a multi-column return array.




