Barcodes in Excel (formula to create correct string)

edjohn20

New Member
Joined
Mar 5, 2024
Messages
34
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
@HappyChappy and @Rijnsent did some work on this several years back. I found the old thread but the file have since been removed.

Hi having great problems with bar codes currently using a web based site to generate barcodes (that work just fine) then cutting and pasting them into excel as a picture. The site uses Code 128 for the fonts.

However, I downloaded the code 128 font and thought it would be better to do it that way so I can produce the codes faster, but the codes are different from my down loaded picture. I make a barcode of 123456 but it won't scan. I have a feeling it has to do with the check digits but I don't know where to go from here.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
BarCodeV2.0.xlsm
ABCDEFGHIJ
1Order Processing
2Route/Drop
3
4Date:Awaiting Rebook:
5
6Order No:Awaiting Cancellation:
7
8Customer Name:Rebooked:
9
10Postcode:Cancelled:
11
12Qty of Items:Instant Return:
13
14Qty of SLEDGES:
15
16Processed By:
17
18Re Book Date if required:
19
201st Attempt to rebook DeliveryAttempted By:
21
222nd Attempt to rebook DeliveryAttempted By:
23
243rd Attempt to rebook DeliveryAttempted By:
25
26Comments:
27973467890Ì973467890JÎ
28
Barcode
Cell Formulas
RangeFormula
B27B27=BarCodeInfo!J4
this should sort things out
 
Upvote 0
BarCodeV2.0.xlsm
ABCDEFGHIJ
1Order Processing
2Route/Drop
3
4Date:Awaiting Rebook:
5
6Order No:Awaiting Cancellation:
7
8Customer Name:Rebooked:
9
10Postcode:Cancelled:
11
12Qty of Items:Instant Return:
13
14Qty of SLEDGES:
15
16Processed By:
17
18Re Book Date if required:
19
201st Attempt to rebook DeliveryAttempted By:
21
222nd Attempt to rebook DeliveryAttempted By:
23
243rd Attempt to rebook DeliveryAttempted By:
25
26Comments:
27973467890Ì973467890JÎ
28
Barcode
Cell Formulas
RangeFormula
B27B27=BarCodeInfo!J4
this should sort things out
I am not sure I fully understand. Is there a way to download this sheet so I can view formlas?
 
Upvote 0
BarCodeV2.0.xlsm
ABCDEFGHIJ
1Get font from: BarCodeTest
2Code 128 - comments | dafont.comInput test975789881
3Test resultÌ975789881sÎ
4Barcode 128 Cipher - 128a 128b 128c - Online Decoder, EncoderBar Code (font required!)Ì975789881sÎ
5idbands128A128B128CASCII
60212222spacespace032
71222122!!133!
82222221""234"
93121223##335#
104121322$$436$
115131222%%537%
126122213&&638&
137122312''739'
148132212((840(
159221213))941)
1610221312**1042*
1711231212++1143+
1812112232,,1244,
1913122132--1345-
2014122231..1446.
2115113222//1547/
22161231220016480
23171232211117491
24182232112218502
25192211323319513
26202212314420524
27212132125521535
28222231126622546
29233121317723557
30243112228824568
31253211229925579
3226321221::2658:
3327312212;;2759;
3428322112<<2860<
3529322211==2961=
3630212123>>3062>
3731212321??3163?
3832232121@@3264@
3933111323AA3365A
4034131123BB3466B
4135131321CC3567C
4236112313DD3668D
4337132113EE3769E
4438132311FF3870F
4539211313GG3971G
4640231113HH4072H
4741231311II4173I
4842112133JJ4274J
4943112331KK4375K
5044132131LL4476L
5145113123MM4577M
5246113321NN4678N
5347133121OO4779O
5448313121PP4880P
5549211331QQ4981Q
5650231131RR5082R
5751213113SS5183S
5852213311TT5284T
5953213131UU5385U
6054311123VV5486V
6155311321WW5587W
6256331121XX5688X
6357312113YY5789Y
6458312311ZZ5890Z
6559332111[[5991[
6660314111\\6092\
6761221411]]6193]
6862431111^^6294^
6963111224__6395_
7064111422NUL`6496`
7165121124SOHa6597a
7266121421STXb6698b
7367141122ETXc6799c
7468141221EOTd68100d
7569112214ENQe69101e
7670112412ACKf70102f
7771122114BELg71103g
7872122411BSh72104h
7973142112HTi73105i
8074142211LFj74106j
8175241211VTk75107k
8276221114FFl76108l
8377413111CRm77109m
8478241112SOn78110n
8579134111SIo79111o
8680111242DLEp80112p
8781121142DC1q81113q
8882121241DC2r82114r
8983114212DC3s83115s
9084124112DC4t84116t
9185124211NAKu85117u
9286411212SYNv86118v
9387421112ETBw87119w
9488421211CANx88120x
9589212141EMy89121y
9690214121SUBz90122z
9791412121ESC{91123{
9892111143FS|92124|
9993111341GS}93125}
10094131141RS~94126~
10195114113USDEL95195Ã
10296114311FNC3FNC396196Ä
10397411113FNC2FNC297197Å
10498411311ShiftBShiftA98198Æ
10599113141CodeCCodeC99199Ç
106100114131CodeBFNC4CodeB200È
107101311141FNC4CodeACodeA201É
108102411131FNC1FNC1FNC1202Ê
109103211412Start AStart AStart A203Ë
110104211214Start BStart BStart B204Ì
111105211232Start CStart CStart C205Í
1121062331112StopStopStop206Î
BarCodeInfo
Cell Formulas
RangeFormula
J2J2=Barcode!$A$27
J3J3=CreateBarcode128B(J2)
J4J4=J3
G7:G100,G102:G112G7=G6+1
H6:H112H6=CHAR(G6)


