Barcoding in Microsoft Excel

Generating barcodes in Microsoft Excel is an easy task with IDAutomation products.

Close-up of an iMac showing Code 128 barcodes next to their data in Excel

Generating barcodes in Microsoft Excel is an easy task with IDAutomation products. IDAutomation offers the Native Barcode Generator for Excel as the recommended product because it does not require the installation of additional components.

Native Barcode Generator for Excel (Featured Product)

The Native Barcode Generator for Microsoft Excel provides barcoding capability to Microsoft Excel Spreadsheets with an embedded VBA macro making it easy to share sheets without needing to distribute additional fonts or other components.

BARCODE SYMBOLOGIES

Code 39, Code 128, PDF417, Data Matrix, QR Code, GS1-128, Interleaved 2 of 5, Codabar, Postnet, and USPS Intelligent Mail IMb.

CROSS-PLATFORM COMPATIBLE

Compatible for both Microsoft Windows and Mac OSX, 32 and 64 bit systems, for Microsoft Excel versions with VBA Macro support.

EASY TO DISTRIBUTE

This is a complete barcode generator that stays with the spreadsheet, even when distributed.

Using Code 39 Barcode Fonts in Excel

Self-checking barcode fonts such as Code 39 Fonts may be easily used in Excel. This implementation is cross-platform compatible with both Mac and Windows. To generate barcodes with fonts other than self-checking versions such as Code 128 or QR Code, refer to the Linear 1D Barcode Font Encoder for Excel or the 2D Barcode Font Encoder for Excel.

All self-checking barcode fonts require a start and stop character. IDAutomation’s Code-39 fonts can be easily generated in Excel by (1) using a formula to append the asterisks to the beginning and ending of the field and (2) selecting the font for the field. The example below creates the text for a Code 39 barcode in cell B2 from the data in cell A2.

Excel cell B2 containing a formula that adds asterisks around the data in cell A2 for a Code 39 barcode

Combining Multiple Fields into a Single Barcode

Tabs and returns can be added with Code 39 fonts (in extended-39 mode) between fields by inserting “$I” for a tab and “$M” for a return. For example, this formula encodes a tab between cells C3 and D3: =(“!”&C3&”$I”&D3&”!”)

Excel formula that combines two cells and a tab character into one Code 39 barcode

Creating Barcodes in an Entire Column in a Spreadsheet

If a large column of data needs to be barcoded, where copying and pasting the barcode font formula into each cell would be cumbersome, then creating barcodes in an entire column would be essential. In this example, Code 3 of 9 barcodes are created in the Excel using the IDAutomation Code 39 Font.

1. The barcodes in column B will be created from the data in column A. This assumes the IDAutomation Code-39 Font is installed. Enter the formula in one cell. In this example. the formula  =”*”&A2&”*” is entered in cell B2 to append the required asterisks to data from cell A1:

Excel cell B2 containing a formula that adds asterisks around the data in cell A2 for a Code 39 barcode

2. Select that cell and choose Edit – Copy. After that, highlight the entire column by selecting the gray square labeled “B” at the top of the spreadsheet and choose Edit – Paste. The formulas may take a little time to re-calculate.

Excel column B selected to paste the Code 39 formula into every row

3. Change the data in the column to the Code 39 barcode font. With the entire column that contains the formula highlighted, choose the IDAutomationHC39XS font. The barcodes will appear in the entire column.

Excel font list with the IDAutomationHC39XS Code 39 font selected for column B

4. With the entire column that contains the formula still highlighted, choose the appropriate point size. 12 points is generally compatible with all barcode scanners. With the entire column that contains the formula still highlighted, choose the center text option so the barcode is in the center of the field. Then, make the column wide enough so there is some white space between the beginning and ending of the barcode.

Excel column of finished Code 39 barcodes centered in the cells

VIDEO TUTORIALS

“How to” videos to Create Barcodes in Excel

Create Barcodes in Excel 2013 Create Barcodes on Mac in Excel Create Code 39 Barcodes in Excel Create DataBar Barcodes