If you are responsible for analysing a list of URL’s in Excel, then you may need to extract the domain from each URL. After extracting the domain you can perform useful reporting tasks such as grouping the domains, or counting the number of unique domains in the list.
This can be quite a difficult task especially if the URL’s are not consistent. In this article we explore a few different approaches to extract the domain from a URL. The method you choose will depend on the appearance of the URL’s in the list and the format you would like to extract the domain in.
This article covers;
- Extract the domain including the URL protocol.
- Extract the domain ignoring URL protocol.
- Extract the domain without the www.
- Extract root URL’s that don’t end with a slash (/).
- Using helper columns to break up complex formulae.