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 How can I keep a zero (0) at the front of a set of numbers.

I want to keep the cell as a numerical number not in text format. I am trying
to set up bank account numbers in another system taking the raw data from
excel so need the zero at the front. How do I keep the zero?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 594
Default How can I keep a zero (0) at the front of a set of numbers.

You can't really. Any string of digets with a leading zero is NOT a number,
it isTEXT. You can fake it by Custom formatting to make it LOOK like it has
a leading zero, but it's not really there.

BTW, why would you want to maintain a list of Bank Account numbers as
NUMBERS anyway.....you probably won't be doing any math on them.

Vaya con Dios,
Chuck, CABGx3

"Myrddin" wrote in message
...
I want to keep the cell as a numerical number not in text format. I am
trying
to set up bank account numbers in another system taking the raw data from
excel so need the zero at the front. How do I keep the zero?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 905
Default How can I keep a zero (0) at the front of a set of numbers.

"clr" wrote:
You can't really. Any string of digets with a leading
zero is NOT a number, it isTEXT.


Dovetailing Chuck's comments, the point is: it should be __entered__ as
text. This can be done one of several ways, depending on the data source.

1. Manually enter the account numbers with a leading apostrophe (aka single
quote). The apostrophe is not considered part of the date; but it does tell
Excel to treat the characters as text.

2. Format the cell as Text before entering the account numbers.

3. Select Text format when using the Import Data wizard.

4. If you already have numbers, enter a formula like
=TEXT(A1,"0000000000000000") in a parallel column,
copy-and-paste-special-value the new column over the old column, and delete
the new column.

But having said all that....


"Myrddin" wrote:
I am trying to set up bank account numbers in another
system taking the raw data from excel so need the zero
at the front. How do I keep the zero?


Exactly how are you "taking the raw data from Excel", and what do you mean
by "another system": application or computer?

Even though you do need to solve the problem of preserving leading zeros in
Excel, as explained above, that might not solve your real problem, namely:
preserving leading zero when you input the "raw data" into "another system".


----- original message -----

"clr" wrote in message
...
You can't really. Any string of digets with a leading zero is NOT a number,
it isTEXT. You can fake it by Custom formatting to make it LOOK like it has
a leading zero, but it's not really there.

BTW, why would you want to maintain a list of Bank Account numbers as
NUMBERS anyway.....you probably won't be doing any math on them.

Vaya con Dios,
Chuck, CABGx3

"Myrddin" wrote in message
...
I want to keep the cell as a numerical number not in text format. I am
trying
to set up bank account numbers in another system taking the raw data from
excel so need the zero at the front. How do I keep the zero?


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
How to remove 0's in front of numbers? Kipurr Excel Discussion (Misc queries) 4 April 17th 23 07:02 PM
Adding a zero to the front of numbers Connie Martin Excel Worksheet Functions 5 May 8th 09 04:37 PM
need help in adding a ' in front of a column of numbers noreaster New Users to Excel 4 September 14th 08 03:54 PM
add zeros in front of numbers dlb1228 Excel Discussion (Misc queries) 3 March 29th 07 05:48 PM
adding digits to front/end of fax numbers Luke Excel Discussion (Misc queries) 2 April 27th 05 11:35 PM


All times are GMT +1. The time now is 03:13 AM.

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"