logo
search
Function Problems

How to Create QR Codes and Barcodes in Excel

Maira MehtabMaira Mehtab Sep 22, 2026 869 views

Question details

The user needs to generate QR codes and barcodes within Excel to manage inventory and display them next to corresponding product records.

Product
Excel
Device & OS
not provided
Scenario
Creating visual product identifiers for inventory management spreadsheets.
Observed behavior
The user wants to successfully display generated QR codes and product barcodes alongside their product records without relying on unsupported methods.
Before you start

Ensure you have the necessary system permissions to install new fonts or add-ins on your computer, as Excel requires these external tools to render barcodes and QR codes.

Solution 1Recommended

Generate Standard Barcodes Using a Barcode Font

The most reliable way to create standard barcodes across different operating systems without compatibility issues is to use a dedicated barcode font.

Avoid relying on ActiveX controls for barcode generation. ActiveX controls are considered legacy features that are completely unavailable on Mac operating systems and are deprecated or disabled by default in modern Windows Office environments.

1
Download a Barcode Font

Search online for a trusted font provider and download a standard barcode font, such as Code 39 or Code 128, which are widely used for inventory.

2
Install the Font

Extract the downloaded font file. On Windows, right-click the file and select 'Install'. On Mac, double-click the file and click 'Install Font' in Font Book.

3
Format the Excel Cell

Open your Excel spreadsheet, select the cells where you will type the product codes, right-click, choose 'Format Cells', and set the format to 'Text'.

4
Apply the Barcode Font

Type your product code into the cell, select the cell, and navigate to the 'Home' tab. Click the font dropdown menu and select your newly installed barcode font to transform the text into a readable barcode.

Formatting Requirement for Code 39: If you are using a Code 39 barcode font, you must wrap your product code in asterisks (e.g., *12345*) so that standard barcode scanners can correctly identify the start and end of the code.
Efficient Inventory Management

Easily Manage Barcodes and Inventory with WPS Office

WPS Spreadsheet provides a lightweight and user-friendly environment for managing inventory data. You can easily apply barcode fonts to your product records and insert QR code images smoothly, ensuring seamless data management without relying on outdated legacy controls.

  1. 1. Open Your Inventory Spreadsheet: Launch WPS Spreadsheet and open your existing inventory file or create a new one.
  2. 2. Apply Custom Barcode Fonts: Select the column containing your product codes. Go to the 'Home' tab, click the font dropdown, and apply your installed barcode font (e.g., Code 39).
  3. 3. Insert Product QR Codes: Navigate to the 'Insert' tab and click 'Picture' to import and align any pre-generated QR code images directly into the cells next to your product details.
Fully compatible with Microsoft Excel (.xlsx) files, ensuring your inventory sheets open flawlessly.Seamlessly apply custom barcode fonts and insert external QR code images with intuitive tools.Lightweight software that runs smoothly across Windows, Mac, and Linux without lag.Free to use for daily spreadsheet creation, formatting, and data management tasks.
microsoft office alternative - wps office

Frequently Asked Questions

Why shouldn't I use ActiveX controls for barcodes in Excel?

ActiveX controls are legacy technology that cause frequent compatibility issues. They are not supported on Mac devices and are actively being deprecated or disabled for security reasons in modern versions of Windows Office.

Can I generate a barcode using just an Excel formula without fonts?

No, Excel does not have a native formula that visually outputs a standard barcode. You must combine text-manipulation formulas with an installed barcode font, or use a dedicated add-in to generate the image.

Will barcode fonts work if I share the Excel file with someone else?

The barcode will only display correctly if the recipient also has the exact same barcode font installed on their computer. If they do not, the cell will simply display the plain text. To share the visual barcodes safely, save the Excel sheet as a PDF.