Last Updated on March 4, 2020
Updated July 2022: Stop getting error messages and slow down your system with our optimization tool. Get it now at this link
- Download and install the repair tool here.
- Let it scan your computer.
- The tool will then repair your computer.
If you are always dealing with many URLs in your workbook, you should sometimes extract only the domain name of each web page. How can I quickly find domain names from URLs in Excel?
People who work with the internet and websites have an infinite database to manage. When your boss hands you a file (from whatever source) containing thousands of URLs and tells you to “manage this data”, the first task is to extract the domain names from the URLs.
Extract the Domain Name from the URL with the Formula
The following long formula can help you to restore the website domain name as you need it. Please proceed as follows:
Enter the following formula in an empty cell next to the cell of your web page In this example, I will enter the formula in cell B2:
Note In the above formula, A2 indicates the cell that contains the Web page whose domain name you want to obtain. You can change it if necessary.
Then press the Enter key and select cell B2, drag the fill handle down to the area where you want to apply this formula, and all domain names are extracted from each URL.
To extract the Domain Name from a URL that does not Contain HTTP(S)
Starting from the center (MID) of cell A2, find the first occurrence of a specific character (here “://”) in cell A2. Add +3 characters to the return value of the search formula (this way, the double slash is omitted). The second step is to search for another specific character (here “/”) in cell A2 starting with the 9th character (this way, the protocol bit is omitted up to the first two slashes). Finally, subtract (-) the returned value from a search for “://” in cell A2 and delete (-) the last three characters of the returned value.
To Extract the Domain Name from a URL that does not Contain HTTP(S) and www
Starting from the center (MID) of a text string, SUBSTITUTE in cell A2 the subdomain “www” with nothing (“””). Find the first occurrence of “:” in cell A2. Add +3 characters to the returned value (omitting the double slash). Perform a second SEARCH, this time looking for “/” in the returned value when you enter the subdomain “www” with nothing (“””) SUBSTITUTE in cell A2, and specify that the search should start from the 9th character (again omitting the protocol bit and up to the first two slashes). Finally, subtract (-) the returned value of a search from “://” in cell A2 and remove (-) the last 3 characters of the returned value.
Expert Tip: This repair tool scans the repositories and replaces corrupt or missing files if none of these methods have worked. It works well in most cases where the problem is due to system corruption. This tool will also optimize your system to maximize performance. It can be downloaded by Clicking Here
CCNA, Web Developer, PC Troubleshooter
I am a computer enthusiast and a practicing IT Professional. I have years of experience behind me in computer programming, hardware troubleshooting and repair. I specialise in Web Development and Database Design. I also have a CCNA certification for Network Design and Troubleshooting.