{"id":858,"date":"2010-12-09T13:48:30","date_gmt":"2010-12-09T21:48:30","guid":{"rendered":"http:\/\/45.63.48.66\/?p=858"},"modified":"2019-05-02T14:49:03","modified_gmt":"2019-05-02T21:49:03","slug":"copypaste-from-dynamics-nav-to-excel-headache","status":"publish","type":"post","link":"https:\/\/gotcal.com\/index.php\/2010\/12\/copypaste-from-dynamics-nav-to-excel-headache\/","title":{"rendered":"Copy\/paste from Dynamics NAV to Excel Headache!"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-859\" title=\"excel_duh\" src=\"http:\/\/gotcal.com\/wp-content\/uploads\/2010\/12\/excel_duh.jpg\" alt=\"\" width=\"156\" height=\"128\">Every time you copy\/paste data from NAV to Excel, you always run into the &#8220;intelligent&#8221; way Excel handles data. Excel&#8217;s default number format is &#8220;General&#8221;. Unfortunately this has some drawbacks, especially when you paste in data from another application.<\/p>\n<p>Lets do this example, enter in a new cell with Number Format General, the value &#8220;001010&#8221;, and you will see Excel stores this as 1010, since it determined your value to be a Number. Of course we wanted it to be the equivalent of a NAV Code field, and expected Excel to keep it like &#8220;001010&#8221;. In order to do this you can for the field tell it is text by adding a &#8216; in front. So far so good&#8230;.<\/p>\n<p>But when doing a copy\/paste you dont have that option, so what to do?<\/p>\n<p><!--more-->Before doing your copy paste set the specific column, or the whole Sheet to Number Format = Text. Then the values you paste in will stay formatted the way exported them from NAV.<\/p>\n<p>Not really a NAV trick, but related. And just learned this today, as a customer was getting audited and they needed the data out to Excel.<\/p>\n<p><object id=\"scPlayer\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"514\" height=\"378\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,40,0\"><param name=\"data\" value=\"http:\/\/content.screencast.com\/users\/SNielsen\/folders\/Jing\/media\/114b94cc-b2a4-40a6-80a5-d49ed446322f\/jingh264player.swf\"><param name=\"quality\" value=\"high\"><param name=\"bgcolor\" value=\"#FFFFFF\"><param name=\"flashVars\" value=\"thumb=http:\/\/content.screencast.com\/users\/SNielsen\/folders\/Jing\/media\/114b94cc-b2a4-40a6-80a5-d49ed446322f\/FirstFrame.jpg&amp;containerwidth=514&amp;containerheight=378&amp;content=http:\/\/content.screencast.com\/users\/SNielsen\/folders\/Jing\/media\/114b94cc-b2a4-40a6-80a5-d49ed446322f\/2010-12-09_1346.mp4&amp;blurover=false\"><param name=\"allowFullScreen\" value=\"true\"><param name=\"scale\" value=\"showall\"><param name=\"allowScriptAccess\" value=\"always\"><param name=\"base\" value=\"http:\/\/content.screencast.com\/users\/SNielsen\/folders\/Jing\/media\/114b94cc-b2a4-40a6-80a5-d49ed446322f\/\"><param name=\"src\" value=\"http:\/\/content.screencast.com\/users\/SNielsen\/folders\/Jing\/media\/114b94cc-b2a4-40a6-80a5-d49ed446322f\/jingh264player.swf\"><param name=\"flashvars\" value=\"thumb=http:\/\/content.screencast.com\/users\/SNielsen\/folders\/Jing\/media\/114b94cc-b2a4-40a6-80a5-d49ed446322f\/FirstFrame.jpg&amp;containerwidth=514&amp;containerheight=378&amp;content=http:\/\/content.screencast.com\/users\/SNielsen\/folders\/Jing\/media\/114b94cc-b2a4-40a6-80a5-d49ed446322f\/2010-12-09_1346.mp4&amp;blurover=false\"><param name=\"allowfullscreen\" value=\"true\"><embed id=\"scPlayer\" type=\"application\/x-shockwave-flash\" width=\"514\" height=\"378\" src=\"http:\/\/content.screencast.com\/users\/SNielsen\/folders\/Jing\/media\/114b94cc-b2a4-40a6-80a5-d49ed446322f\/jingh264player.swf\" base=\"http:\/\/content.screencast.com\/users\/SNielsen\/folders\/Jing\/media\/114b94cc-b2a4-40a6-80a5-d49ed446322f\/\" allowscriptaccess=\"always\" scale=\"showall\" allowfullscreen=\"true\" flashvars=\"thumb=http:\/\/content.screencast.com\/users\/SNielsen\/folders\/Jing\/media\/114b94cc-b2a4-40a6-80a5-d49ed446322f\/FirstFrame.jpg&amp;containerwidth=514&amp;containerheight=378&amp;content=http:\/\/content.screencast.com\/users\/SNielsen\/folders\/Jing\/media\/114b94cc-b2a4-40a6-80a5-d49ed446322f\/2010-12-09_1346.mp4&amp;blurover=false\" bgcolor=\"#FFFFFF\" quality=\"high\" data=\"http:\/\/content.screencast.com\/users\/SNielsen\/folders\/Jing\/media\/114b94cc-b2a4-40a6-80a5-d49ed446322f\/jingh264player.swf\"><\/object><\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Every time you copy\/paste data from NAV to Excel, you always run into the &#8220;intelligent&#8221; way Excel handles data. Excel&#8217;s default number format is &#8220;General&#8221;. Unfortunately this has some drawbacks, especially when you paste in data from another application. Lets do this example, enter in a new cell with Number Format General, the value &#8220;001010&#8221;, [&hellip;]<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3,69],"tags":[37,77,68,28,27],"class_list":["post-858","post","type-post","status-publish","format-standard","hentry","category-navision","category-tipstricks","tag-application","tag-navision","tag-excel","tag-external","tag-how-to"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/gotcal.com\/index.php\/wp-json\/wp\/v2\/posts\/858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gotcal.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gotcal.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gotcal.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/gotcal.com\/index.php\/wp-json\/wp\/v2\/comments?post=858"}],"version-history":[{"count":4,"href":"https:\/\/gotcal.com\/index.php\/wp-json\/wp\/v2\/posts\/858\/revisions"}],"predecessor-version":[{"id":1011,"href":"https:\/\/gotcal.com\/index.php\/wp-json\/wp\/v2\/posts\/858\/revisions\/1011"}],"wp:attachment":[{"href":"https:\/\/gotcal.com\/index.php\/wp-json\/wp\/v2\/media?parent=858"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gotcal.com\/index.php\/wp-json\/wp\/v2\/categories?post=858"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gotcal.com\/index.php\/wp-json\/wp\/v2\/tags?post=858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}