{"id":2534,"date":"2017-02-23T16:23:06","date_gmt":"2017-02-23T19:23:06","guid":{"rendered":"https:\/\/importsheet.com\/?p=2534"},"modified":"2017-02-23T16:23:06","modified_gmt":"2017-02-23T19:23:06","slug":"formula-importdata-google-sheets","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/pt\/blog\/google-sheets-formulas\/importdata-formula-google-sheets\/","title":{"rendered":"Como usar a f\u00f3rmula IMPORTDATA do Planilhas Google"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221; module_class=&#8221;sheetgo-post&#8221; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_row admin_label=&#8221;row&#8221; _builder_version=&#8221;4.16&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; custom_padding=&#8221;||0px|||&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>The<span>\u00a0<\/span><a href=\"https:\/\/support.google.com\/docs\/answer\/3093335?hl=en\" target=\"_blank\" rel=\"noopener noreferrer\">IMPORTDATA<\/a>\u00a0formula in Google Sheets is quite a handy tool. It helps us fetch data, that is stored\u00a0in<span>\u00a0<\/span>.csv (comma separated values)\u00a0or\u00a0.tsv (tab separated values)<span>\u00a0<\/span>files, from a location on the web.<\/p>\n<h3>Syntax<\/h3>\n<p><strong><span>IMPORTDATA(url)<\/span><\/strong><\/p>\n<ul>\n<li><span><strong>url<\/strong><\/span><span>\u00a0<\/span>\u2013 this is the address (uniform resource locator) on the web, where the .csv file or .tsv file is located.\u00a0This can take two forms.\n<ul>\n<li>A valid and fully qualified location in the form of text (enclosed in double quotes). For example:<span>\u00a0<\/span><strong><span>\u201chttp:\/\/www.census.gov\/2010census\/csv\/pop_change.csv\u201d<\/span><\/strong><\/li>\n<li>Or it can be a reference to a cell (like<span>\u00a0<\/span><span><strong>B1<\/strong><\/span>) within Google Sheets, where the url is stored.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>It might be useful to note that Google Sheets accommodates up to 50 IMPORTDATA formulas on a single spreadsheet.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Usage: IMPORTDATA Formula<\/h3>\n<h5>Case # 1: IMPORTDATA(\u201clocation of the csv or tsv file located on the web\u201d)<\/h5>\n<p>In the\u00a0snapshot below, we are trying to import the data into the cell B3, which therefore becomes the<span>\u00a0<\/span>destination to key<span>\u00a0<\/span>in the IMPORTDATA formula.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/Google-Sheets-importdata-1.png&#8221; alt=&#8221;Google Sheets importdata 1&#8243; title_text=&#8221;Google Sheets importdata 1&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span>We ensure the\u00a0<\/span><span><strong>url<\/strong><\/span><span>\u00a0is valid, and then enter the formula properly (i.e. enclose\u00a0<\/span><span>url<\/span><span>within double quotes) and\u00a0hit the Enter key. Below\u00a0is what we see as Google Sheets tries to fetch the data. Bigger the file, the longer it takes to finish the data import.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/importdata2.png&#8221; alt=&#8221;Google Sheets Importdata: Google Sheets Fetching Data&#8221; title_text=&#8221;fetch-data-importdata&#8221; align=&#8221;center&#8221; module_class=&#8221;sheetgo-post-no-shadow-img&#8221; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span>While the data import is in progress, the cell in which we keyed in the formula, looks like it\u00a0returned as an error (as indicated by a little red speck on the top right corner of the cell). But, it isn\u2019t an error, just a transient state. Hover the mouse on the cell, to see the following description.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/importdata3.png&#8221; alt=&#8221;Google Sheets Importdata: Loading Data&#8221; title_text=&#8221;loading-data-error&#8221; align=&#8221;center&#8221; module_class=&#8221;sheetgo-post-no-shadow-img&#8221; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span>As soon as Google Sheets loads the data, the red speck disappears. You\u2019ll notice the data extends from the formula cell (B3) to right and also further down.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/Google-Sheets-importdata-4.png&#8221; alt=&#8221;Google Sheets importdata 4&#8243; title_text=&#8221;Google Sheets importdata 4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span>So, it is of utmost importance that we keep the expected real estate of the result clear of any preoccupied values. Otherwise, IMPORTDATA formula might cough up a #REF! error. For example, following image explains what could happen, if we had any values, for instance, in cell\u00a0C9.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/Google-Sheets-importdata-5.png&#8221; alt=&#8221;Google Sheets importdata 5&#8243; title_text=&#8221;Google Sheets importdata 5&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h5>Case # 2: IMPORTDATA(reference to a cell where url is stored)<\/h5>\n<p>Here, we have already\u00a0stored the<span>\u00a0<\/span><span><strong>url<\/strong>\u00a0<\/span>to the .csv in the cell B1. So, we\u2019ll use that cell to refer in the IMPORTDATA formula, and the result is same as that of\u00a0the first case.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/Google-Sheets-importdata-6.png&#8221; alt=&#8221;Google Sheets importdata 6&#8243; title_text=&#8221;Google Sheets importdata 6&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span>Learn in\u00a0<\/span><a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-features\/import-rss-feed-to-google-sheets\/\" target=\"_blank\" rel=\"noopener noreferrer\">this blog post<\/a><span>\u00a0how to easily\u00a0<\/span>import RSS feed to Google Sheets.<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The\u00a0IMPORTDATA\u00a0formula in Google Sheets is quite a handy tool. It helps us fetch data, that is stored\u00a0in\u00a0.csv (comma separated values)\u00a0or\u00a0.tsv (tab separated values)\u00a0files, from a location on the web. Syntax IMPORTDATA(url) url\u00a0\u2013 this is the address (uniform resource locator) on the web, where the .csv file or .tsv file is located.\u00a0This can take two forms. [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":4070,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"on","_et_pb_old_content":"The <a href=\"https:\/\/support.google.com\/docs\/answer\/3093335?hl=en\">IMPORTDATA<\/a>\u00a0formula in Google Sheets is quite a handy tool. It helps us fetch data, that is stored\u00a0in .csv (comma separated values) or .tsv (tab separated values) files, from a location on the web.\n<h3>Syntax<\/h3>\n<strong><span style=\"font-family: 'courier new', courier, monospace; font-size: 14pt;\">IMPORTDATA(url)<\/span><\/strong>\n<ul>\n \t<li><span style=\"font-size: 12pt; font-family: 'courier new', courier, monospace;\"><strong>url<\/strong><\/span> - this is the address (uniform resource locator) on the web, where the .csv file or .tsv file is located.\u00a0This can take two forms.\n<ul>\n \t<li>A valid and fully qualified location in the form of text (enclosed in double quotes). For example: <strong><span style=\"font-family: 'courier new', courier, monospace; font-size: 12pt;\">\"http:\/\/www.census.gov\/2010census\/csv\/pop_change.csv\"<\/span><\/strong><\/li>\n \t<li>Or it can be a reference to a cell (like <span style=\"font-family: 'courier new', courier, monospace; font-size: 12pt;\"><strong>B1<\/strong><\/span>) within Google Sheets, where the url is stored.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\nIt might be useful to note that Google Sheets accommodates up to 50 IMPORTDATA formulas on a single spreadsheet.\n<h3>Usage: IMPORTDATA Formula<\/h3>\n<h5>Case # 1: IMPORTDATA(\"location of the csv or tsv file located on the web\")<\/h5>\nIn the\u00a0snapshot below, we are trying to import the data into the cell B3, which therefore becomes the destination to key in the IMPORTDATA formula.\n\n<img class=\"aligncenter size-full wp-image-2536\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/importdata1.png\" alt=\"IMPORTDATA Formula - Illustration 1\" width=\"640\" height=\"314\" \/>\n\nWe ensure the <span style=\"font-size: 12pt; font-family: 'courier new', courier, monospace;\"><strong>url<\/strong><\/span>\u00a0is valid, and then enter the formula properly (i.e. enclose <span style=\"font-family: 'courier new', courier, monospace; font-size: 12pt;\">url<\/span> within double quotes) and\u00a0hit the Enter key. Below\u00a0is what we see as Google Sheets tries to fetch the data. Bigger the file, the longer it takes to finish the data import.\n\n<img class=\"aligncenter size-full wp-image-2540\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/importdata2.png\" alt=\"IMPORTDATA Formula - Illustration 2\" width=\"572\" height=\"119\" \/>\n\nWhile the data import is in progress, the cell in which we keyed in the formula, looks like it\u00a0returned an error (as indicated by a little red speck on the top right corner of the cell). But, it isn't an error, just a transient state. Hover the mouse on the cell, to see the following description.\n\n<img class=\"aligncenter size-full wp-image-2538\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/importdata3.png\" alt=\"IMPORTDATA Formula - Illustration 3\" width=\"540\" height=\"162\" \/>\n\nAs soon as Google Sheets loads the data, the red speck disappears. You'll notice the data extends from the formula cell (B3) to right and also further down.\n\n<img class=\"aligncenter size-full wp-image-2539\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/importdata4.png\" alt=\"IMPORTDATA Formula - Illustration 4\" width=\"1274\" height=\"512\" \/>\n\nSo, it is of utmost importance that we keep the expected real estate of the result,\u00a0clear of any preoccupied values. Otherwise, IMPORTDATA formula might cough up a #REF! error. For example, following image explains what could happen, if we had any values, for instance, in cell\u00a0C9.\n\n<img class=\"aligncenter size-full wp-image-2545\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/importdata5.png\" alt=\"IMPORTDATA Formula - Illustration 5\" width=\"570\" height=\"252\" \/>\n\n\u00a0\n<h5>Case # 2: IMPORTDATA(reference to a cell where url is stored)<\/h5>\nHere, we have already\u00a0stored the <span style=\"font-family: 'courier new', courier, monospace; font-size: 12pt;\"><strong>url<\/strong> <\/span>to the .csv in the cell B1. So, we'll use that cell to refer in the IMPORTDATA formula, and the result is same as that of\u00a0the first case.\n\n<img class=\"aligncenter size-full wp-image-2543\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/importdata6.png\" alt=\"IMPORTDATA Formula - Illustration 6\" width=\"1273\" height=\"558\" \/>\n\n\u00a0","_et_gb_content_width":"","footnotes":""},"categories":[54],"tags":[39,28],"class_list":["post-2534","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google-sheets-formulas","tag-connections-t","tag-spreadsheets"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/posts\/2534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/comments?post=2534"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/posts\/2534\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/media\/4070"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/media?parent=2534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/categories?post=2534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/tags?post=2534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}