Exporting data to excel with specific decimals
ramsay18477
Member Posts: 52
Hi All,
When I export numeric data to excel, I use 'format' to convert it to text format before the transfer.
But, when the data is exported to excel, it does not display the trailing zeros in the decimals, which I want it to.
For eg., if the value '31.50', data in excel is shown as '31.5', while I want it to be shown as '31.50'.
Please advise.
When I export numeric data to excel, I use 'format' to convert it to text format before the transfer.
But, when the data is exported to excel, it does not display the trailing zeros in the decimals, which I want it to.
For eg., if the value '31.50', data in excel is shown as '31.5', while I want it to be shown as '31.50'.
Please advise.
Thanks & Best Regards,
Ram.
Ram.
0
Comments
-
Hello Ramsay18477,
Assuming you're using ExcelBuffer, then you don't need to format your decimal value to text. This will remove your ,00 decimals.
You can also set specific number formats to further control this issue. Heres's an example. You can right click cells in Excel and choose Format Cells -> Custom format to see more examples to play around with.ExcelBuf.AddColumn(MyDecimalValue,FALSE,'',FALSE,FALSE,FALSE,'#.##0,00');
0 -
You can format the numbers in Excel by right clicking the cells, choosiong format sells>number and then selecting the decimal places.Regards,
Deep
India0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions