A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

convert data into barcode



 
 
Thread Tools Display Modes
  #1  
Old May 18th, 2009, 09:01 AM posted to microsoft.public.excel.misc
BAKERSMAN
external usenet poster
 
Posts: 36
Default convert data into barcode

I am trying to convert data from specific cells into a barcode. I have the
correct barcode font loaded but cannot seem to get a couple of the cells to
give me the correct data. For instance, one of the cells is a date. When I
try to add this cell to the formula, instead of the date I see 239918. I also
have a cell that has to be 2 characters. When I try to add this cell to the
formula, it will only return 1 character unless the number is a bove 9. I
have the cell formatted where it shows to characters (ex. 02) but always
returns only one character(ex. 2). Here is the formula I am using.

="*"&F7&R7&B15&R23&R15&"*"

B15 is the cell that should be two characters and R23 is the cell that is
the date.


  #2  
Old May 18th, 2009, 09:21 AM posted to microsoft.public.excel.misc
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default convert data into barcode

Use the TEXT function to format the values. Change the date format to suit
your requirement

="*"&F7&R7&TEXT(B15,"00")&TEXT(R23,"mm-dd-yyyy")&R15&"*"

--
If this post helps click Yes
---------------
Jacob Skaria


"BAKERSMAN" wrote:

I am trying to convert data from specific cells into a barcode. I have the
correct barcode font loaded but cannot seem to get a couple of the cells to
give me the correct data. For instance, one of the cells is a date. When I
try to add this cell to the formula, instead of the date I see 239918. I also
have a cell that has to be 2 characters. When I try to add this cell to the
formula, it will only return 1 character unless the number is a bove 9. I
have the cell formatted where it shows to characters (ex. 02) but always
returns only one character(ex. 2). Here is the formula I am using.

="*"&F7&R7&B15&R23&R15&"*"

B15 is the cell that should be two characters and R23 is the cell that is
the date.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:49 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.