Smartlist and Navigation Lists export currency values with five decimals in Excel using Microsoft Dynamics GP
This article provides methods to solve the issue that Smartlist and Navigation Lists export currency values with five decimals in Excel by using Microsoft Dynamics GP.
Applies to: Microsoft Dynamics GP
Original KB number: 2881746
Smartlist, SmartList Designer, Excel Builder, and Navigation Lists export currency values with five decimals in Excel using Microsoft Dynamics GP 2013 and greater versions.
In Microsoft Dynamics GP 2013, the way data is exported from Smartlist and Navigation Lists to Excel has been changed. You'll notice that amount columns are populated with five decimals in Excel and the formatting shown in the Smartlist appears to have been lost during the export. This behavior is by design in Microsoft Dynamics GP 2013. This change was made to increase the performance of exporting data to Excel from Smartlist, and also to allow for exports through Smartlist from the Web Client. The code was changed from COM to OpenXML SDK, and to export the full five decimals directly from the SQL tables to ensure there's no data loss. This approach is safer than truncating the data to two decimals, and allows the user to format the field how they want in Excel. This change is by design to improve performance and prevent data loss.
In Microsoft Dynamics GP 2013 and later versions, you'll have to use one of the methods below to format the data:
Method 1 - Format in Excel each time
Format the currency field directly in Excel to two decimals:
- Open Smartlist and export the data to Excel.
- In the excel spreadsheet, right-click on column heading for the column you wish to format, and select Format Cells...
- In the format cells window, select Currency and set the Decimal places to 2.
- Choose if you want a Symbol displayed or not, and how you want negative numbers to appear. Select OK.
- Save the spreadsheet.
Method 2 - Use Export Solutions in Smartlist
Create a formatted spreadsheet in Excel and use Export Solutions in Smartlist to reuse the same spreadsheet as a template to export to:
Open Smartlist and export the data to Excel.
In the excel spreadsheet, right-click on column heading for the column you wish to format, and select Format Cells...
In the format cells window, select Currency and set the Decimal places to 2.
Choose if you want a Symbol displayed or not, and how you want negative numbers to appear. Select OK.
Enter a file name and location to save it to. Select Save.
Open the saved file again in Excel. (It should be listed under File > Recent). The line numbers are listed in the left-most column. Right above the '1' for line 1, you'll see a blank cell. Right-click on this blank cell and choose Clear Contents. This option should clear all the data from the spreadsheet. Close the spreadsheet and save your changes to create a blank template or worksheet.
Now in Microsoft Dynamics GP, set up the export to use the formatted spreadsheet:
- Select Microsoft Dynamics GP and select Smartlist.
- In the top menu-bar, select Smartlist and select Export Solutions.
- Key in a Name in the Name filed in the upper right side of the window.
- In the Document field, browse out to the formatted spreadsheet you created.
- Change the Application field to Excel.
- In the Works for Favorites section, expand what Smartlist and mark the checkbox to the left of that Smartlist(s) you want to use with the saved spreadsheet. You can mark as many of favorites that you want to use this formatted spreadsheet.
- Select Save. Exit out of the Export Solutions window.
- Refresh the Smartlist window.
- Select the Smartlist. And you should now see a drop-down arrow under the EXCEL button, where you can select to use the formatted spreadsheet you made (or the Quick export will be the old way showing all five decimals.)
- Select the name of the formatted spreadsheet you created. And the data will export to Excel, where the currency column will now be formatted to two decimals.
- Select FILE > SAVE AS and save the spreadsheet under a new name, to leave your template empty.
Create as many formatted spreadsheets as you need and use Export Solutions to link them to the appropriate Smartlist.