Conerting length to 13 digit

Hiten Vakharia

Board Regular
Joined
Sep 25, 2013
Messages
66
Hi
I have different length of barcodes on my file, i want to convert all into 13 digits. How can i do this

Thanks in advance
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Do you have the numeric value of the barcodes and with what character did you want to fill it to 13 digits? At the front at the end? A little more information would be helpful.
 
Upvote 0
If it's just for appearance format the cell as 0000000000000

or

=RIGHT("000000000000"&A1,13)
 
Upvote 0
Just to tack on my two cents, I think context is needed. Are you talking about reading data, storing data, sending data? Are the bar codes stored in a table? Are they actually numbers or really text? What is the data type you are using when working with data?

In general, numbers are numbers. It doesn't matter what they look like (if you want to "see" the number a certain way you just set the formatting for the table, query, or report - they can format the number any way you like. You can also format the numbers for clients as needed. If you are the client, I'd want to be able to take the numbers with or without 000's in front.
 
Upvote 0

Forum statistics

Threads
1,215,001
Messages
6,122,648
Members
449,092
Latest member
peppernaut

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