A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do you change single digits to recognized double digits?



 
 
Thread Tools Display Modes
  #1  
Old May 18th, 2009, 09:05 PM posted to microsoft.public.excel.worksheet.functions
Evil with a K[_2_]
external usenet poster
 
Posts: 8
Default How do you change single digits to recognized double digits?

I asked earlier how to make a column display a two digit number instead of a
single digit number (under 10) by adding a zero in front. The answer was to
hit custom and type in two zeros. The problem is the spreadsheet does display
the 02 on the cell but if you click the cell it still reads ony the 2. This
doesn't allow me to enter into access without errors. I have tried copy paste
special but still does not resolve the issue. Any help would be appreciated.
Bottom line I need to be able to place a 0 in front of all single digit
numbers in a column.

Thanks.
  #2  
Old May 18th, 2009, 09:11 PM posted to microsoft.public.excel.worksheet.functions
Sheeloo
external usenet poster
 
Posts: 797
Default How do you change single digits to recognized double digits?

As long as cells contain numbers, leading zeroes will not be stored in the
cell...

You may convert them to text with soemthing like this in B1
=IF(Len(A1)=1, "0&A1",""&A1)
and copying down, then copy-paste as values, assuming your numbers are in
Col A

Ideally you shuold handle this conversion while importing in Access.

"Evil with a K" wrote:

I asked earlier how to make a column display a two digit number instead of a
single digit number (under 10) by adding a zero in front. The answer was to
hit custom and type in two zeros. The problem is the spreadsheet does display
the 02 on the cell but if you click the cell it still reads ony the 2. This
doesn't allow me to enter into access without errors. I have tried copy paste
special but still does not resolve the issue. Any help would be appreciated.
Bottom line I need to be able to place a 0 in front of all single digit
numbers in a column.

Thanks.

  #3  
Old May 18th, 2009, 09:12 PM posted to microsoft.public.excel.worksheet.functions
David Biddulph
external usenet poster
 
Posts: 8,714
Default How do you change single digits to recognized double digits?

=TEXT(A2,"00")
--
David Biddulph

Evil with a K wrote:
I asked earlier how to make a column display a two digit number
instead of a single digit number (under 10) by adding a zero in
front. The answer was to hit custom and type in two zeros. The
problem is the spreadsheet does display the 02 on the cell but if you
click the cell it still reads ony the 2. This doesn't allow me to
enter into access without errors. I have tried copy paste special but
still does not resolve the issue. Any help would be appreciated.
Bottom line I need to be able to place a 0 in front of all single
digit numbers in a column.

Thanks.



  #4  
Old May 18th, 2009, 09:16 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default How do you change single digits to recognized double digits?

As you've discovered, number formatting is for *display purposes only*. The
true underlying value of the cell may not be what is *displayed*.

So, you'd need to either preformat the cells as TEXT or precede the entry
with an apostrophe like this: '02. The apostrophe will not be displayed in
the cell.

--
Biff
Microsoft Excel MVP


"Evil with a K" wrote in message
...
I asked earlier how to make a column display a two digit number instead of
a
single digit number (under 10) by adding a zero in front. The answer was
to
hit custom and type in two zeros. The problem is the spreadsheet does
display
the 02 on the cell but if you click the cell it still reads ony the 2.
This
doesn't allow me to enter into access without errors. I have tried copy
paste
special but still does not resolve the issue. Any help would be
appreciated.
Bottom line I need to be able to place a 0 in front of all single digit
numbers in a column.

Thanks.



  #5  
Old May 18th, 2009, 09:19 PM posted to microsoft.public.excel.worksheet.functions
Teethless mama
external usenet poster
 
Posts: 3,722
Default How do you change single digits to recognized double digits?

=TEXT(A1,"00")


"Evil with a K" wrote:

I asked earlier how to make a column display a two digit number instead of a
single digit number (under 10) by adding a zero in front. The answer was to
hit custom and type in two zeros. The problem is the spreadsheet does display
the 02 on the cell but if you click the cell it still reads ony the 2. This
doesn't allow me to enter into access without errors. I have tried copy paste
special but still does not resolve the issue. Any help would be appreciated.
Bottom line I need to be able to place a 0 in front of all single digit
numbers in a column.

Thanks.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:41 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.