Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Leading Zero Dropped in Text Cell

Long time reader, first time asker (read: I tried searching but could not
find the answer):
I have cells that have 4 digit numbers (e.g. 0034) and they need to be
formatted to the 00.00 format (end result: 00.34).

The issue is they were imported from an external data source, so all the
numbers are in Excel as text. When they are converted over to numbers, the
zeroes are dropped, so it ends up being 34. When I apply 00.00 formatting,
or =TEXT(A2,"00.00") or the other methods of keeping leading zeroes, the
number is 34.00, because it takes and tacks the number on the front.

Is there a way to convert these to numbers into the 00.00 format?
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Leading Zero Dropped in Text Cell

You could use a helper cell:
=a2/100
and give that helper cell/column a nice format (00.00)

or you could do the same thing using =text()
=text(a2/100,"00.00")

Or you could keep your data in the same location and divide by 100.

put 100 in an empty cell
edit|copy that cell
select the range to fix
edit|paste special|values and divide
and clean up the cell with 100 in it.

Then format the fixed range with a custom format of 00.00



Edward DiMarco wrote:

Long time reader, first time asker (read: I tried searching but could not
find the answer):
I have cells that have 4 digit numbers (e.g. 0034) and they need to be
formatted to the 00.00 format (end result: 00.34).

The issue is they were imported from an external data source, so all the
numbers are in Excel as text. When they are converted over to numbers, the
zeroes are dropped, so it ends up being 34. When I apply 00.00 formatting,
or =TEXT(A2,"00.00") or the other methods of keeping leading zeroes, the
number is 34.00, because it takes and tacks the number on the front.

Is there a way to convert these to numbers into the 00.00 format?


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Leading Zero Dropped in Text Cell

Dave, that's awesome. Thank you. Now I can have some semblence of sanity.

"Dave Peterson" wrote:

You could use a helper cell:
=a2/100
and give that helper cell/column a nice format (00.00)

or you could do the same thing using =text()
=text(a2/100,"00.00")

Or you could keep your data in the same location and divide by 100.

put 100 in an empty cell
edit|copy that cell
select the range to fix
edit|paste special|values and divide
and clean up the cell with 100 in it.

Then format the fixed range with a custom format of 00.00



Edward DiMarco wrote:

Long time reader, first time asker (read: I tried searching but could not
find the answer):
I have cells that have 4 digit numbers (e.g. 0034) and they need to be
formatted to the 00.00 format (end result: 00.34).

The issue is they were imported from an external data source, so all the
numbers are in Excel as text. When they are converted over to numbers, the
zeroes are dropped, so it ends up being 34. When I apply 00.00 formatting,
or =TEXT(A2,"00.00") or the other methods of keeping leading zeroes, the
number is 34.00, because it takes and tacks the number on the front.

Is there a way to convert these to numbers into the 00.00 format?


--

Dave Peterson
.

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 prevent leading zero's from being dropped from a CSV file Fun In The Sun Excel Worksheet Functions 1 December 18th 08 04:33 PM
dropped text in cell jtalboy Excel Discussion (Misc queries) 1 August 12th 08 09:40 PM
How to copy a number into a text cell, keeping leading zeros? Basher Bates Charts and Charting in Excel 2 February 23rd 08 03:26 PM
how do i eliminate leading 0 in a text cell REST Excel Discussion (Misc queries) 2 September 25th 06 08:43 PM
Leading zeroes get dropped when converted to text Jason Grunert Excel Discussion (Misc queries) 8 August 4th 06 09:42 PM


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