EDUCBA Logo

EDUCBA

MENUMENU
  • Explore
    • EDUCBA Pro
    • PRO Bundles
    • Featured Skills
    • New & Trending
    • Fresh Entries
    • Finance
    • Data Science
    • Programming and Dev
    • Excel
    • Marketing
    • HR
    • PDP
    • VFX and Design
    • Project Management
    • Exam Prep
    • All Courses
  • Blog
  • Enterprise
  • Free Courses
  • Log in
  • Sign Up
Home Excel Excel Resources Excel Tools Barcode in Excel
 

Barcode in Excel

Udiksha Sable
Article byUdiksha Sable
Shamli Desai
Reviewed byShamli Desai

How to create barcode in excel

What is Barcode in Excel?

Microsoft Excel provides a simple way to generate and use barcodes within your spreadsheets. Excel has no built-in feature for creating barcodes, but you can use barcode fonts to achieve this. You must install a barcode font on your computer before using it in Excel. There are various free and paid barcode fonts available online. This article will look into how to download, install, and create a Barcode in Excel.

 

 

Table of Contents (TOC)
  1. Download and Install Barcode Fonts
  2. How to Create Barcode in Excel?
    1. Method 1: Using the “Barcode” Font
    2. Method 2: Using the “Code 39” Barcode Font
    3. Method 3: Using Formula for “Code 128” Barcode Font
  3. Benefits
  4. Things to Remember

How to Download and Install Barcode Font in Excel?

Downloading and installing a barcode font in Excel involves a few simple steps as follows:

Watch our Demo Courses and Videos

Valuation, Hadoop, Excel, Mobile Apps, Web Development & many more.

Step 1: Visit Any Online Barcode Generator
  • Open your web browser and go to dafont.com
Step 2: Choose and Download the Font
  • In the search box, type “barcode font”.
  • To download the desired font, click the “Download” button.

Download barcode font to create barcode in excel

Step 3: Save and Extract the Font
  • Save the font file (barcode_font.zip) to a location on your computer.

Save and Extract the Font

  • Right-click on the downloaded file, and choose the Extract files under 7-zip.

Extract barcode font to create barcode in excel

  • This will create a new folder named barcode_font.

Extracted Folder

Step 4: Install the Font
  1. Locate the font file (usually with a .ttf extension) in the extracted or downloaded folder.
  2. Right-click on the font file.
  3. Choose “Install” from the context menu.

Install barcode font to create barcode in excel

Step 5: Confirm Installation
  1. Open Microsoft Excel.
  2. Check if the installed font appears in the font list.

Confirm Installation

How to Create Barcode in Excel? (3 Easy Methods)

You can download this Barcode in Excel Template here – Barcode in Excel Template

To generate a barcode in Excel, you can follow the below methods:

Method 1: Create a Barcode Using the “Barcode” Font

In this method, we are going to create a barcode in Excel for the following electronic appliances:

  • Laptop
  • Smartphone
  • Headphone
Step 1: Download and Install the Font for the Barcode (as shown in the above section)

This Barcode Font can only encode alphanumeric (Uppercase A-Z) & (0-9) and a few special characters (.,-,+,!).

Note: If you want to use more special characters, you must use fonts that can encode a wider range of characters. Refer to fonts used in methods 2 and 3.
Step 2: Close and Reopen Excel (to see the new font installed in Excel)
Step 3: Enter Product Data
  • In column A, enter the product names (e.g., A2: Laptop, A3: Smartphone, A4: Headphones).
  • In column B, enter the corresponding product codes (e.g., B2: LAP001, B3: PHN123, B4: HPD456).
  • Name column C as Barcode.

Enter product data to create barcode in excel

Step 4: Format Cells as Text
  • We want to convert product codes to barcodes. Therefore, select the range B2:B4 containing the product data.
  • Select “Home Tab“, go to the “Number” tab, and Click the small “Arrow Button”.
  • From the category list on the left from Number Tab, select “Text“.
  • Click “OK” to apply the changes.

Format cells to create barcode in excel

Step 5: Link Product ID Cells
  • In cell C2, enter the formula =B2.
  • Drag the formula down and fill in the cells in column C for the entire list of products.

Link product ID cells to create barcode in excel

Step 6: Apply Barcode Font to Linked Cells
  • Select the cells in column C.
  • Go to the “Home” tab in the Excel ribbon.
  • In the “Font” section, find the font dropdown list.
  • Select the installed font “BarcodeFont” from the list.

Apply barcode font in excel

Result: You can now see the applied barcode for each product in the designated cells.
result1 of barcode in excel

Note: You can adjust and modify the font size as per your preference.

Method 2: Create a Barcode Using the “Code 39” Barcode Font

In this method, we will create barcodes for the following home appliances:

  • Refrigerator
  • Washing machine
  • Microwave oven
  • Vacuum cleaner
Step 1: Download and Install the Code39 Barcode Font

You can download it from Dafont or any other suitable website (Refer to the “How to Download Barcode Font” section).

Note: Code 39 font is used for general-purpose labeling in industries like manufacturing. It encodes alphanumeric and seven special characters as follows:

A) Alphanumeric characters:

  • Numbers (0-9)
  • Uppercase letters (A-Z)

B) Seven special characters:

  • Space
  • Minus (-)
  • Period (.)
  • Dollar ($)
  • Slash (/)
  • Plus (+)
  • Percent (%)

These special characters are used for various purposes, such as indicating the start and stop of the barcode.

