Barcodes in Excel

rodl66

New Member
Joined
Mar 8, 2023
Messages
26
Office Version
  1. 365
Platform
  1. Windows
My spreadsheet has an employee ID in column A and their name in column B, I want to auto-generate a barcode in column C that includes data in each respective cell in A&B. I have the code 128 font installed and am using the following formula that is only pulling data from column A. I understand it is because I am not including column B, that is because I am not sure how to format it. I also want the cells in column C to be empty until data is in A & B.

Column C2 I have =IF(A2="","",IF(D2="","&A2&"))

Thank you in advance for assistance.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Sounds like you need something like this:

Excel Formula:
=IF(OR(A2="", B2=""), "", A2&B2)
 
Upvote 0
Sounds like you need something like this:

Excel Formula:
=IF(OR(A2="", B2=""), "", A2&B2)
Thank you for the suggestion. I found out that if I force the barcode field to be blank, it removes the mandatory parts of the barcode that allows it to be read. I changed the font to the Code 39 and the formula to ="("&A2&"_"&B2&")" It's not exactly what I wanted, but will suffice. Thanks again!
 
Upvote 0

Forum statistics

Threads
1,215,457
Messages
6,124,941
Members
449,197
Latest member
k_bs

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top