亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Table of Contents
Processing a list of URLs using the Domain name column
Group URLs by domain
Highlight the second and all subsequent URLs in the same domain
Compare your URLs from different tables by domain column
The best way is to merge two tables by domain name
Home Software Tutorial Office Software Extract domain names from a URL list in Excel

Extract domain names from a URL list in Excel

May 29, 2025 am 09:54 AM

A few suggestions and pieces of advice will help you obtain domain names from a list of URLs using Excel formulas. Two variations of the formula allow you to extract domain names with and without www., regardless of the URL protocol (http, https, ftp, etc., are supported). The solution works in all modern versions of Excel, from 2010 through 2016.

Extract domain names from a URL list in Excel

If you're focused on promoting your website (as I am) or conducting professional-level SEO for clients, you frequently need to handle and analyze large lists of URLs: Google Analytics reports on traffic sources, Webmaster tools reports on new links, reports on backlinks to competitors' websites (which contain plenty of valuable insights ;) ), and so on.

Microsoft Excel serves as an excellent tool for managing these lists, whether they contain ten or a million links. It's robust, flexible, extensible, and allows you to send reports directly to clients from an Excel sheet.

"You mention a range from 10 to 1,000,000," you might ask me. "Why is that?" Because clearly, you don't need a tool for fewer than 10 links, and you probably wouldn't need one for over a million either. I'd bet that in such cases, you'd already have custom software tailored to your specific needs. And it would be me reading your articles instead!

When analyzing a list of URLs, common tasks include extracting domain names for further processing, grouping URLs by domain, removing links from already processed domains, comparing and merging two tables by domain names, etc.

5 easy steps to extract domain names from a list of URLs ----------------------------------------------------------

Let's consider an example using a snippet of ablebits.com's backlink report generated by Google Webmaster Tools.

Extract domain names from a URL list in Excel

Tip: I recommend using ahrefs.com to promptly detect new links to your site and your competitors' websites.

  1. Add a "Domain" column to the end of your table. Since we've imported data from a CSV file, our data appears as a simple range. Press Ctrl T to convert it into an Excel table, which is far more convenient to work with.

    Extract domain names from a URL list in Excel

  2. In the first cell of the "Domain" column (B2), enter the formula to extract a domain name:

    • Extract the domain with www. if it exists in the URL: <b>=MID(A2,FIND(":",A2,4) 3,FIND("/",A2,9)-FIND(":",A2,4)-3)</b>
    • Exclude www. and get a pure domain name: <b>=IF(ISERROR(FIND("//www.",A2)), MID(A2,FIND(":",A2,4) 3,FIND("/",A2,9)-FIND(":",A2,4)-3), MID(A2,FIND(":",A2,4) 7,FIND("/",A2,9)-FIND(":",A2,4)-7))</b>

    Extract domain names from a URL list in Excel

    The second formula might appear lengthy and complex, but only if you haven't encountered truly long formulas before. It's no coincidence that Microsoft increased the maximum formula length to 8192 characters in newer Excel versions :)

    The advantage is that we don't need to use an extra column or a VBA macro. While creating and using VBA macros isn't as daunting as it seems, check out a great article on how to create and use VBA macros. However, in this specific case, we don't actually need them—using a formula is faster and simpler.

    Note: Technically, www is the 3rd level domain, but with most standard websites, www. is merely an alias of the main domain. Back in the early days of the internet, saying "double u, double u, double u our cool name dot com" on the phone or over the radio was clear enough for everyone to remember where to find you, assuming your cool name wasn't something like www.llanfairpwllgwyngyllgogerychwyrndrobwyll-llantysiliogogogoch.com :)

    You should retain all other third-level domains, otherwise you'll mix up links from different sites, such as those with "co.uk" domains or various accounts on blogspot.com, etc.

  3. Since we have a complete table, Excel automatically applies the formula to all cells in the column. Done! We now have a column with extracted domain names.

    Extract domain names from a URL list in Excel

    In the next section, you'll learn how to process a list of URLs based on the Domain column.

    Tip: If you anticipate needing to edit the domain names manually later or copy the results to another Excel worksheet, replace the formula results with values. To do this, follow these steps:

    • Click on any cell in the Domain column and press Ctrl Space to select all the cells in that column.
    • Press Ctrl C to copy the data to the clipboard, then go to the Home tab, click the "Paste" button, and select "Value" from the drop-down menu. Extract domain names from a URL list in Excel

Processing a list of URLs using the Domain name column

Here are a few tips for further processing of the URL list, based on my own experience.

