#1   Report Post  
Posted to microsoft.public.excel.misc
Johno313
 
Posts: n/a
Default cell prefix


hi all,
im trying to prefix the contents of a cell with a zero.
e.g. original cell = 12345 -- target cell should read 012345.
im totaly stuck - and a total begginer, so any help would be greatly
appreciated.

thanks!!


--
Johno313
------------------------------------------------------------------------
Johno313's Profile: http://www.excelforum.com/member.php...o&userid=35587
View this thread: http://www.excelforum.com/showthread...hreadid=553530

  #2   Report Post  
Posted to microsoft.public.excel.misc
Mallycat
 
Posts: n/a
Default cell prefix


The problem you are having is that there is no such thing as the number
01234. If this is a product code or something similar, then you are
best to format the cell as text. When you tell Excel that numbers are
actually text, it will display as above (but you can't perform
calculations).

Use Format\Cells\Text

Matt


--
Mallycat
------------------------------------------------------------------------
Mallycat's Profile: http://www.excelforum.com/member.php...o&userid=35514
View this thread: http://www.excelforum.com/showthread...hreadid=553530

  #3   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default cell prefix

Select the cells and then pull-down:

Format Cells Number Custom and enter "0"General

This should always get you that leading zero
--
Gary's Student


"Johno313" wrote:


hi all,
im trying to prefix the contents of a cell with a zero.
e.g. original cell = 12345 -- target cell should read 012345.
im totaly stuck - and a total begginer, so any help would be greatly
appreciated.

thanks!!


--
Johno313
------------------------------------------------------------------------
Johno313's Profile: http://www.excelforum.com/member.php...o&userid=35587
View this thread: http://www.excelforum.com/showthread...hreadid=553530


  #4   Report Post  
Posted to microsoft.public.excel.misc
Johno313
 
Posts: n/a
Default cell prefix


sussed it, i needed to format as custom and input 5 "0's" in to the type
box. this defaults the cell to 5 characters, anything shorter i.e. 4
becomes preceeded with 0.

thanks anyway.


--
Johno313
------------------------------------------------------------------------
Johno313's Profile: http://www.excelforum.com/member.php...o&userid=35587
View this thread: http://www.excelforum.com/showthread...hreadid=553530

  #5   Report Post  
Posted to microsoft.public.excel.misc
Mallycat
 
Posts: n/a
Default cell prefix


Not really. It displays as if there is a 0 there, but it isn't actually
there. You wont have any problems if you are just trying to print data,
read the page etc. But if you try to reference the cell and are looking
for 01234 then you will have problems.

Matt


--
Mallycat
------------------------------------------------------------------------
Mallycat's Profile: http://www.excelforum.com/member.php...o&userid=35514
View this thread: http://www.excelforum.com/showthread...hreadid=553530

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
Compiling macro based on cell values simonsmith Excel Discussion (Misc queries) 1 May 16th 06 08:31 PM
Help with this conditional IF statement C-Dawg Excel Discussion (Misc queries) 3 May 15th 06 06:01 PM
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
copying cell names Al Excel Discussion (Misc queries) 12 August 11th 05 03:01 PM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM


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