LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default Trailing zero's

Thank you
i was using the replace function to get rid of the decimal that must be
where i was losing the zero's

worked like charm

"ShaneDevenshire" wrote:

Hi,

I don't know from your question if this problem is occuring in Access, Excel
or the text file.

The basic solution is to multipley 19.00*100 to get 1900, but it also looks
like you need leading zeros so ="000"&19.00*100

Now I notice in one case you add 3 leading zeros in the other case 4, you
would need to tell us how you decide which to do.

Anyway the above formula can be entered in an Access Query and the results
of the query sent to Excel, or the formula can be applied in Excel after the
data is transfered.

In Acces it would be a new calculated field in the query and would read
something like
New Number:"000"&[Field Name]*100

This would be on the first row of the query, and Field Name would be the
name of the field containing the numbers.


If this helps, please click the Yes button.

--
Thanks,
Shane Devenshire


"Mike" wrote:

I thought maybe some here could shed some light on my problem. I have created
a vb form to imported an excel file which is created from quickbooks into an
access database.

I have to create a txt file from this data. My problem is the trailing
zero's of the Amount fields drop. So say if I have 19.00 I need to remove the
decimal and show it as 0001900. If I have 19.10 I need remove the decimal and
add the three zero's to show 0001910.

What is happen's is 19.00 ends up like 0000019 and 19.10 ends up like 0000191.

I know this dosen't really have anything to do with excel but thought
someone here might be able to help.

Thanks Mike

 
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
Zero's PAL Excel Worksheet Functions 3 June 26th 09 10:46 PM
Formatting numbers with leading and trailing zero's Victoria Excel Worksheet Functions 7 June 17th 08 06:14 PM
Array and not loseing trailing zero's 123.00 Jim at Eagle Excel Programming 3 April 15th 08 08:35 PM
Zero's # 2 Delaina Excel Discussion (Misc queries) 3 October 24th 05 08:02 PM
Zero's Krandall New Users to Excel 1 June 9th 05 08:11 PM


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