{"id":2677,"date":"2017-03-01T11:38:48","date_gmt":"2017-03-01T14:38:48","guid":{"rendered":"https:\/\/importsheet.com\/?p=2677"},"modified":"2017-03-01T11:38:48","modified_gmt":"2017-03-01T14:38:48","slug":"importfeed-formula-google-sheets","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/fr\/blog\/google-sheets-formulas\/importfeed-formula-google-sheets\/","title":{"rendered":"Comment utiliser la formule IMPORT\u00c9E dans Google Sheets ?"},"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.20.2&#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; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>With the IMPORTFEED\u00a0formula, we can<span>\u00a0<\/span>import data from RSS and Atom feeds into Google Sheets.<\/p>\n<h3>Syntax<\/h3>\n<p><span><strong>IMPORTFEED(url, [query], [headers], [num_items])<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li><span><strong>url<\/strong><\/span><span>\u00a0<\/span>\u2013 this is the address (uniform resource locator) to the HTML page on the web, where the table or list that we are looking to import are 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>\u201chttp:\/\/news.google.com\/?output=atom\u201d<\/strong><\/li>\n<li>Or it can be a reference to a cell (like<span>\u00a0<\/span><strong>B1<\/strong>) within Google Sheets, where the<span>\u00a0<\/span><span><strong>url<\/strong><\/span><span>\u00a0<\/span>is stored.<\/li>\n<\/ul>\n<\/li>\n<li><span><strong>query<\/strong><\/span><span>\u00a0<\/span>\u2013 this optional parameter specifies what data to fetch from the<span>\u00a0<\/span><span><strong>url<\/strong><\/span>. For the list of available query options, check out this<span>\u00a0<\/span><a href=\"https:\/\/support.google.com\/docs\/answer\/3093337?hl=en\" target=\"_blank\" rel=\"noopener noreferrer\">link<\/a>. By default, if no query parameter is defined, IMPORTFEED formula<\/li>\n<li><span><strong>headers<\/strong><\/span><span>\u00a0<\/span>\u2013 Optional indicator that specifies whether the column headers should be included in the data import or not. It is<span>\u00a0<\/span><span><strong>FALSE<\/strong><\/span><span>\u00a0<\/span>by default.<\/li>\n<li><span><strong>num_items<\/strong><\/span><span>\u00a0<\/span>\u2013 optional parameter that specifies the number of items to fetch, starting from the most recent. If we don\u2019t specify this parameter, Google Sheets returns all the items published on the channel feed.\u00a0<\/li>\n<\/ul>\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: IMPORTFEED Formula<\/h3>\n<h5>Case # 1: IMPORTFEED(url)<\/h5>\n<p>In the\u00a0snapshot below, we are trying to import the data into the cell B3, which therefore becomes the destination to key in the IMPORTFEED formula.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/importfeed-1-1.png&#8221; alt=&#8221;importfeed 1&#8243; title_text=&#8221;importfeed 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<strong>\u00a0<\/strong><\/span>url<span>\u00a0is valid, i.e. enclose\u00a0<\/span>url<span>\u00a0within\u00a0<\/span><strong>double quotes<\/strong><span>\u00a0and\u00a0hit the\u00a0<\/span><strong>Enter\u00a0<\/strong><span>key. Below\u00a0is what we see as Google Sheets tries to fetch the data. The larger the feed, the longer it might take 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\/importfeed2.png&#8221; alt=&#8221;Importfeed in Google Sheets&#8221; title_text=&#8221;importfeed-google-sheets&#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. Please note a little red speck on the top right corner of the cell. However, it isn\u2019t an error, but a\u00a0<\/span><strong>transient state<\/strong><span>. 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\/importfeed3.png&#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\/importfeed-4.png&#8221; alt=&#8221;importfeed 4&#8243; title_text=&#8221;importfeed 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\u00a0<\/span>keep the expected real estate of the result,\u00a0clear of any preoccupied values<span>. Otherwise, IMPORTFEED 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\/importfeed-5.png&#8221; alt=&#8221;importfeed 5&#8243; title_text=&#8221;importfeed 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: IMPORTFEED(url cell reference, titles of the items, include headers, fetch 20 items)<\/h5>\n<p>Here, in the cell B1, we have stored the<span>\u00a0<\/span><strong>URL<\/strong><span>\u00a0<\/span>to the RSS feed from which we are trying to import data. So, we\u2019ll use that cell to refer in the IMPORTFEED formula.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/importfeed-6.png&#8221; alt=&#8221;importfeed 6&#8243; title_text=&#8221;importfeed 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>This is how you use the IMPORTFEED formula in Google Sheets. If you want to read more about the formula, you can check out the\u00a0<\/span><a href=\"https:\/\/support.google.com\/docs\/answer\/3093337?hl=en\" target=\"_blank\" rel=\"noopener noreferrer\">Google support page<\/a><span>. If you want to know how to import data from .csv or .tsv files from the web, check out the following\u00a0<\/span><a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/importdata-formula-google-sheets\/\" target=\"_blank\" rel=\"noopener noreferrer\">blog post<\/a><span>.<\/span><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the IMPORTFEED\u00a0formula, we can\u00a0import data from RSS and Atom feeds into Google Sheets. Syntax IMPORTFEED(url, [query], [headers], [num_items]) &nbsp; url\u00a0\u2013 this is the address (uniform resource locator) to the HTML page on the web, where the table or list that we are looking to import are located.\u00a0This can take two forms. A valid and [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":4238,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"on","_et_pb_old_content":"With <a href=\"https:\/\/support.google.com\/docs\/answer\/3093337?hl=en\">IMPORTFEED<\/a> formula, we can import data from RSS and Atom feeds into Google Sheets.\n<h3>Syntax<\/h3>\n<span style=\"font-family: courier new,courier,monospace; font-size: 14pt;\"><strong>IMPORTFEED(url, [query], [headers], [num_items])<\/strong><\/span>\n\n\u00a0\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) to the HTML page on the web, where the table or list that we are looking to import are 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>\u201chttp:\/\/news.google.com\/?output=atom\u201d<\/strong><\/li>\n \t<li>Or it can be a reference to a cell (like <strong>B1<\/strong>) within Google Sheets, where the <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>url<\/strong><\/span> is stored.<\/li>\n<\/ul>\n<\/li>\n \t<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>query<\/strong><\/span> - this optional parameter specifies what data to fetch from the <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>url<\/strong><\/span>. For the list of available query options, check out this <a href=\"https:\/\/support.google.com\/docs\/answer\/3093337?hl=en\">link<\/a>. By default, if no query parameter is defined, IMPORTFEED formula<\/li>\n \t<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>headers<\/strong><\/span> - Optional indicator that specifies whether the column headers should be included in the data import or not. It is <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>FALSE<\/strong><\/span> by default.<\/li>\n \t<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>num_items<\/strong><\/span> - optional parameter that specifies the number of items to fetch, starting from the most recent. If we don't specify this parameter, Google Sheets returns all the items published on the channel feed.<\/li>\n<\/ul>\n<h3>Usage: IMPORTFEED Formula<\/h3>\n<h5>Case # 1: IMPORTFEED(url)<\/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 IMPORTFEED formula.\n\n<img class=\"aligncenter size-full wp-image-2679\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/importfeed.png\" alt=\"IMPORTFEED Formula - Illustration 1\" width=\"553\" height=\"433\" \/>\n\nWe ensure the <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>url<\/strong><\/span>\u00a0is valid, i.e. enclose <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>url<\/strong><\/span> within double quotes and\u00a0hit the Enter key. Below\u00a0is what we see as Google Sheets tries to fetch the data. Larger the feed, the longer it might take to finish the data import.\n\n<img class=\"aligncenter size-full wp-image-2680\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/importfeed2.png\" alt=\"IMPORTFEED Formula - Illustration 2\" width=\"451\" height=\"134\" \/>\n\nWhile the data import is in progress, the cell in which we keyed in the formula, looks like it\u00a0returned an error. Please note a little red speck on the top right corner of the cell. But, it isn\u2019t an error, but a transient state. Hover the mouse on the cell, to see the following description.\n\n<img class=\"aligncenter size-full wp-image-2681\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/importfeed3.png\" alt=\"IMPORTFEED Formula - Illustration 3\" width=\"555\" height=\"159\" \/>\n\nAs 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.\n\n<img class=\"aligncenter size-full wp-image-2682\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/imporfeed4.png\" alt=\"IMPORTFEED Formula - Illustration 4\" width=\"958\" height=\"598\" \/>\n\nSo, it is of utmost importance that we keep the expected real estate of the result,\u00a0clear of any preoccupied values. Otherwise, IMPORTFEED 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-2684\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/importfeed5.png\" alt=\"IMPORTFEED Formula - Illustration 5\" width=\"554\" height=\"241\" \/>\n<h5>Case # 2: IMPORTFEED(url cell reference, titles of the items, include headers, fetch 20 items)<\/h5>\nHere, in the cell B1, we have stored the <strong>url<\/strong> to the RSS feed from which we are trying to import data. So, we\u2019ll use that cell to refer in the IMPORTFEED formula.\n\n<img class=\"aligncenter size-full wp-image-2685\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/importfeed6.png\" alt=\"IMPORTFEED Formula - Illustration 6\" width=\"958\" height=\"536\" \/>\n\n\u00a0","_et_gb_content_width":"","footnotes":""},"categories":[54],"tags":[39,28],"class_list":["post-2677","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\/fr\/wp-json\/wp\/v2\/posts\/2677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/comments?post=2677"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/posts\/2677\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/media\/4238"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/media?parent=2677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/categories?post=2677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/tags?post=2677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}