CONVERT NOs TO EAN 8 BY ADDING LEADING ZEROS

  • Thread starter Thread starter pdb
  • Start date Start date
P

pdb

I need to convert a row of No's (eg 123) to ean 8 format (00000123)
Any ideas
 
hi
assuming the numbers are in column A..something like this might work....
in a blank column off to the left....
="00000" & A2
copy(drag) down as far as needed.
you can then copy the helper column and paste special value over the
original data.
or archive it just in case.

regards
FSt1
 
Use custom formatting for the cells

Fomat>Cell then choose Custom in the Category list and in the Type
textbox put 00000000 (8-zeros) then click OK.

Paul
 
Hello,

David's one would be my preferred one but here's just another example:
=RIGHT(REPT(" ",8)&A1,8)

Regards,
Bernd
 
Hi David,

Neither, I meant
=RIGHT(REPT("0",8)&A1,8)

But thanks, of course you saw that :-)

Regards,
Bernd

PS: Would it really work your way? REPT(0,8)?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top