Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default automatically prefix cell entry with leading zeros

Hi,

I am trying to setup a prefix where I have a set number starting out but
need to add additional numbers..

I have the format down to do that but is there a way to keep the leading
zeros displayed since some of the numbers I have start with zeros...

Example 123 is the set number and i want to add 00456...

correct result 123456
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default automatically prefix cell entry with leading zeros

Let's say:
A1: contain 123
B1: contain 456

In C1: =A1&B1


"Automatic prefix set with leading zeros" wrote:

Hi,

I am trying to setup a prefix where I have a set number starting out but
need to add additional numbers..

I have the format down to do that but is there a way to keep the leading
zeros displayed since some of the numbers I have start with zeros...

Example 123 is the set number and i want to add 00456...

correct result 123456

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 772
Default automatically prefix cell entry with leading zeros

Use the text function, or set the column format to text.
with the function, change the 4 zeroes below to the number of digits there
will be
=TEXT(A1,"0000")
--
-John Northwest11
Please rate when your question is answered to help us and others know what
is helpful.


"Automatic prefix set with leading zeros" wrote:

Hi,

I am trying to setup a prefix where I have a set number starting out but
need to add additional numbers..

I have the format down to do that but is there a way to keep the leading
zeros displayed since some of the numbers I have start with zeros...

Example 123 is the set number and i want to add 00456...

correct result 123456

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
Automatically prefix cell entry rossinvrland Excel Worksheet Functions 5 January 4th 07 09:23 PM
format cell to show leading zeros and make cell a three digit fiel Kristin Excel Worksheet Functions 2 July 28th 06 09:42 PM
Format a cell to keep leading zeros. Shadyhosta New Users to Excel 5 July 27th 05 04:37 PM
How do I force leading zeros in an Excel cell? EricKei Excel Discussion (Misc queries) 2 June 15th 05 08:28 PM
save text field w/ leading zeros in .csv format & not lose zeros? Ques Excel Discussion (Misc queries) 1 May 4th 05 06:21 PM


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