How to Use a VIN Decoder in Microsoft Excel
Question details
The user wants to learn how to decode Vehicle Identification Numbers (VINs) and integrate the decoded vehicle data directly into an Excel spreadsheet or database.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Managing a list of vehicle inventory or fleet data and needing to automatically extract specific vehicle details (like make, model, and year) from VIN strings.
- Observed behavior
- Needs a reliable method, formula, or tool to process 17-character VIN strings within a spreadsheet to populate corresponding vehicle data columns.
Before starting, ensure your spreadsheet contains valid 17-character VINs without any trailing spaces or special characters, and verify you have an active internet connection if you plan to fetch data from an external API.
Use an External VIN API via Excel Power Query
The most efficient way to decode full VINs dynamically is by connecting Excel to a free or paid VIN decoder API (such as the NHTSA API) using Power Query.
Microsoft Excel does not have a built-in native feature to recognize vehicle codes. However, you can use the 'Get Data from Web' feature to send a VIN to a public database and retrieve the vehicle's make, model, and year automatically.
Note that processing large lists of VINs may require a batch API or setting up a custom Power Query function to loop through your rows.
Find a reliable VIN decoding API. For example, the US NHTSA provides a free endpoint formatted like 'https://vpic.nhtsa.dot.gov/api/vehicles/decodevin/YOUR_VIN?format=json'.
In Excel, navigate to the 'Data' tab, click on 'Get Data', then select 'From Other Sources' and choose 'From Web'.
Paste the API URL containing your target VIN into the dialog box and click 'OK'.
Once the Power Query Editor opens, navigate through the JSON record (usually clicking on 'Results' or 'Message') to expand the columns. Select the specific data points you need, such as Make, Model, and Model Year.
Click 'Close & Load' in the top-left corner of the Power Query Editor to insert the decoded data into a new worksheet.

Extract the Vehicle Year Using Excel Formulas
If you only need basic information like the vehicle model year, you can extract it using Excel's text functions combined with a lookup table.
Use a Third-Party VIN Decoder Add-in
Install a dedicated Excel add-in designed specifically for automotive data management to decode VINs in bulk without manual API setup.
Seamlessly Parse and Import Vehicle Data
WPS Spreadsheet provides powerful text functions and robust data import tools, making it easy to manage large automotive databases. Whether you are extracting VIN characteristics with formulas or importing bulk CSV files from online decoders, WPS Office offers a lightweight and highly compatible environment for your automotive data needs.
- 1. Open Your VIN Database: Launch WPS Spreadsheet and open your existing vehicle inventory list.
- 2. Parse Key Data with Formulas: Use built-in functions like =MID(A2,10,1) combined with =VLOOKUP() to instantly identify vehicle model years from the VIN string.
- 3. Import Bulk Decoded Files: If you used an online bulk decoder, go to 'Data' > 'Import Data' to seamlessly merge the downloaded CSV data with your existing spreadsheet.
- 4. Save in Standard Formats: Save your finished database as an .xlsx file, ensuring 100% compatibility with colleagues using Microsoft Office.

Frequently Asked Questions
Can Excel automatically decode a VIN without using add-ins?
No. Excel does not have an internal database of vehicle codes. To get full make and model details, you must connect Excel to an external data source via Power Query, import a decoded file, or use specialized add-ins.
What information can I extract from a VIN using Excel formulas?
Using the MID function, you can extract specific standardized characters. Most commonly, the 1st character indicates the country of origin, and the 10th character indicates the vehicle's model year. These can be mapped to real values using a VLOOKUP table.
Are there free VIN decoder APIs available for Excel?
Yes. The National Highway Traffic Safety Administration (NHTSA) offers a free, public API that you can query using Excel's 'Data From Web' feature to retrieve comprehensive vehicle details.
Why is my VLOOKUP formula returning an error for the VIN year?
This usually happens because the extracted character is formatted differently than the lookup table (e.g., text vs. number). Ensure your extracted character is treated as text, or wrap your MID function in a VALUE() formula if comparing it to numbers.




