Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
pdb pdb is offline
external usenet poster
 
Posts: 1
Default CONVERT NOs TO EAN 8 BY ADDING LEADING ZEROS

I need to convert a row of No's (eg 123) to ean 8 format (00000123)
Any ideas

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default CONVERT NOs TO EAN 8 BY ADDING LEADING ZEROS

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


"pdb" wrote:

I need to convert a row of No's (eg 123) to ean 8 format (00000123)
Any ideas

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default CONVERT NOs TO EAN 8 BY ADDING LEADING ZEROS

Use custom formatting for the cells

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

Paul


"pdb" wrote in message
...
I need to convert a row of No's (eg 123) to ean 8 format (00000123)
Any ideas



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default CONVERT NOs TO EAN 8 BY ADDING LEADING ZEROS

=TEXT(A1,"00000000")
--
David Biddulph

"pdb" wrote in message
...
I need to convert a row of No's (eg 123) to ean 8 format (00000123)
Any ideas



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 806
Default CONVERT NOs TO EAN 8 BY ADDING LEADING ZEROS

Hello,

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

Regards,
Bernd


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default CONVERT NOs TO EAN 8 BY ADDING LEADING ZEROS

Did you mean that, Bernd, or did you intend to say =RIGHT(REPT(0,8)&A1,8) ?
--
David Biddulph

Bernd P wrote:
Hello,

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

Regards,
Bernd



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 806
Default CONVERT NOs TO EAN 8 BY ADDING LEADING ZEROS

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)?
  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default CONVERT NOs TO EAN 8 BY ADDING LEADING ZEROS

Yes, it would.
--
David Biddulph

Bernd P wrote:
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)?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to convert numbers and delete leading zeros Lori Excel Discussion (Misc queries) 18 January 12th 08 12:45 AM
Leading zeros won't convert to csv file in Excel ver 6 SP2 Pedro Excel Discussion (Misc queries) 2 September 2nd 06 01:30 AM
save text field w/ leading zeros in .csv format & not lose zeros? Ques Excel Discussion (Misc queries) 1 May 4th 05 06:21 PM
Leading zeros JC Excel Discussion (Misc queries) 9 February 1st 05 02:33 PM
Adding Leading Zeros to Text Jenn Excel Discussion (Misc queries) 4 January 12th 05 06:51 PM


All times are GMT +1. The time now is 01:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"