Data Import & Export

How to Use a VIN Decoder in Microsoft Excel

Steven ParkerSteven Parker Oct 26, 2026 868 views

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.

How to Use a VIN Decoder in Microsoft Excel
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 you start

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.

Solution 1Recommended

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.

1
Obtain an API Endpoint

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'.

2
Import Data from Web

In Excel, navigate to the 'Data' tab, click on 'Get Data', then select 'From Other Sources' and choose 'From Web'.

3
Enter the URL

Paste the API URL containing your target VIN into the dialog box and click 'OK'.

4
Parse the JSON Data

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.

5
Load to Spreadsheet

Click 'Close & Load' in the top-left corner of the Power Query Editor to insert the decoded data into a new worksheet.

Use an External VIN API via Excel Power Query
API Limitations: Free APIs may have rate limits on how many VINs you can decode per minute. Always review the terms of service of the API provider.
Manage VIN Data with WPS Spreadsheet

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. 1. Open Your VIN Database: Launch WPS Spreadsheet and open your existing vehicle inventory list.
  2. 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. 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. 4. Save in Standard Formats: Save your finished database as an .xlsx file, ensuring 100% compatibility with colleagues using Microsoft Office.
Fully compatible with Microsoft Excel (.xlsx, .xls) files and formulas.Built-in text extraction functions (MID, VLOOKUP) for quick VIN parsing.Lightweight software with fast processing for large inventory datasets.Free to download and use with a highly familiar user interface.
microsoft office alternative - wps 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.