Step 2: Enter Product Details
  • Add the details of the home appliances in columns A and B as follows:

Method 2 - product details of barcode in Excel

Step 3: Format Cells (refer to example 1: Step 4)
Step 4:  Link Product ID Cells (refer to example 1: Step 5)
Step 5: Apply Code39 Barcode Font to Linked Cells (refer to example 1: Step 6)
  • Select the installed font “Code39” from the list.

Result: You can now see the applied Code39 barcode font for each product in the designated cells of column C.

result2 of barcode in excel

Method 3: Create a Barcode Using Formula for “Code 128” Barcode Font

In this method, we will create barcodes for different smartphone models:

  • Xiaomi Mi 11
  • Motorola Edge+
  • Samsung Galaxy S21
Step 1: Download and Install the Code128 Barcode Font (refer to “How to Download” section).
Note: Code 128 can encode a much broader range of characters than Code 39. It can encode the entire ASCII characters. It is widely used in shipping for its high data capacity.

The ASCII character set includes:

  • Uppercase letters (A-Z)
  • Lowercase letters (a-z)
  • Numbers (0-9)
  • Punctuation marks
  • Special characters (e.g., @, #, $, %)
  • Control characters (e.g., newline, tab)

Method 3 - product details of barcode in Excel

Step 2: Enter Product Details
  • Open Excel and enter Mobile product names in column A and corresponding product codes in column B as follows:
Step 3: Format Cells as Text (refer to example 1: Step 4)
Step 4: Create Formula for Barcode in Excel
  • In Column C, enter the following formula in the first cell (C2):

=”(” & B2 & “)”
Method 3 - create formula

Note: This formula adds parentheses () at the beginning and end of the product code. The parentheses are used at the beginning and end of the encoded data. This helps the barcode scanner identify the start and end points of the information, ensuring accurate and complete reading of the barcode.
  • Drag the formula down to apply it to the entire column.

 Drag the formula down to apply

Step 5: Apply Code128 Barcode Font (refer to Example 1 and apply Step 4)
  • Then, select the installed font “Code128” from the list.

Result: The generated barcode for each product is now visible in the assigned cells.

result3 of barcode in excel

Benefits of Creating Barcode in Excel

  1. Barcode generation in Excel streamlines data entry processes. This helps reduce manual errors and enhances accuracy.
Example: A grocery store manager can quickly generate barcodes for products and scan them to update inventory in real-time.
  1. Barcode scanning is faster than typing. It saves time during inventory management or tracking processes.
Example: A warehouse worker can scan barcodes on packages to quickly update their location, which saves time and energy.
  1. Barcodes minimize the risk of human error, as scanning them reduces the chances of entering incorrect information.
Example: A cashier can scan a barcode on a product to ensure that the correct item is being charged, reducing the likelihood of errors.

Things to Remember

  1. To generate barcodes in Excel, download and install barcode fonts from reliable web sources such as “dafont” or “automation”.
  2. After installing the font style, close and reopen the Excel sheet.
  3. The simple “Barcode” font encodes alphanumeric (Uppercase A-Z) & (0-9) and a few special characters.
  4. The “Code 39” font encodes alphanumerics (no lowercase) and seven special characters.
  5. “Code 138” font encodes the ASCII character set: Uppercase letters (A-Z), Lowercase letters (a-z), Numbers (0-9), Punctuation marks, and Special characters (e.g., @, #, $, %).
  6. You can set cells as text in Excel to stop Excel from changing your data into numbers or dates. For instance, if you input a product code such as “00123” or an alphanumeric code like “ABC123,” by formatting the cells as text, you make sure that Excel doesn’t see them as numbers and delete the leading zeros in “00123”.
  7. In barcodes, certain font types, such as Code 128, need start and stop characters. Let’s take an example: if your data is ABC123, you must encode it as (ABC123). The parentheses ( ) act as start and stop characters, helping the barcode scanner recognize the boundaries of the encoded information. Make sure to include them in your data or formula.
  8. Adjust the font size and height of the barcode cells to ensure readability.
  9. Avoid unnecessary formatting or styling within barcode cells.

Recommended Articles

We hope you liked our guide on creating a barcode in Excel! This guide discussed downloading and installing barcode fonts for creating products’ barcodes in Excel, such as simple barcode fonts, code 39, and code 128. We also showed you how to add a barcode in Excel using a formula. If you found this guide helpful, you can also explore some of the other useful articles:

  1. Advanced Excel Formulas and Functions
  2. How to Create Marksheet in Excel?
  3. How to Create and Insert Calendar in Excel?
  4. How to Use Excel Grade Formula?

Primary Sidebar

Footer

Follow us!
  • EDUCBA FacebookEDUCBA TwitterEDUCBA LinkedINEDUCBA Instagram
  • EDUCBA YoutubeEDUCBA CourseraEDUCBA Udemy
APPS
EDUCBA Android AppEDUCBA iOS App
Blog
  • Blog
  • Free Tutorials
  • About us
  • Contact us
  • Log in
Courses
  • Enterprise Solutions
  • Free Courses
  • Explore Programs
  • All Courses
  • All in One Bundles
  • Sign up
Email
  • [email protected]

ISO 10004:2018 & ISO 9001:2015 Certified

© 2025 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

EDUCBA

Download Barcode in Excel Template

EDUCBA Login

Forgot Password?

EDUCBA

Download Barcode in Excel Template

EDUCBA

डाउनलोड Barcode in Excel Template

🚀 Limited Time Offer! - ENROLL NOW