Print Barcode Label Using MS Office 365 |
Part 2: Installing Barcode Fonts and Creating Barcode Data in Excel (Highly Detailed Step-by-Step Guide) |
1. Introduction to Practical Implementation |
1.1 Transition from Theory to Practice |
In Part 1, we covered the conceptual foundation of barcode technology and how Microsoft Office 365 can be used to generate barcode labels. In this part, we move into the practical stage, focusing on: |
1. Installing barcode fonts |
2. Understanding how fonts generate barcodes |
3. Preparing structured data in Excel |
4. Encoding barcode values correctly |
5. Testing barcode output |
This stage is critical because most errors in barcode systems originate from improper encoding or incorrect font usage. |

|
2. Understanding Barcode Fonts in Depth |
2.1 What Is a Barcode Font |
A barcode font is a specialized typeface that converts standard alphanumeric characters into barcode patterns. Instead of displaying letters or numbers in a readable format, the font renders them as bars and spaces. |
For example: |
* Input text: `ABC123` |
* Output (with barcode font): a scannable barcode |
2.2 How Barcode Fonts Work Internally |
Barcode fonts rely on character substitution: |
1. Each character maps to a specific bar pattern |
2. Special characters define start/stop sequences |
3. Some symbologies require check digits |
This means that simply typing text is not always sufficient—you often need to encode it properly before applying the font. |
2.3 Popular Barcode Fonts |
Common barcode fonts include: |
1. Code 39 fonts (widely used and simple) |
2. Code 128 fonts (more compact and efficient) |
3. EAN/UPC fonts (used in retail) |
For beginners, Code 39 is recommended because: |
1. It does not require complex encoding |
2. It supports uppercase letters and numbers |
3. It is easy to implement in Excel and Word |

|
3. Installing Barcode Fonts on Your System |
3.1 Downloading Barcode Fonts |
You can obtain barcode fonts from: |
1. Free font websites |
2. Commercial barcode font providers |
3. Corporate IT repositories |
When choosing a font, ensure: |
1. It matches your barcode type (e.g., Code 39) |
2. It includes documentation |
3. It is compatible with your operating system |
3.2 Installation on Windows |
Follow these steps: |
1. Download the font file (usually `.ttf` or `.otf`) |
2. Right-click the file |
3. Select “Installor “Install for all users4. Wait for installation confirmation |
Alternative method: |
1. Open Control Panel |
2. Navigate to Fonts |
3. Drag and drop the font file |
3.3 Installation on macOS |
Steps include: |
1. Double-click the font file |
2. Click “Install Fontin Font Book |
3. Verify installation |
3.4 Verifying Font Installation |
To confirm installation: |
1. Open Microsoft Excel |
2. Select any cell |
3. Open the font dropdown |
4. Look for the installed barcode font |
If the font appears, installation is successful. |

|
4. Preparing Excel for Barcode Data |
4.1 Structuring Your Worksheet |
A well-structured Excel sheet is essential. A typical layout includes: |
1. Column A: Product ID or Code |
2. Column B: Description |
3. Column C: Barcode Value |
4. Column D: Encoded Barcode |
This separation ensures clarity and prevents errors. |
4.2 Data Entry Best Practices |
When entering data: |
1. Avoid spaces unless required |
2. Use consistent formatting |
3. Avoid special characters unless supported |
4. Ensure uniqueness for each barcode |
4.3 Example Dataset |
Example entries: |
1. Item001 |
2. Item002 |
3. Item003 |
These values will later be converted into barcode format. |

|
5. Encoding Data for Code 39 Barcodes |
5.1 Understanding Code 39 Requirements |
Code 39 requires: |
1. Start character: `*` |
2. End character: `*` |
So the encoded value must be: |
`*DATA*` |
5.2 Creating Encoded Values in Excel |
Assume: |
* Original data in cell A2 |
Use this formula in cell D2: |
``` |
='*' & A2 & '*' |
``` |
This automatically adds start and stop characters. |
5.3 Applying the Barcode Font |
Steps: |
1. Select column D |
2. Change font to Code 39 |
3. Adjust font size (typically 248 pt) |
The text will now appear as a barcode. |
5.4 Verifying the Barcode |
Use a barcode scanner: |
1. Scan the printed or on-screen barcode |
2. Confirm it returns the original value |

|
6. Encoding Data for Code 128 Barcodes |
6.1 Why Code 128 Is More Complex |
Code 128: |
1. Supports full ASCII |
2. Is more compact |
3. Requires checksum calculation |
6.2 Encoding Methods |
Options include: |
1. Using Excel formulas (complex) |
2. Using barcode font encoder tools |
3. Using VBA scripts |
6.3 Using an Encoder Formula |
A simplified approach involves: |
1. Installing a Code 128 font package |
2. Using provided Excel formulas |
Example concept: |
* Input: `12345` |
* Output: Encoded string with checksum |
6.4 Using VBA for Encoding |
You can create a custom function: |
1. Press ALT + F11 |
2. Insert a module |
3. Add encoding logic |
This allows automation for large datasets. |

|
7. Creating QR Codes in Excel |
7.1 Limitations of Barcode Fonts for QR Codes |
QR codes cannot be generated using standard fonts because: |
1. They require matrix encoding |
2. They include error correction |
3. They use complex algorithms |
7.2 Methods to Generate QR Codes |
Options include: |
1. Online generators |
2. Excel add-ins |
3. APIs |
7.3 Using Excel Add-ins |
Steps: |
1. Install a QR code add-in |
2. Select data cells |
3. Generate QR codes automatically |

|
8. Formatting Barcodes in Excel |
8.1 Font Size and Scaling |
Recommended settings: |
1. Minimum size: 24 pt |
2. Optimal size: 368 pt |
Larger sizes improve scan reliability. |
8.2 Cell Alignment |
Best practices: |
1. Center alignment |
2. Adequate row height |
3. Sufficient column width |
8.3 Adding Human-Readable Text |
Include: |
1. Barcode (encoded) |
2. Original text below |
This helps in manual identification. |

|
9. Testing and Validation |
9.1 On-Screen Testing |
Use a scanner to test directly from the screen. |
9.2 Printed Testing |
Print a sample sheet and: |
1. Scan each barcode |
2. Verify accuracy |
3. Check alignment |
9.3 Common Issues |
Problems may include: |
1. Scanner not reading |
2. Incorrect output |
3. Blurry printing |
Solutions: |
1. Increase font size |
2. Check encoding |
3. Improve print quality |

|
10. Automating Barcode Generation in Excel |
10.1 Using AutoFill |
Drag formulas to apply encoding to multiple rows. |
10.2 Using Excel Tables |
Convert data into a table: |
1. Automatic expansion |
2. Consistent formulas |
10.3 Using Macros |
Macros can: |
1. Generate barcodes |
2. Format cells |
3. Export data |

|
11. Preparing Data for Mail Merge |
11.1 Cleaning Data |
Ensure: |
1. No empty rows |
2. No invalid characters |
3. Proper formatting |
11.2 Saving the File |
Save as: |
* Excel Workbook (.xlsx) |
This file will be used in Word. |

|
12. Summary of Part 2 |
In this part, we covered: |
1. Installing barcode fonts |
2. Structuring Excel data |
3. Encoding barcodes (Code 39 and Code 128) |
4. Formatting and testing |
5. Preparing data for printing |
You now have a fully functional Excel-based barcode dataset ready for label printing. |