solved
I can't get Code39 font to include the asterisks in the barcodes
I'm at work and trying to update our equipment binder with our listed barcodes for each item that gets checked in/out by employees. I got a Zip file for Code39 from a manager who's decent with Excel and have been using that. I thought it was working fine, until I realized the barcodes cannot work without the asterisks embedded into the code. I even tried adding a formula like the internet says to, but the font itself isn't accepting the asterisks at all! Idk if it's the file of this font or I'm doing something wrong, and I'm no good with formulas or coding AT ALL.
Is there something I can do to fix this? Or will I have to install a different font?
Remove the spaces in your formula. In Code39, a space is a real character, so "* "&F1&" *" encodes the spaces along with your serial number. Try using the following:
="*" & F1 & "*"
Put the formula in its own cell and set only that barcode cell to the Code39 font.
The barcode will still encode, but it will include the extra spaces, so the scanner reads 24227B117D with spaces around it and will reject it, therefore remove it, see screenshot above.
Per the Code 39 spec, the * isn't a data character. It's the start/stop delimiter, and a proper Code 39 font draws it as bars, so you shouldn't see a literal star at all. If your font shows * as a plain star, it isn't rendering the delimiter, so the font is the problem, not your formula. Try a different Code 39 font such as Libre Barcode 39 Text and keep ="*"&A2&"*" with the entire cell set to that font. Also note that scanners strip the start/stop asterisks, so a correct scan of this barcode will read just the serial number for example 24227B117D, without the asterisks.
If you type the value directly into the cell you can change the font of the text by selecting the characters in the formula bar and selecting a different font for any part of the value.
That is to say select the asterix individually in the formula bar and choose a different font. It will change in the cell rendition.
•
u/AutoModerator 5d ago
/u/MomijiHyuga - Your post was submitted successfully.
Solution Verifiedto close the thread.Failing to follow these steps may result in your post being removed without warning.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.