Try this
 
Upvote 0
What is the reference in j2? it looks like a second spreadsheet
 
Upvote 0
BarCodeV2.0.xlsm
ABCDEFGHIJ
1Get font from: BarCodeTest
2Code 128 - comments | dafont.comInput test975789881
3Test resultÌ975789881sÎ
4Barcode 128 Cipher - 128a 128b 128c - Online Decoder, EncoderBar Code (font required!)Ì975789881sÎ
5idbands128A128B128CASCII
60212222spacespace032
71222122!!133!
82222221""234"
93121223##335#
104121322$$436$
115131222%%537%
126122213&&638&
137122312''739'
148132212((840(
159221213))941)
1610221312**1042*
1711231212++1143+
1812112232,,1244,
1913122132--1345-
2014122231..1446.
2115113222//1547/
22161231220016480
23171232211117491
24182232112218502
25192211323319513
26202212314420524
27212132125521535
28222231126622546
29233121317723557
30243112228824568
31253211229925579
3226321221::2658:
3327312212;;2759;
3428322112<<2860<
3529322211==2961=
3630212123>>3062>
3731212321??3163?
3832232121@@3264@
3933111323AA3365A
4034131123BB3466B
4135131321CC3567C
4236112313DD3668D
4337132113EE3769E
4438132311FF3870F
4539211313GG3971G
4640231113HH4072H
4741231311II4173I
4842112133JJ4274J
4943112331KK4375K
5044132131LL4476L
5145113123MM4577M
5246113321NN4678N
5347133121OO4779O
5448313121PP4880P
5549211331QQ4981Q
5650231131RR5082R
5751213113SS5183S
5852213311TT5284T
5953213131UU5385U
6054311123VV5486V
6155311321WW5587W
6256331121XX5688X
6357312113YY5789Y
6458312311ZZ5890Z
6559332111[[5991[
6660314111\\6092\
6761221411]]6193]
6862431111^^6294^
6963111224__6395_
7064111422NUL`6496`
7165121124SOHa6597a
7266121421STXb6698b
7367141122ETXc6799c
7468141221EOTd68100d
7569112214ENQe69101e
7670112412ACKf70102f
7771122114BELg71103g
7872122411BSh72104h
7973142112HTi73105i
8074142211LFj74106j
8175241211VTk75107k
8276221114FFl76108l
8377413111CRm77109m
8478241112SOn78110n
8579134111SIo79111o
8680111242DLEp80112p
8781121142DC1q81113q
8882121241DC2r82114r
8983114212DC3s83115s
9084124112DC4t84116t
9185124211NAKu85117u
9286411212SYNv86118v
9387421112ETBw87119w
9488421211CANx88120x
9589212141EMy89121y
9690214121SUBz90122z
9791412121ESC{91123{
9892111143FS|92124|
9993111341GS}93125}
10094131141RS~94126~
10195114113USDEL95195Ã
10296114311FNC3FNC396196Ä
10397411113FNC2FNC297197Å
10498411311ShiftBShiftA98198Æ
10599113141CodeCCodeC99199Ç
106100114131CodeBFNC4CodeB200È
107101311141FNC4CodeACodeA201É
108102411131FNC1FNC1FNC1202Ê
109103211412Start AStart AStart A203Ë
110104211214Start BStart BStart B204Ì
111105211232Start CStart CStart C205Í
1121062331112StopStopStop206Î
BarCodeInfo
Cell Formulas
RangeFormula
J2J2=Barcode!$A$27
J3J3=CreateBarcode128B(J2)
J4J4=J3
G7:G100,G102:G112G7=G6+1
H6:H112H6=CHAR(G6)


