Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default how do I insert a zero ie 01535-1A to 01535-01A

how do I insert a zero ie 01535-1A to 01535-01A
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default how do I insert a zero ie 01535-1A to 01535-01A

There are probably easier ways but you could use a concatenate formula e.g.
if the "01535-1A is in cell A1 then use:
=CONCATENATE(LEFT(A1,6),0,RIGHT(A1,2))

"Mike" wrote:

how do I insert a zero ie 01535-1A to 01535-01A

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default how do I insert a zero ie 01535-1A to 01535-01A

The simplest way would be to use the SUBSTITUTE function:

if your code is in cell D5 - "=SUBSTITUTE(D5,"-","-0")"

This is however quite simplistic, and will introduce a 0 even if there was
already one after the hyphen.

Please let me know if you want something more complex.

Markus

"Mike" wrote:

how do I insert a zero ie 01535-1A to 01535-01A

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 36
Default how do I insert a zero ie 01535-1A to 01535-01A

Click on the cell that contains 01535-1A, hit F2 (this will let you edit
inside the cell) and type in the 0.

"Mike" wrote:

how do I insert a zero ie 01535-1A to 01535-01A

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 169
Default how do I insert a zero ie 01535-1A to 01535-01A

In article , ?B?TWFya3VzIEZpc2NoZXI=?= wrote:
The simplest way would be to use the SUBSTITUTE function:

if your code is in cell D5 - "=SUBSTITUTE(D5,"-","-0")"

This is however quite simplistic, and will introduce a 0 even if there was
already one after the hyphen.

Please let me know if you want something more complex.


The various answers are fascinating ... and mine would be different again.
*Assuming* that the only place in your data that you have a - is where you
want the 0 inserted, select the data to work on and find '-' and replace
with '-0'. :)


"Mike" wrote:

how do I insert a zero ie 01535-1A to 01535-01A

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
Cannot insert worksheet in exel - not available in insert menu pedro39 Excel Worksheet Functions 1 July 24th 08 12:09 PM
insert row / insert column command buttons fairgreen Excel Worksheet Functions 1 October 29th 07 02:41 PM
How can I insert a date with an icon (calendar) insert Alfredo Mederico[_2_] Excel Discussion (Misc queries) 4 September 21st 07 01:20 AM
Can I auto insert a worksheet when I insert a value in a cell. iainc Excel Worksheet Functions 0 April 27th 06 08:37 AM
Insert Next? Or insert a variable number of records...how? Tom MacKay Excel Discussion (Misc queries) 0 April 20th 06 10:44 PM


All times are GMT +1. The time now is 09:44 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"