{"id":65,"date":"2009-05-12T22:04:56","date_gmt":"2009-05-13T05:04:56","guid":{"rendered":"http:\/\/www.funk.co.nz\/blog\/?p=65"},"modified":"2011-07-07T15:01:58","modified_gmt":"2011-07-07T03:01:58","slug":"ms-excel-function-to-convert-url-into-domain-name","status":"publish","type":"post","link":"https:\/\/www.funk.co.nz\/blog\/seo\/ms-excel-function-to-convert-url-into-domain-name","title":{"rendered":"MS Excel function to convert URL into domain name"},"content":{"rendered":"<p>This function can be used to convert a URL such as http:\/\/www.funk.co.nz\/ into just www.funk.co.nz<\/p>\n<p>Here it is:<\/p>\n<p>=LEFT(RIGHT(C5,(LEN(C5)-7)),(SEARCH(\"\/\",RIGHT(C5,(LEN(C5)-7)))-1))<\/p>\n<p>Where cell C5 contains the URL, this formula should output just the domain name. If the URL is secure, you will need to increase the -7 to a -8 (http:\/\/ is 7 chars, whereas https:\/\/ is 8 chars).<\/p>\n<p><strong>Note<\/strong>: My blog software is converting the quotes so you will need to re-type the quote marks in the centre of the formula after pasting into Excel.<\/p>\n<p><strong>Enhanced Version that support https URLs:<\/strong><\/p>\n<p>=LEFT(RIGHT(A1,(LEN(A1)-if(isnumber(search(\"https\", A1)),\u00c2\u00a08,\u00c2\u00a07))),(SEARCH(\"\/\",RIGHT(A1,(LEN(A1)-if(isnumber(search(\"https\", A1)),\u00c2\u00a08,\u00c2\u00a07))))-1))<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This function can be used to convert a URL such as http:\/\/www.funk.co.nz\/ into just www.funk.co.nz Here it is: =LEFT(RIGHT(C5,(LEN(C5)-7)),(SEARCH(&#8220;\/&#8221;,RIGHT(C5,(LEN(C5)-7)))-1)) Where cell C5 contains the URL, this formula should output just the domain name. If the URL is secure, you will need to increase the -7 to a -8 (http:\/\/ is 7 chars, whereas https:\/\/ is [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,16],"tags":[],"class_list":["post-65","post","type-post","status-publish","format-standard","hentry","category-online-marketing","category-seo"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>MS Excel function to convert URL into domain name - The Funk 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:\/\/www.funk.co.nz\/blog\/seo\/ms-excel-function-to-convert-url-into-domain-name\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MS Excel function to convert URL into domain name - The Funk Blog\" \/>\n<meta property=\"og:description\" content=\"This function can be used to convert a URL such as http:\/\/www.funk.co.nz\/ into just www.funk.co.nz Here it is: =LEFT(RIGHT(C5,(LEN(C5)-7)),(SEARCH(&quot;\/&quot;,RIGHT(C5,(LEN(C5)-7)))-1)) Where cell C5 contains the URL, this formula should output just the domain name. If the URL is secure, you will need to increase the -7 to a -8 (http:\/\/ is 7 chars, whereas https:\/\/ is [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.funk.co.nz\/blog\/seo\/ms-excel-function-to-convert-url-into-domain-name\" \/>\n<meta property=\"og:site_name\" content=\"The Funk Blog\" \/>\n<meta property=\"article:published_time\" content=\"2009-05-13T05:04:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2011-07-07T03:01:58+00:00\" \/>\n<meta name=\"author\" content=\"tomachi\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"tomachi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.funk.co.nz\\\/blog\\\/seo\\\/ms-excel-function-to-convert-url-into-domain-name#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.funk.co.nz\\\/blog\\\/seo\\\/ms-excel-function-to-convert-url-into-domain-name\"},\"author\":{\"name\":\"tomachi\",\"@id\":\"https:\\\/\\\/www.funk.co.nz\\\/blog\\\/#\\\/schema\\\/person\\\/5e3b3851d9a5cbe644e6ccf190ea10f9\"},\"headline\":\"MS Excel function to convert URL into domain name\",\"datePublished\":\"2009-05-13T05:04:56+00:00\",\"dateModified\":\"2011-07-07T03:01:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.funk.co.nz\\\/blog\\\/seo\\\/ms-excel-function-to-convert-url-into-domain-name\"},\"wordCount\":137,\"commentCount\":0,\"articleSection\":[\"Online Marketing\",\"SEO\"],\"inLanguage\":\"en-NZ\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.funk.co.nz\\\/blog\\\/seo\\\/ms-excel-function-to-convert-url-into-domain-name#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.funk.co.nz\\\/blog\\\/seo\\\/ms-excel-function-to-convert-url-into-domain-name\",\"url\":\"https:\\\/\\\/www.funk.co.nz\\\/blog\\\/seo\\\/ms-excel-function-to-convert-url-into-domain-name\",\"name\":\"MS Excel function to convert URL into domain name - The Funk Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.funk.co.nz\\\/blog\\\/#website\"},\"datePublished\":\"2009-05-13T05:04:56+00:00\",\"dateModified\":\"2011-07-07T03:01:58+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.funk.co.nz\\\/blog\\\/#\\\/schema\\\/person\\\/5e3b3851d9a5cbe644e6ccf190ea10f9\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.funk.co.nz\\\/blog\\\/seo\\\/ms-excel-function-to-convert-url-into-domain-name#breadcrumb\"},\"inLanguage\":\"en-NZ\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.funk.co.nz\\\/blog\\\/seo\\\/ms-excel-function-to-convert-url-into-domain-name\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.funk.co.nz\\\/blog\\\/seo\\\/ms-excel-function-to-convert-url-into-domain-name#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.funk.co.nz\\\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MS Excel function to convert URL into domain name\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.funk.co.nz\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.funk.co.nz\\\/blog\\\/\",\"name\":\"The Funk Blog\",\"description\":\"The profound rantings of the one like Tom Atkinson... and now art gallery and shop.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.funk.co.nz\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-NZ\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.funk.co.nz\\\/blog\\\/#\\\/schema\\\/person\\\/5e3b3851d9a5cbe644e6ccf190ea10f9\",\"name\":\"tomachi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-NZ\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f3852adc4752b8dbdeb5e53ef14d50b7e30d76f3284b8f527c59e1d3efe5b170?s=96&d=monsterid&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f3852adc4752b8dbdeb5e53ef14d50b7e30d76f3284b8f527c59e1d3efe5b170?s=96&d=monsterid&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f3852adc4752b8dbdeb5e53ef14d50b7e30d76f3284b8f527c59e1d3efe5b170?s=96&d=monsterid&r=g\",\"caption\":\"tomachi\"},\"description\":\"Tomachi - drummer, composer, digital media and online marketing guru.\",\"sameAs\":[\"http:\\\/\\\/www.funk.co.nz\\\/\",\"https:\\\/\\\/x.com\\\/tomachi\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/tomachinz\\\/\",\"tomachi\"],\"url\":\"https:\\\/\\\/www.funk.co.nz\\\/blog\\\/author\\\/tomachi\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MS Excel function to convert URL into domain name - The Funk 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:\/\/www.funk.co.nz\/blog\/seo\/ms-excel-function-to-convert-url-into-domain-name","og_locale":"en_US","og_type":"article","og_title":"MS Excel function to convert URL into domain name - The Funk Blog","og_description":"This function can be used to convert a URL such as http:\/\/www.funk.co.nz\/ into just www.funk.co.nz Here it is: =LEFT(RIGHT(C5,(LEN(C5)-7)),(SEARCH(\"\/\",RIGHT(C5,(LEN(C5)-7)))-1)) Where cell C5 contains the URL, this formula should output just the domain name. If the URL is secure, you will need to increase the -7 to a -8 (http:\/\/ is 7 chars, whereas https:\/\/ is [&hellip;]","og_url":"https:\/\/www.funk.co.nz\/blog\/seo\/ms-excel-function-to-convert-url-into-domain-name","og_site_name":"The Funk Blog","article_published_time":"2009-05-13T05:04:56+00:00","article_modified_time":"2011-07-07T03:01:58+00:00","author":"tomachi","twitter_misc":{"Written by":"tomachi","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.funk.co.nz\/blog\/seo\/ms-excel-function-to-convert-url-into-domain-name#article","isPartOf":{"@id":"https:\/\/www.funk.co.nz\/blog\/seo\/ms-excel-function-to-convert-url-into-domain-name"},"author":{"name":"tomachi","@id":"https:\/\/www.funk.co.nz\/blog\/#\/schema\/person\/5e3b3851d9a5cbe644e6ccf190ea10f9"},"headline":"MS Excel function to convert URL into domain name","datePublished":"2009-05-13T05:04:56+00:00","dateModified":"2011-07-07T03:01:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.funk.co.nz\/blog\/seo\/ms-excel-function-to-convert-url-into-domain-name"},"wordCount":137,"commentCount":0,"articleSection":["Online Marketing","SEO"],"inLanguage":"en-NZ","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.funk.co.nz\/blog\/seo\/ms-excel-function-to-convert-url-into-domain-name#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.funk.co.nz\/blog\/seo\/ms-excel-function-to-convert-url-into-domain-name","url":"https:\/\/www.funk.co.nz\/blog\/seo\/ms-excel-function-to-convert-url-into-domain-name","name":"MS Excel function to convert URL into domain name - The Funk Blog","isPartOf":{"@id":"https:\/\/www.funk.co.nz\/blog\/#website"},"datePublished":"2009-05-13T05:04:56+00:00","dateModified":"2011-07-07T03:01:58+00:00","author":{"@id":"https:\/\/www.funk.co.nz\/blog\/#\/schema\/person\/5e3b3851d9a5cbe644e6ccf190ea10f9"},"breadcrumb":{"@id":"https:\/\/www.funk.co.nz\/blog\/seo\/ms-excel-function-to-convert-url-into-domain-name#breadcrumb"},"inLanguage":"en-NZ","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.funk.co.nz\/blog\/seo\/ms-excel-function-to-convert-url-into-domain-name"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.funk.co.nz\/blog\/seo\/ms-excel-function-to-convert-url-into-domain-name#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.funk.co.nz\/blog"},{"@type":"ListItem","position":2,"name":"MS Excel function to convert URL into domain name"}]},{"@type":"WebSite","@id":"https:\/\/www.funk.co.nz\/blog\/#website","url":"https:\/\/www.funk.co.nz\/blog\/","name":"The Funk Blog","description":"The profound rantings of the one like Tom Atkinson... and now art gallery and shop.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.funk.co.nz\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-NZ"},{"@type":"Person","@id":"https:\/\/www.funk.co.nz\/blog\/#\/schema\/person\/5e3b3851d9a5cbe644e6ccf190ea10f9","name":"tomachi","image":{"@type":"ImageObject","inLanguage":"en-NZ","@id":"https:\/\/secure.gravatar.com\/avatar\/f3852adc4752b8dbdeb5e53ef14d50b7e30d76f3284b8f527c59e1d3efe5b170?s=96&d=monsterid&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f3852adc4752b8dbdeb5e53ef14d50b7e30d76f3284b8f527c59e1d3efe5b170?s=96&d=monsterid&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f3852adc4752b8dbdeb5e53ef14d50b7e30d76f3284b8f527c59e1d3efe5b170?s=96&d=monsterid&r=g","caption":"tomachi"},"description":"Tomachi - drummer, composer, digital media and online marketing guru.","sameAs":["http:\/\/www.funk.co.nz\/","https:\/\/x.com\/tomachi","https:\/\/www.youtube.com\/user\/tomachinz\/","tomachi"],"url":"https:\/\/www.funk.co.nz\/blog\/author\/tomachi"}]}},"_links":{"self":[{"href":"https:\/\/www.funk.co.nz\/blog\/wp-json\/wp\/v2\/posts\/65","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.funk.co.nz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.funk.co.nz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.funk.co.nz\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.funk.co.nz\/blog\/wp-json\/wp\/v2\/comments?post=65"}],"version-history":[{"count":0,"href":"https:\/\/www.funk.co.nz\/blog\/wp-json\/wp\/v2\/posts\/65\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.funk.co.nz\/blog\/wp-json\/wp\/v2\/media?parent=65"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.funk.co.nz\/blog\/wp-json\/wp\/v2\/categories?post=65"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.funk.co.nz\/blog\/wp-json\/wp\/v2\/tags?post=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}