Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default How to retain decimal zeroes?

Hi
A csv file is created by a program and gets opened by Excel. The file
contain interest rates with 3 decimal places. such as 5.340, 3.300 etc. When
the file is opened in Excel, excel automatically strips the trailing zeros.
This becomes 5.34 and 3.3. Though the value is not changed, the user is
adamant to see 3 decimal places after decimal point. User doesnt want to set
the column properties or set it as Number data type. Is there anyway to
retain the trailing zeros without setting any Format in excel?
Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default How to retain decimal zeroes?

Make it all text.

Antony wrote:

Hi
A csv file is created by a program and gets opened by Excel. The file
contain interest rates with 3 decimal places. such as 5.340, 3.300 etc. When
the file is opened in Excel, excel automatically strips the trailing zeros.
This becomes 5.34 and 3.3. Though the value is not changed, the user is
adamant to see 3 decimal places after decimal point. User doesnt want to set
the column properties or set it as Number data type. Is there anyway to
retain the trailing zeros without setting any Format in excel?
Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default How to retain decimal zeroes?

Anthony,

FWIW I think this 'User' needs a reality check. Excel formatting to 3
decimal places is the perfect way to do this and isn't that onerous to do and
certainly not as onerous as other methods for example =TEXT(A1,"0.000")

You could format the columns using VB when the file is opened and don't tell
the user.

Mike

"Antony" wrote:

Hi
A csv file is created by a program and gets opened by Excel. The file
contain interest rates with 3 decimal places. such as 5.340, 3.300 etc. When
the file is opened in Excel, excel automatically strips the trailing zeros.
This becomes 5.34 and 3.3. Though the value is not changed, the user is
adamant to see 3 decimal places after decimal point. User doesnt want to set
the column properties or set it as Number data type. Is there anyway to
retain the trailing zeros without setting any Format in excel?
Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default How to retain decimal zeroes?

How do I do that ? (I have given double quotes around the nemeric value.
Would that make it as a text)

"Bob I" wrote:

Make it all text.

Antony wrote:

Hi
A csv file is created by a program and gets opened by Excel. The file
contain interest rates with 3 decimal places. such as 5.340, 3.300 etc. When
the file is opened in Excel, excel automatically strips the trailing zeros.
This becomes 5.34 and 3.3. Though the value is not changed, the user is
adamant to see 3 decimal places after decimal point. User doesnt want to set
the column properties or set it as Number data type. Is there anyway to
retain the trailing zeros without setting any Format in excel?
Thanks.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default How to retain decimal zeroes?

Thanks Mike. I think I may have to force the user to accept the fact.

"Mike H" wrote:

Anthony,

FWIW I think this 'User' needs a reality check. Excel formatting to 3
decimal places is the perfect way to do this and isn't that onerous to do and
certainly not as onerous as other methods for example =TEXT(A1,"0.000")

You could format the columns using VB when the file is opened and don't tell
the user.

Mike

"Antony" wrote:

Hi
A csv file is created by a program and gets opened by Excel. The file
contain interest rates with 3 decimal places. such as 5.340, 3.300 etc. When
the file is opened in Excel, excel automatically strips the trailing zeros.
This becomes 5.34 and 3.3. Though the value is not changed, the user is
adamant to see 3 decimal places after decimal point. User doesnt want to set
the column properties or set it as Number data type. Is there anyway to
retain the trailing zeros without setting any Format in excel?
Thanks.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default How to retain decimal zeroes?

And import it as TXT file not CSV.

Antony wrote:

How do I do that ? (I have given double quotes around the nemeric value.
Would that make it as a text)

"Bob I" wrote:


Make it all text.

Antony wrote:


Hi
A csv file is created by a program and gets opened by Excel. The file
contain interest rates with 3 decimal places. such as 5.340, 3.300 etc. When
the file is opened in Excel, excel automatically strips the trailing zeros.
This becomes 5.34 and 3.3. Though the value is not changed, the user is
adamant to see 3 decimal places after decimal point. User doesnt want to set
the column properties or set it as Number data type. Is there anyway to
retain the trailing zeros without setting any Format in excel?
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
Can I set the default for "show zeroes" to not show the zeroes? jeel Setting up and Configuration of Excel 1 January 25th 08 07:18 PM
Subtracting two 2-decimal place numbers gives result 13-decimal places? [email protected] Excel Worksheet Functions 5 March 12th 07 10:38 PM
Batch converting CSV files from comma-decimal to period-decimal Nodles Excel Discussion (Misc queries) 3 July 5th 06 06:57 PM
Converting 2-place decimal value to floating point decimal number with leading zero Kermit Piper Excel Discussion (Misc queries) 3 March 18th 06 06:20 PM
FIXED 2 DECIMAL PLACES, MUST ENTER ALL ZEROES AFTER DECIMAL POINT. SUKYKITTY Excel Discussion (Misc queries) 3 July 6th 05 01:50 PM


All times are GMT +1. The time now is 07:58 AM.

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"