{"id":52345,"date":"2025-02-27T20:57:30","date_gmt":"2025-02-27T19:57:30","guid":{"rendered":"https:\/\/blog.sheetgo.com\/?p=52345"},"modified":"2025-06-03T22:08:18","modified_gmt":"2025-06-03T20:08:18","slug":"previsualisation-dimages-en-ligne-feuilles-de-calcul","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/fr\/blog\/google-sheets-features\/inline-image-previews-spreadsheets\/","title":{"rendered":"Automatiser les aper\u00e7us d'images en ligne dans votre feuille de calcul"},"content":{"rendered":"\n[et_pb_section fb_built=&#8221;1&#8243; theme_builder_area=&#8221;post_content&#8221; _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221;][et_pb_row _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; type=&#8221;4_4&#8243; theme_builder_area=&#8221;post_content&#8221;][et_pb_text _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; theme_builder_area=&#8221;post_content&#8221; hover_enabled=&#8221;0&#8243; sticky_enabled=&#8221;0&#8243;]<p><span style=\"font-weight: 400;\">Managing visual data alongside text records can be tricky\u2014especially when working with images stored in Google Drive. If your spreadsheet lists <\/span><b>image file names in Column A<\/b><span style=\"font-weight: 400;\"> and their <\/span><b>Google Drive URLs in Column B<\/b><span style=\"font-weight: 400;\">, you can automate inline previews directly in your sheet. Here\u2019s how.<\/span><\/p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; theme_builder_area=&#8221;post_content&#8221; hover_enabled=&#8221;0&#8243; sticky_enabled=&#8221;0&#8243;]<h2><b>The setup<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Let\u2019s say you have a structured spreadsheet:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Column A<\/b><span style=\"font-weight: 400;\"> \u2013 The exact file name of each image (matching its Google Drive name).<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Column B<\/b><span style=\"font-weight: 400;\"> \u2013 The full Google Drive URL of each image.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Instead of manually clicking each URL, you can automate image previews using a simple <\/span><b>Google Sheets formula<\/b><span style=\"font-weight: 400;\"> that combines the <\/span><span style=\"font-weight: 400;\">IMAGE<\/span><span style=\"font-weight: 400;\"> function and <\/span><span style=\"font-weight: 400;\">REGEXEXTRACT<\/span><span style=\"font-weight: 400;\">.<\/span><\/p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; theme_builder_area=&#8221;post_content&#8221; hover_enabled=&#8221;0&#8243; sticky_enabled=&#8221;0&#8243;]<h2><b>How to enable inline image previews<\/b><\/h2>\n<h3><b>1. Set up your spreadsheet<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Make sure your spreadsheet follows this structure:<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<p><span style=\"font-weight: 400;\">File Name\u00a0<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400;\">Google Drive URL\u00a0<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400;\">Image Preview\u00a0<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400;\">image1.jpg<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400;\">https:\/\/drive.google.com\/file\/d\/xyz123\/view<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400;\">(will display image preview)<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; theme_builder_area=&#8221;post_content&#8221; hover_enabled=&#8221;0&#8243; sticky_enabled=&#8221;0&#8243;]<h3><b>2. Extract the image id from Google Drive URLs<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Google Drive URLs contain a <\/span><b>unique image ID<\/b><span style=\"font-weight: 400;\">, which you need to extract for embedding. The standard format for displaying an image looks like this:<\/span><\/p>\n<h2>\n<\/h2>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; theme_builder_area=&#8221;post_content&#8221; hover_enabled=&#8221;0&#8243; sticky_enabled=&#8221;0&#8243; module_class=&#8221;spreadsheet-function&#8221;]<p><span style=\"font-weight: 400;\">=IMAGE(&#8220;https:\/\/drive.google.com\/uc?id=image-id&#8221;)<\/span><\/p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; theme_builder_area=&#8221;post_content&#8221; hover_enabled=&#8221;0&#8243; sticky_enabled=&#8221;0&#8243;]<h3><b>3. Automate image extraction with REGEX<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Since Column B contains the full URL, you can use the <\/span><span style=\"font-weight: 400;\">REGEXEXTRACT<\/span><span style=\"font-weight: 400;\"> function to isolate the image ID automatically. In Column C, enter this formula:<\/span><\/p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; theme_builder_area=&#8221;post_content&#8221; hover_enabled=&#8221;0&#8243; sticky_enabled=&#8221;0&#8243; module_class=&#8221;spreadsheet-function&#8221;]<p><span style=\"font-weight: 400;\">=IMAGE(&#8220;https:\/\/drive.google.com\/uc?id=&#8221;&amp;REGEXEXTRACT($B$2,&#8221;d\/([a-zA-Z0-9_-]+)&#8221;))<\/span><\/p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; theme_builder_area=&#8221;post_content&#8221; hover_enabled=&#8221;0&#8243; sticky_enabled=&#8221;0&#8243;]<h4><b>How this works:<\/b><\/h4>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>IMAGE<\/b><span style=\"font-weight: 400;\"> \u2013 Displays an image from a URL directly in a cell.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>REGEXEXTRACT(B2, &#8220;d\/([a-zA-Z0-9_-]+)&#8221;)<\/b><span style=\"font-weight: 400;\"> \u2013 Extracts the unique image ID from the URL in Column B.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>&amp;<\/b><b> (concatenation)<\/b><span style=\"font-weight: 400;\"> \u2013 Joins the extracted ID with the <\/span><span style=\"font-weight: 400;\">IMAGE<\/span><span style=\"font-weight: 400;\"> function\u2019s required URL format.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Here\u2019s the final result :\u00a0<\/span><span style=\"font-weight: 400;\"><br \/><\/span><\/p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2025\/02\/automate_inline_images_in_spreadsheets_1.webp&#8221; _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; theme_builder_area=&#8221;post_content&#8221; alt=&#8221;automate inline images in spreadsheets 1&#8243; title_text=&#8221;automate_inline_images_in_spreadsheets_1&#8243; hover_enabled=&#8221;0&#8243; sticky_enabled=&#8221;0&#8243;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; theme_builder_area=&#8221;post_content&#8221; hover_enabled=&#8221;0&#8243; sticky_enabled=&#8221;0&#8243;]<h2><b>Why this matters<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">By automating image previews, you <\/span><b>save time<\/b><span style=\"font-weight: 400;\">, <\/span><b>reduce errors<\/b><span style=\"font-weight: 400;\">, and create a more streamlined workflow. This method is perfect for managing <\/span><b>large datasets<\/b><span style=\"font-weight: 400;\"> efficiently\u2014helping you focus on insights instead of manual tasks.<\/span><\/p>\n<p><b>Start automating today for a smoother, smarter spreadsheet experience!<\/b><\/p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]\n","protected":false},"excerpt":{"rendered":"<p>Managing visual data alongside text records can be tricky\u2014especially when working with images stored in Google Drive. If your spreadsheet lists image file names in Column A and their Google Drive URLs in Column B, you can automate inline previews directly in your sheet. Here\u2019s how.The setup Let\u2019s say you have a structured spreadsheet: Column [&hellip;]<\/p>\n","protected":false},"author":48,"featured_media":44470,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[37],"tags":[],"class_list":["post-52345","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google-sheets-features"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/posts\/52345","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\/48"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/comments?post=52345"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/posts\/52345\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/media\/44470"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/media?parent=52345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/categories?post=52345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/tags?post=52345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}