{"id":79,"date":"2023-08-22T17:02:03","date_gmt":"2023-08-22T10:02:03","guid":{"rendered":"https:\/\/viet.im\/blog\/?p=79"},"modified":"2023-08-23T11:27:15","modified_gmt":"2023-08-23T04:27:15","slug":"convert-external-link-in-excel-file-to-human-readable-format","status":"publish","type":"post","link":"https:\/\/viet.im\/blog\/convert-external-link-in-excel-file-to-human-readable-format\/","title":{"rendered":"Convert external link in Excel file to human-readable format"},"content":{"rendered":"<p>Linking to other workbooks is a very common task in Excel. There are several ways to create an external reference (also called a link) to a cell range in another workbook.<\/p>\n<p>According to <a href=\"https:\/\/support.microsoft.com\/en-us\/office\/create-an-external-reference-link-to-a-cell-range-in-another-workbook-c98d1803-dd75-4668-ac6a-d7cca2a9b95f\">Microsoft&#8217;s support website<\/a>, an external reference is a reference to a cell or range on a worksheet in another Excel workbook, or a reference to a defined name in another workbook.<\/p>\n<p>When an external reference is created, part of the other Excel workbook that is linked to will also be stored in the working workbook. Here is an example to visualize this.<\/p>\n<p>First I have workbook <span style=\"font-family: 'Courier New', Courier;\">Book1<\/span> with some data (randomly generated by <a href=\"https:\/\/www.databasetestdata.com\/\">DatabaseTestData.com<\/a>).<\/p>\n<p><a href=\"https:\/\/viet.im\/blog\/?attachment_id=80\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-80 size-medium\" src=\"https:\/\/viet.im\/blog\/wp-content\/uploads\/2023\/08\/Excel_1-300x232.png\" alt=\"\" width=\"300\" height=\"232\" srcset=\"https:\/\/viet.im\/blog\/wp-content\/uploads\/2023\/08\/Excel_1-300x232.png 300w, https:\/\/viet.im\/blog\/wp-content\/uploads\/2023\/08\/Excel_1-700x542.png 700w, https:\/\/viet.im\/blog\/wp-content\/uploads\/2023\/08\/Excel_1.png 710w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>I&#8217;m going to do a VLOOKUP to find a value in workbook <span style=\"font-family: 'Courier New', Courier;\">Book2<\/span> that is possibly present in <span style=\"font-family: 'Courier New', Courier;\">Book1<\/span>.<\/p>\n<pre>=VLOOKUP(A2, [Book1.xlsx]Sheet1!$A$1:$E$101, 5, FALSE)<\/pre>\n<p>The result in <span style=\"font-family: 'Courier New', Courier;\">Book2<\/span>:<\/p>\n<p><a href=\"https:\/\/viet.im\/blog\/wp-content\/uploads\/2023\/08\/Excel_2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-81\" src=\"https:\/\/viet.im\/blog\/wp-content\/uploads\/2023\/08\/Excel_2-300x192.png\" alt=\"\" width=\"300\" height=\"192\" srcset=\"https:\/\/viet.im\/blog\/wp-content\/uploads\/2023\/08\/Excel_2-300x192.png 300w, https:\/\/viet.im\/blog\/wp-content\/uploads\/2023\/08\/Excel_2-700x448.png 700w, https:\/\/viet.im\/blog\/wp-content\/uploads\/2023\/08\/Excel_2-768x491.png 768w, https:\/\/viet.im\/blog\/wp-content\/uploads\/2023\/08\/Excel_2.png 860w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>I saved <span style=\"font-family: 'Courier New', Courier;\">Book2<\/span> without breaking the link to <span style=\"font-family: 'Courier New', Courier;\">Book1<\/span>. Then I might either move <span style=\"font-family: 'Courier New', Courier;\">Book1<\/span> to another folder, or even delete <span style=\"font-family: 'Courier New', Courier;\">Book1<\/span> completely. So now <span style=\"font-family: 'Courier New', Courier;\">Book2<\/span> has an external reference to a non-existent workbook.<\/p>\n<p>Next time if I run the same VLOOKUP formula again in <span style=\"font-family: 'Courier New', Courier;\">Book2<\/span>, it can still work, although not all look-up value can be returned and Excel will ask me to locate <span style=\"font-family: 'Courier New', Courier;\">Book1<\/span>.<\/p>\n<p>The reason is, after Excel completed running the VLOOKUP formula, it also puts the data of <span style=\"font-family: 'Courier New', Courier;\">Book1<\/span> (from cell <span style=\"font-family: 'Courier New', Courier;\">$A$1<\/span> to cell <span style=\"font-family: 'Courier New', Courier;\">$E$101<\/span> in the worksheet <span style=\"font-family: 'Courier New', Courier;\">Sheet1<\/span>) into <span style=\"font-family: 'Courier New', Courier;\">Book2<\/span> itself. When Excel cannot locate the external reference, it will use the data within the current workbook instead.<\/p>\n<p>I changed the file extension of <span style=\"font-family: 'Courier New', Courier;\">Book2<\/span> from XLSX to ZIP and unpack the file to see what&#8217;s inside. There is a subfolder there under <strong>xl\\externalLinks\\<\/strong> and this is where Excel stores the data of the external reference. There will be 1 or more files named <strong>externalLink*.xml<\/strong>, in which <strong>*<\/strong> is the number of external references of the workbook.<\/p>\n<p><a href=\"https:\/\/viet.im\/blog\/wp-content\/uploads\/2023\/08\/Excel_3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-82\" src=\"https:\/\/viet.im\/blog\/wp-content\/uploads\/2023\/08\/Excel_3-300x113.png\" alt=\"\" width=\"300\" height=\"113\" data-wp-editing=\"1\" srcset=\"https:\/\/viet.im\/blog\/wp-content\/uploads\/2023\/08\/Excel_3-300x113.png 300w, https:\/\/viet.im\/blog\/wp-content\/uploads\/2023\/08\/Excel_3.png 690w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>I wrote a simple script to convert these XML files into readable format, which later can be opened by Excel also. Here is a sample result:<\/p>\n<p><a href=\"https:\/\/viet.im\/blog\/wp-content\/uploads\/2023\/08\/Excel_4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-83\" src=\"https:\/\/viet.im\/blog\/wp-content\/uploads\/2023\/08\/Excel_4-300x232.png\" alt=\"\" width=\"300\" height=\"232\" srcset=\"https:\/\/viet.im\/blog\/wp-content\/uploads\/2023\/08\/Excel_4-300x232.png 300w, https:\/\/viet.im\/blog\/wp-content\/uploads\/2023\/08\/Excel_4-700x542.png 700w, https:\/\/viet.im\/blog\/wp-content\/uploads\/2023\/08\/Excel_4.png 710w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>As shown in above image, all of the data of the external reference <span style=\"font-family: 'Courier New', Courier;\">Book1<\/span> are there within <span style=\"font-family: 'Courier New', Courier;\">Book2<\/span>, which is very handy if somehow <span style=\"font-family: 'Courier New', Courier;\">Book1<\/span> becomes unavailable and we need to do something in <span style=\"font-family: 'Courier New', Courier;\">Book2<\/span>. However, if more and more external references present, the file size of the workbook will also become bigger.<\/p>\n<p>Below is the script that I used. Just save the file as HTML file, open it using the latest version of your browser and follow the instruction there.<\/p>\n<p><script src=\"https:\/\/gist.github.com\/nviet\/caf9035502fa52942c638e82374530eb.js\"><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linking to other workbooks is a very common task in Excel. There are several ways to create an external reference (also called a link) to a cell range in another workbook. According to Microsoft&#8217;s support website, an external reference is a reference to a cell or range on a worksheet in another Excel workbook, or a reference to a defined&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":81,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cybocfi_hide_featured_image":"yes","_jetpack_memberships_contains_paid_content":false,"footnotes":"","_wp_rev_ctl_limit":""},"categories":[1],"tags":[],"class_list":["post-79","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Convert external link in Excel file to human-readable format - Viet&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/viet.im\/blog\/convert-external-link-in-excel-file-to-human-readable-format\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Convert external link in Excel file to human-readable format - Viet&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"Linking to other workbooks is a very common task in Excel. There are several ways to create an external reference (also called a link) to a cell range in another workbook. According to Microsoft&#8217;s support website, an external reference is a reference to a cell or range on a worksheet in another Excel workbook, or a reference to a defined&#046;&#046;&#046;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/viet.im\/blog\/convert-external-link-in-excel-file-to-human-readable-format\/\" \/>\n<meta property=\"og:site_name\" content=\"Viet&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-22T10:02:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-23T04:27:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/viet.im\/blog\/wp-content\/uploads\/2023\/08\/Excel_2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"860\" \/>\n\t<meta property=\"og:image:height\" content=\"550\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Viet\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Viet\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/viet.im\/blog\/convert-external-link-in-excel-file-to-human-readable-format\/\",\"url\":\"https:\/\/viet.im\/blog\/convert-external-link-in-excel-file-to-human-readable-format\/\",\"name\":\"Convert external link in Excel file to human-readable format - Viet&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/viet.im\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/viet.im\/blog\/convert-external-link-in-excel-file-to-human-readable-format\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/viet.im\/blog\/convert-external-link-in-excel-file-to-human-readable-format\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/viet.im\/blog\/wp-content\/uploads\/2023\/08\/Excel_2.png\",\"datePublished\":\"2023-08-22T10:02:03+00:00\",\"dateModified\":\"2023-08-23T04:27:15+00:00\",\"author\":{\"@id\":\"https:\/\/viet.im\/blog\/#\/schema\/person\/0f7d8f880ca4892bf08c50b02c35809b\"},\"breadcrumb\":{\"@id\":\"https:\/\/viet.im\/blog\/convert-external-link-in-excel-file-to-human-readable-format\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/viet.im\/blog\/convert-external-link-in-excel-file-to-human-readable-format\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/viet.im\/blog\/convert-external-link-in-excel-file-to-human-readable-format\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/viet.im\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Convert external link in Excel file to human-readable format\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/viet.im\/blog\/#website\",\"url\":\"https:\/\/viet.im\/blog\/\",\"name\":\"Viet&#039;s Blog\",\"description\":\"-\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/viet.im\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/viet.im\/blog\/#\/schema\/person\/0f7d8f880ca4892bf08c50b02c35809b\",\"name\":\"Viet\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/viet.im\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/36c308454c1e52331326d520483707bdd317dca24a5b16686d04023eaeb1240d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/36c308454c1e52331326d520483707bdd317dca24a5b16686d04023eaeb1240d?s=96&d=mm&r=g\",\"caption\":\"Viet\"},\"sameAs\":[\"https:\/\/viet.im\/blog\"],\"url\":\"https:\/\/viet.im\/blog\/author\/viet\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Convert external link in Excel file to human-readable format - Viet&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/viet.im\/blog\/convert-external-link-in-excel-file-to-human-readable-format\/","og_locale":"en_US","og_type":"article","og_title":"Convert external link in Excel file to human-readable format - Viet&#039;s Blog","og_description":"Linking to other workbooks is a very common task in Excel. There are several ways to create an external reference (also called a link) to a cell range in another workbook. According to Microsoft&#8217;s support website, an external reference is a reference to a cell or range on a worksheet in another Excel workbook, or a reference to a defined&#46;&#46;&#46;","og_url":"https:\/\/viet.im\/blog\/convert-external-link-in-excel-file-to-human-readable-format\/","og_site_name":"Viet&#039;s Blog","article_published_time":"2023-08-22T10:02:03+00:00","article_modified_time":"2023-08-23T04:27:15+00:00","og_image":[{"width":860,"height":550,"url":"https:\/\/viet.im\/blog\/wp-content\/uploads\/2023\/08\/Excel_2.png","type":"image\/png"}],"author":"Viet","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Viet","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/viet.im\/blog\/convert-external-link-in-excel-file-to-human-readable-format\/","url":"https:\/\/viet.im\/blog\/convert-external-link-in-excel-file-to-human-readable-format\/","name":"Convert external link in Excel file to human-readable format - Viet&#039;s Blog","isPartOf":{"@id":"https:\/\/viet.im\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/viet.im\/blog\/convert-external-link-in-excel-file-to-human-readable-format\/#primaryimage"},"image":{"@id":"https:\/\/viet.im\/blog\/convert-external-link-in-excel-file-to-human-readable-format\/#primaryimage"},"thumbnailUrl":"https:\/\/viet.im\/blog\/wp-content\/uploads\/2023\/08\/Excel_2.png","datePublished":"2023-08-22T10:02:03+00:00","dateModified":"2023-08-23T04:27:15+00:00","author":{"@id":"https:\/\/viet.im\/blog\/#\/schema\/person\/0f7d8f880ca4892bf08c50b02c35809b"},"breadcrumb":{"@id":"https:\/\/viet.im\/blog\/convert-external-link-in-excel-file-to-human-readable-format\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/viet.im\/blog\/convert-external-link-in-excel-file-to-human-readable-format\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/viet.im\/blog\/convert-external-link-in-excel-file-to-human-readable-format\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/viet.im\/blog\/"},{"@type":"ListItem","position":2,"name":"Convert external link in Excel file to human-readable format"}]},{"@type":"WebSite","@id":"https:\/\/viet.im\/blog\/#website","url":"https:\/\/viet.im\/blog\/","name":"Viet&#039;s Blog","description":"-","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/viet.im\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/viet.im\/blog\/#\/schema\/person\/0f7d8f880ca4892bf08c50b02c35809b","name":"Viet","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/viet.im\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/36c308454c1e52331326d520483707bdd317dca24a5b16686d04023eaeb1240d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/36c308454c1e52331326d520483707bdd317dca24a5b16686d04023eaeb1240d?s=96&d=mm&r=g","caption":"Viet"},"sameAs":["https:\/\/viet.im\/blog"],"url":"https:\/\/viet.im\/blog\/author\/viet\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/viet.im\/blog\/wp-content\/uploads\/2023\/08\/Excel_2.png","_links":{"self":[{"href":"https:\/\/viet.im\/blog\/wp-json\/wp\/v2\/posts\/79","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/viet.im\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/viet.im\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/viet.im\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/viet.im\/blog\/wp-json\/wp\/v2\/comments?post=79"}],"version-history":[{"count":3,"href":"https:\/\/viet.im\/blog\/wp-json\/wp\/v2\/posts\/79\/revisions"}],"predecessor-version":[{"id":87,"href":"https:\/\/viet.im\/blog\/wp-json\/wp\/v2\/posts\/79\/revisions\/87"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/viet.im\/blog\/wp-json\/wp\/v2\/media\/81"}],"wp:attachment":[{"href":"https:\/\/viet.im\/blog\/wp-json\/wp\/v2\/media?parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/viet.im\/blog\/wp-json\/wp\/v2\/categories?post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/viet.im\/blog\/wp-json\/wp\/v2\/tags?post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}