Try this
never mind, i see what is going on with the first and second sheet
 
Upvote 0
BarCodeV2.0.xlsm
ABCDEFGHIJ
1Get font from: BarCodeTest
2Code 128 - comments | dafont.comInput test975789881
3Test resultÌ975789881sÎ
4Barcode 128 Cipher - 128a 128b 128c - Online Decoder, EncoderBar Code (font required!)Ì975789881sÎ
5idbands128A128B128CASCII
60212222spacespace032
71222122!!133!
82222221""234"
93121223##335#
104121322$$436$
115131222%%537%
126122213&&638&
137122312''739'
148132212((840(
159221213))941)
1610221312**1042*
1711231212++1143+
1812112232,,1244,
1913122132--1345-
2014122231..1446.
2115113222//1547/
22161231220016480
23171232211117491
24182232112218502
25192211323319513
26202212314420524
27212132125521535
28222231126622546
29233121317723557
30243112228824568
31253211229925579
3226321221::2658:
3327312212;;2759;
3428322112<<2860<
3529322211==2961=
3630212123>>3062>
3731212321??3163?
3832232121@@3264@
3933111323AA3365A
4034131123BB3466B
4135131321CC3567C
4236112313DD3668D
4337132113EE3769E
4438132311FF3870F
4539211313GG3971G
4640231113HH4072H
4741231311II4173I
4842112133JJ4274J
4943112331KK4375K
5044132131LL4476L
5145113123MM4577M
5246113321NN4678N
5347133121OO4779O
5448313121PP4880P
5549211331QQ4981Q
5650231131RR5082R
5751213113SS5183S
5852213311TT5284T
5953213131UU5385U
6054311123VV5486V
6155311321WW5587W
6256331121XX5688X
6357312113YY5789Y
6458312311ZZ5890Z
6559332111[[5991[
6660314111\\6092\
6761221411]]6193]
6862431111^^6294^
6963111224__6395_
7064111422NUL`6496`
7165121124SOHa6597a
7266121421STXb6698b
7367141122ETXc6799c
7468141221EOTd68100d
7569112214ENQe69101e
7670112412ACKf70102f
7771122114BELg71103g
7872122411BSh72104h
7973142112HTi73105i
8074142211LFj74106j
8175241211VTk75107k
8276221114FFl76108l
8377413111CRm77109m
8478241112SOn78110n
8579134111SIo79111o
8680111242DLEp80112p
8781121142DC1q81113q
8882121241DC2r82114r
8983114212DC3s83115s
9084124112DC4t84116t
9185124211NAKu85117u
9286411212SYNv86118v
9387421112ETBw87119w
9488421211CANx88120x
9589212141EMy89121y
9690214121SUBz90122z
9791412121ESC{91123{
9892111143FS|92124|
9993111341GS}93125}
10094131141RS~94126~
10195114113USDEL95195Ã
10296114311FNC3FNC396196Ä
10397411113FNC2FNC297197Å
10498411311ShiftBShiftA98198Æ
10599113141CodeCCodeC99199Ç
106100114131CodeBFNC4CodeB200È
107101311141FNC4CodeACodeA201É
108102411131FNC1FNC1FNC1202Ê
109103211412Start AStart AStart A203Ë
110104211214Start BStart BStart B204Ì
111105211232Start CStart CStart C205Í
1121062331112StopStopStop206Î
BarCodeInfo
Cell Formulas
RangeFormula
J2J2=Barcode!$A$27
J3J3=CreateBarcode128B(J2)
J4J4=J3
G7:G100,G102:G112G7=G6+1
H6:H112H6=CHAR(G6)


Try this
is this =CreateBarcode128B(J2) a stored procedure somewhere or a script? I don't see the formula or code for it
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,151
Members
453,021
Latest member
Justyna P

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