![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
Hello everybody,
When I have to input a numeric value beginning with 0 in a cell, I have to input using a quote i.e. '01234 As a result, XL remove this quote and show 01234 When I try to read a .txt file (tab delimited) with a '01234 value, XL show '01234 I think that XL store he ' as a special value, but which one ? Thanks in advance for your help |
|
|
|
#2 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
Hi
Have you tried using a custom format like: "0000" |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sydney, Australia
Posts: 2,908
|
If you put an apostophe ' in front of anything in a cell Excel interprets that as text. If you type '0123 you'll always see 0123 in the cell. If you type 0123 you might see either 123 or 0123 depending on the format of the cell. If you want to use leading zeros then format the cells as text (Format, Cells, choose Number tab and select Text).
HTH, D |
|
|
|
|
|
#4 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
Hi dk
If you format the cell as Text the content will also be Text (no difference than using '). The ' is a hidden character that even the Find will not return (which is a pain!). As I have said above to keep it numeric just use a custom format of: "0000" Depends on how many zeros you want of course. |
|
|
|
|
|
#5 | |
|
Guest
Posts: n/a
|
Quote:
Thanks |
|
|
|
|
#6 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
Alt+0+39
39 Is the Character number. |
|
|
|
|
|
#7 |
|
Guest
Posts: n/a
|
I'm OK, Alt+0+39 is the ' character, but if I put this character in a .txt file (before a 0), XL show me '0 and not 0 as when I input thru the keyboard '0
|
|
|
|
#8 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|