Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Vic Vic is offline
external usenet poster
 
Posts: 117
Default decimal places and leading zeros


I need to format a column of numbers (dollars and cents) from an outside
company to ftp it to a financial website and it must be in the following
format:

Leading zeros to make the cell 10 characters long and can have no decimal
point.

I did a custom format which is fine until I get to a dollar amount that does
not have cents. Example:

Original:
100.25
1.00
550.00
Custom format
0000010025
0000000001
0000000550

Does anyone have any ideas on how I can accomplish this?
Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default decimal places and leading zeros

So you have
0000000001
but you want
0000000100

Assuming that to be the case then you probably want to create a new column
which multiplies the value by 100 (1 becomes 100, 100.25 becomes 10025 ...).
You can then custom format the new column to
0000000000
--
HTH...

Jim Thomlinson


"Vic" wrote:


I need to format a column of numbers (dollars and cents) from an outside
company to ftp it to a financial website and it must be in the following
format:

Leading zeros to make the cell 10 characters long and can have no decimal
point.

I did a custom format which is fine until I get to a dollar amount that does
not have cents. Example:

Original:
100.25
1.00
550.00
Custom format
0000010025
0000000001
0000000550

Does anyone have any ideas on how I can accomplish this?
Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.misc
Vic Vic is offline
external usenet poster
 
Posts: 117
Default decimal places and leading zeros

Perfect! Thanks very much.

"Jim Thomlinson" wrote:

So you have
0000000001
but you want
0000000100

Assuming that to be the case then you probably want to create a new column
which multiplies the value by 100 (1 becomes 100, 100.25 becomes 10025 ...).
You can then custom format the new column to
0000000000
--
HTH...

Jim Thomlinson


"Vic" wrote:


I need to format a column of numbers (dollars and cents) from an outside
company to ftp it to a financial website and it must be in the following
format:

Leading zeros to make the cell 10 characters long and can have no decimal
point.

I did a custom format which is fine until I get to a dollar amount that does
not have cents. Example:

Original:
100.25
1.00
550.00
Custom format
0000010025
0000000001
0000000550

Does anyone have any ideas on how I can accomplish this?
Thanks!

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
Dollars to text without loosing zeros from decimal places DOK Excel Worksheet Functions 5 December 13th 07 05:42 PM
Leading decimal and zeros in formating numbers DLJames Excel Discussion (Misc queries) 3 November 30th 07 06:43 PM
Insert Decimal Places and Clear Zeros Gladys Excel Discussion (Misc queries) 2 May 5th 06 08:59 PM
Leading Zeros and decimal points Sam Excel Worksheet Functions 3 July 12th 05 12:40 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 06:43 PM.

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"