#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,069
Default How to fill in zero.

anyone know how to fill in 0 between N and the #.(Formula or Macro)
N001-----------N00001
N002-----------N00002
N003-----------N00003
N004-----------N00004
N005-----------N00005
N006-----------N00006
N007-----------N00007
N008-----------N00008
N009-----------N00009
N0010----------N00010
N0011----------N00011
N0012----------N00012
N00125---------N00125
N00126---------N00126

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default How to fill in zero.

If all data will start with N:
="N"&REPT("0",6-LEN(A1))&RIGHT(A1,LEN(A1)-1)

If the start letter is variable:
=LEFT((A1),1)&REPT("0",6-LEN(A1))&RIGHT(A1,LEN(A1)-1)

"John" wrote in message
...
anyone know how to fill in 0 between N and the #.(Formula or Macro)
N001-----------N00001
N002-----------N00002
N003-----------N00003
N004-----------N00004
N005-----------N00005
N006-----------N00006
N007-----------N00007
N008-----------N00008
N009-----------N00009
N0010----------N00010
N0011----------N00011
N0012----------N00012
N00125---------N00125
N00126---------N00126



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default How to fill in zero.

hi
this will work for you but not in all of your examples. in some you are
adding 2 zeros and others, 1 zero and in others, no zeros. so you will have
to adjust the following to accommodate the variances.
=LEFT(K5,2)&"00"&RIGHT(K5,1)
the above adds 2 zeros and pick 1 number from the end ie
N009-----N00009

regards
FSt1

"John" wrote:

anyone know how to fill in 0 between N and the #.(Formula or Macro)
N001-----------N00001
N002-----------N00002
N003-----------N00003
N004-----------N00004
N005-----------N00005
N006-----------N00006
N007-----------N00007
N008-----------N00008
N009-----------N00009
N0010----------N00010
N0011----------N00011
N0012----------N00012
N00125---------N00125
N00126---------N00126

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default How to fill in zero.

One mo
=LEFT(A1)&TEXT(MID(A1,2,5),"00000")


John wrote:

anyone know how to fill in 0 between N and the #.(Formula or Macro)
N001-----------N00001
N002-----------N00002
N003-----------N00003
N004-----------N00004
N005-----------N00005
N006-----------N00006
N007-----------N00007
N008-----------N00008
N009-----------N00009
N0010----------N00010
N0011----------N00011
N0012----------N00012
N00125---------N00125
N00126---------N00126


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,069
Default How to fill in zero.

Hi
I had copy and paste this ="N"&REPT("0",6-LEN(A1))&RIGHT(A1,LEN(A1)-1) at
N001, it change to a 0 only. can you tell how to use this formula.


"John" wrote:

anyone know how to fill in 0 between N and the #.(Formula or Macro)
N001-----------N00001
N002-----------N00002
N003-----------N00003
N004-----------N00004
N005-----------N00005
N006-----------N00006
N007-----------N00007
N008-----------N00008
N009-----------N00009
N0010----------N00010
N0011----------N00011
N0012----------N00012
N00125---------N00125
N00126---------N00126



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default How to fill in zero.

The formula assumes that N001 is in cell A1. If it is in a different cell,
change both references from A1 to that cell.

"John" wrote in message
...
Hi
I had copy and paste this ="N"&REPT("0",6-LEN(A1))&RIGHT(A1,LEN(A1)-1) at
N001, it change to a 0 only. can you tell how to use this formula.


"John" wrote:

anyone know how to fill in 0 between N and the #.(Formula or Macro)
N001-----------N00001
N002-----------N00002
N003-----------N00003
N004-----------N00004
N005-----------N00005
N006-----------N00006
N007-----------N00007
N008-----------N00008
N009-----------N00009
N0010----------N00010
N0011----------N00011
N0012----------N00012
N00125---------N00125
N00126---------N00126



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,069
Default How to fill in zero.

guys
thank's for the help, I got it work now.

"John" wrote:

Hi
I had copy and paste this ="N"&REPT("0",6-LEN(A1))&RIGHT(A1,LEN(A1)-1) at
N001, it change to a 0 only. can you tell how to use this formula.


"John" wrote:

anyone know how to fill in 0 between N and the #.(Formula or Macro)
N001-----------N00001
N002-----------N00002
N003-----------N00003
N004-----------N00004
N005-----------N00005
N006-----------N00006
N007-----------N00007
N008-----------N00008
N009-----------N00009
N0010----------N00010
N0011----------N00011
N0012----------N00012
N00125---------N00125
N00126---------N00126

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
Erase fill print then bring fill back Homer Excel Discussion (Misc queries) 5 September 26th 07 01:50 PM
Fill in form to type Item descrictions and costs and fill in funct cradino Excel Worksheet Functions 0 July 16th 06 08:44 PM
Edit Fill Series - How do I fill using minute increments IUnknown Excel Discussion (Misc queries) 1 January 29th 06 12:50 PM
I have a list of data, fill in the gaps. FILL function won't work Triv Excel Discussion (Misc queries) 1 September 17th 05 02:33 PM
The fill feature in Excel that gives option to fill or copy KAHelman New Users to Excel 1 July 29th 05 07:47 PM


All times are GMT +1. The time now is 08:16 AM.

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

About Us

"It's about Microsoft Excel"