ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   cell prefix (https://www.excelbanter.com/excel-discussion-misc-queries/94896-cell-prefix.html)

Johno313

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


Mallycat

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


Gary''s Student

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



Johno313

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


Mallycat

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



All times are GMT +1. The time now is 10:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com