{"id":7958,"date":"2018-03-22T14:20:47","date_gmt":"2018-03-22T13:20:47","guid":{"rendered":"https:\/\/www.myexcelonline.com\/blog\/?p=7541"},"modified":"2024-02-06T16:09:13","modified_gmt":"2024-02-06T15:09:13","slug":"import-data-csv-using-power-query-get-transform","status":"publish","type":"post","link":"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/import-data-csv-using-power-query-get-transform\/","title":{"rendered":"Import Data from CSV Using Power Query or Get &#038; Transform"},"content":{"rendered":"<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/installing-power-query-excel-2010\/\" target=\"_blank\" rel=\"noopener noreferrer\">Power Query<\/a>\u00a0or Get &amp; Transform (In Excel 2016) lets you perform a series of steps to transform your Excel data.<\/p>\n<p>But what if your data source is not in your Excel <a class=\"wpil_keyword_link\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/free-excel-templates-and-spreadsheets\/\" target=\"_blank\" rel=\"noopener\" title=\"spreadsheet\" data-wpil-keyword-link=\"linked\">spreadsheet<\/a> but located on your desktop?<\/p>\n<p>If it&#8217;s inside a <strong>CSV<\/strong> file &#8211;\u00a0<strong>Comma Separated Values<\/strong> which is denoted by a <strong>.csv<\/strong>\u00a0file extension &amp; where the columns are separated by commas &#8211; it&#8217;s very easy to <strong>import data from csv<\/strong> and right into\u00a0<strong><a class=\"wpil_keyword_link\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/50-things-you-can-do-with-excel-power-query\/\" target=\"_blank\" rel=\"noopener\" title=\"Power Query\" data-wpil-keyword-link=\"linked\">Power Query<\/a>!\u00a0<\/strong><\/p>\n<p>It&#8217;s very common nowadays to get data in the comma-delimited format.<\/p>\n<p>Let&#8217;s suppose you have this set of data from the csv file:<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-01.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"\" class=\"alignnone size-full wp-image-7543\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-01.png\" alt=\"Import Data from CSV Using Power Query\" width=\"214\" height=\"264\"><\/a><\/p>\n<div class=\"after-post-box\">\n<p><iframe src=\"https:\/\/www.youtube.com\/embed\/z_nWR4CUciQ?rel=0 \" width=\"800\" height=\"400\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><a href=\"https:\/\/www.youtube.com\/c\/MyExcelOnlinecomtutorials?sub_confirmation=1\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img loading=\"lazy\" decoding=\"async\" class=\"alignmiddle wp-image-111468 size-full\" style=\"vertical-align: middle;\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/04\/1.yt_.png\" alt=\"\" title=\"\"><\/a><\/p>\n<p class=\"line-two\"><a class=\"IRPP_minimalist icon-download button small\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/03\/Get-Data-from-CSV-1.zip\" target=\"_blank\" rel=\"noopener noreferrer\" data-leadbox=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/03\/Get-Data-from-CSV-1.zip\" data-leadbox-id=\"147284833f72a2:12f08263ab46dc\"><span class=\"ctaText px-3 text-capitalize\">Download excel workbook and source file<i class=\"fa fa-download\"><\/i><\/span><span class=\"postTitle px-3\">Get-Data-from-CSV-1.zip<\/span><\/a><\/p>\n<p class=\"line-two\">\n<\/div>\n<p><span style=\"color: #ff0000;\"><strong>STEP 1<\/strong>:<\/span><\/p>\n<p><span style=\"color: #0000ff;\"><strong>Using Excel 2016 (screenshot below)<\/strong><\/span><\/p>\n<p>Go to\u00a0<em><strong>Data &gt; New Query &gt; From File &gt; From CSV<\/strong><\/em><\/p>\n<p><span style=\"color: #0000ff;\"><strong>Using Excel 2013 or Excel 2010<\/strong><\/span><\/p>\n<p>Go to\u00a0<em><strong>Power Query &gt; From File &gt; From CSV<\/strong><\/em><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-02.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"\" class=\"alignnone size-full wp-image-7544\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-02.png\" alt=\"Import Data from CSV Using Power Query\" width=\"373\" height=\"338\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-02.png 373w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-02-300x272.png 300w\" sizes=\"(max-width: 373px) 100vw, 373px\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Select the\u00a0<strong>csv file\u00a0<\/strong>that contains the data.\u00a0 Click\u00a0<strong>Import.<\/strong><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-03.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"\" class=\"alignnone size-full wp-image-7545\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-03.png\" alt=\"Import Data from CSV Using Power Query\" width=\"669\" height=\"473\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-03.png 669w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-03-300x212.png 300w\" sizes=\"(max-width: 669px) 100vw, 669px\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>A\u00a0preview of the csv data will be shown.\u00a0 If it looks good, press\u00a0<strong>Edit.<\/strong><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-04.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"\" class=\"alignnone size-full wp-image-7546\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-04.png\" alt=\"Import Data from CSV Using Power Query\" width=\"759\" height=\"378\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-04.png 759w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-04-300x149.png 300w\" sizes=\"(max-width: 759px) 100vw, 759px\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 2<\/strong>:<\/span> This will open up the Power Query Editor.<\/p>\n<p>Go to\u00a0<em><strong>Home &gt; Transform &gt; Use First Row As Headers<\/strong>.\u00a0<\/em><\/p>\n<p>This will give your table the correct Column Headers.<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-05.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"\" class=\"alignnone size-full wp-image-7547\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-05.png\" alt=\"Import Data from CSV Using Power Query\" width=\"777\" height=\"443\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-05.png 777w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-05-300x171.png 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-05-768x438.png 768w\" sizes=\"(max-width: 777px) 100vw, 777px\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #ff0000;\">STEP 3:<\/span> <\/strong>Click <strong>Close &amp; Load<\/strong> from the <strong>Home<\/strong> tab and this will <strong>open up a brand new worksheet<\/strong> in your Excel workbook with the imported table.<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-06.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"\" class=\"alignnone size-full wp-image-7548\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-06.png\" alt=\"Import Data from CSV Using Power Query\" width=\"328\" height=\"396\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-06.png 328w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-06-248x300.png 248w\" sizes=\"(max-width: 328px) 100vw, 328px\"><\/a><\/p>\n<p>You now have your new table from the csv file!<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-07.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"\" class=\"alignnone size-full wp-image-7549\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/12\/Get-Data-from-CSV-07.png\" alt=\"Import Data from CSV Using Power Query\" width=\"215\" height=\"246\"><\/a><\/p>\n<p><span style=\"color: #0000ff;\"><strong>Import Data from CSV in Excel<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/100-21.html\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/728x90.jpg\" alt=\"Import Data from CSV Using Power Query\" width=\"728\" height=\"90\" title=\"\"><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Power Query\u00a0or Get &amp; Transform (In Excel 2016) lets you perform a series of steps to transform your Excel data. But what if your data source is not in your Excel spreadsheet but located on your desktop? If it&#8217;s inside a CSV file &#8211;\u00a0Comma Separated Values which is denoted by a .csv\u00a0file extension &amp; where [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":17458,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cos_headline_score":0,"cos_seo_score":0,"cos_headline_text":"","cos_headline_has_been_analyzed":false,"cos_last_analyzed_headline":[],"om_disable_all_campaigns":false},"categories":[120,121],"tags":[322,154,117],"acf":[],"_links":{"self":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/7958"}],"collection":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/comments?post=7958"}],"version-history":[{"count":0,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/7958\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media\/17458"}],"wp:attachment":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media?parent=7958"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/categories?post=7958"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/tags?post=7958"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}