Group URLs by domain

  1. Click on any cell in the Domain column.

  2. Sort your table by Domain: go to the Data tab and click on the A-Z button.

  3. Convert your table back to a range: click on any cell in the table, go to the Design tab, and click the "Convert to Range" button.

  4. Go to the Data tab and click the "Subtotal" icon.

  5. In the "Subtotal" dialog box, select the following options: At each change in: "Domain" use function Count and Add subtotal to Domain. Extract domain names from a URL list in Excel

  6. Click OK. Excel has created an outline of your data on the left-hand side of the screen. There are 3 levels of the outline, and what you see now is the expanded view, or level 3 view. Click number 2 in the upper-left corner to display the final data by domains, and then you can click the plus and minus signs ( / -) to expand/collapse the details for each domain.

    Extract domain names from a URL list in Excel

Highlight the second and all subsequent URLs in the same domain

In the previous section, we demonstrated how to group URLs by domain. Instead of grouping, you can quickly color duplicate entries of the same domain name in your URLs.

For more details, please see how to highlight duplicates in Excel.

Extract domain names from a URL list in Excel

Compare your URLs from different tables by domain column

You might have one or several separate Excel worksheets where you keep a list of domain names. Your tables may contain links you don't want to work with, like spam or domains you've already processed. You might also need to maintain a list of domains with interesting links and delete all others.

For example, my task is to color in red all domains that are in my spammer blacklist:

Extract domain names from a URL list in Excel

To save time, you can compare your tables to delete unnecessary links. For full details, please read How to compare two Excel columns and delete duplicates.

The best way is to merge two tables by domain name

This is the most advanced method, and the one I personally prefer.

Suppose, you have a separate Excel worksheet with reference data for each domain you've ever worked with. This workbook keeps webmaster

The above is the detailed content of Extract domain names from a URL list in Excel. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Why does Microsoft Teams use so much memory? Why does Microsoft Teams use so much memory? Jul 02, 2025 pm 02:10 PM

MicrosoftTeamsusesalotofmemoryprimarilybecauseitisbuiltonElectron,whichrunsmultipleChromium-basedprocessesfordifferentfeatureslikechat,videocalls,andbackgroundsyncing.1.Eachfunctionoperateslikeaseparatebrowsertab,increasingRAMusage.2.Videocallswithef

5 New Microsoft Excel Features to Try in July 2025 5 New Microsoft Excel Features to Try in July 2025 Jul 02, 2025 am 03:02 AM

Quick Links Let Copilot Determine Which Table to Manipu

What is the meeting time limit for the free version of Teams? What is the meeting time limit for the free version of Teams? Jul 04, 2025 am 01:11 AM

MicrosoftTeams’freeversionlimitsmeetingsto60minutes.1.Thisappliestomeetingswithexternalparticipantsorwithinanorganization.2.Thelimitdoesnotaffectinternalmeetingswhereallusersareunderthesameorganization.3.Workaroundsincludeendingandrestartingthemeetin

how to group by month in excel pivot table how to group by month in excel pivot table Jul 11, 2025 am 01:01 AM

Grouping by month in Excel Pivot Table requires you to make sure that the date is formatted correctly, then insert the Pivot Table and add the date field, and finally right-click the group to select "Month" aggregation. If you encounter problems, check whether it is a standard date format and the data range are reasonable, and adjust the number format to correctly display the month.

How to use Microsoft Teams? How to use Microsoft Teams? Jul 02, 2025 pm 02:17 PM

Microsoft Teams is not complicated to use, you can get started by mastering the basic operations. To create a team, you can click the "Team" tab → "Join or Create Team" → "Create Team", fill in the information and invite members; when you receive an invitation, click the link to join. To create a new team, you can choose to be public or private. To exit the team, you can right-click to select "Leave Team". Daily communication can be initiated on the "Chat" tab, click the phone icon to make voice or video calls, and the meeting can be initiated through the "Conference" button on the chat interface. The channel is used for classified discussions, supports file upload, multi-person collaboration and version control. It is recommended to place important information in the channel file tab for reference.

How to Fix AutoSave in Microsoft 365 How to Fix AutoSave in Microsoft 365 Jul 07, 2025 pm 12:31 PM

Quick Links Check the File&#39;s AutoSave Status

How to change Outlook to dark theme (mode) and turn it off How to change Outlook to dark theme (mode) and turn it off Jul 12, 2025 am 09:30 AM

The tutorial shows how to toggle light and dark mode in different Outlook applications, and how to keep a white reading pane in black theme. If you frequently work with your email late at night, Outlook dark mode can reduce eye strain and

how to repeat header rows on every page when printing excel how to repeat header rows on every page when printing excel Jul 09, 2025 am 02:24 AM

To set up the repeating headers per page when Excel prints, use the "Top Title Row" feature. Specific steps: 1. Open the Excel file and click the "Page Layout" tab; 2. Click the "Print Title" button; 3. Select "Top Title Line" in the pop-up window and select the line to be repeated (such as line 1); 4. Click "OK" to complete the settings. Notes include: only visible effects when printing preview or actual printing, avoid selecting too many title lines to affect the display of the text, different worksheets need to be set separately, ExcelOnline does not support this function, requires local version, Mac version operation is similar, but the interface is slightly different.

See all articles