How to Build a Link Gap Report in Google Sheets in 2026

Export your referring domains and those of three to five competitors, clean each list to root domains, and use COUNTIF or XLOOKUP to flag the domains that link to rivals but not to you.
Quick answer: Build a link gap report in Google Sheets by exporting your referring domains and those of three to five competitors, cleaning each list to root domains, and using COUNTIF or XLOOKUP to flag the domains that link to rivals but not to you.
TL;DR: Export, clean, compare with a formula, then rank the gaps by relevance and authority before you pitch anyone.
Key takeaways
- A link gap is the set of domains that link to your competitors but not to you, and a backlink gap analysis is the fastest way to find sites that already link to your niche.
- According to Ahrefs, domains that link to all of your rivals are high priority, and domains that link to at least two rivals are medium priority.
- Clean every export to root domains first, because comparing full URLs hides duplicates across subdomains and pages.
- Use
=COUNTIF(MyDomains!A:A, A2)in Google Sheets to flag gaps, or XLOOKUP to return the word GAP for missing domains. - Rank the gap list by relevance before authority, and analyse each competitor's backlinks at page level before you pitch.
- A first pass takes about 90 minutes and a weekly refresh takes about 30 minutes, according to 212Plus.
What a link gap report is
A link gap report is a spreadsheet that lists the websites linking to your competitors but not to you. It answers one question: which sites already link to pages like yours, and therefore might link to you too? Those sites are the warmest prospects in link building, because they have already shown they link out on your topic.
The report works at two levels. Domain level compares whole sites: every domain that links to a rival. Page level compares individual pages: the exact pages that link to a rival page. Domain level gives you the prospect list; page level tells you which page to ask for a link on, which matters when you want a link added to an existing article.
According to Ahrefs, whose backlink gap guide was updated on July 2, 2026, you should run both views and finish with the domains that link to two or more competitors.
The report is not a ranking of the best links on the internet. It is a filtered list of links you can realistically earn. A domain that links to all three of your rivals is a site that links to your niche regularly, which makes it a better target than a famous site that linked to one rival once by accident.
Step 1: pick three to five true rivals
Pick rivals by shared keywords, not by brand size. Open your five highest commercial-intent keywords in an incognito window and record the domains in positions 1 to 10 that are genuine competitors. Skip Wikipedia, Reddit, YouTube, large marketplaces, and news sites unless you compete with them directly, because their link profiles are not replicable.
Two to five competitors is usually enough. More than that and the gap list fills with noise: domains that link to one giant rival and have nothing to do with your niche. Three is the sweet spot for a first report, because the intersect score is easy to read: a domain linking to all three rivals is a clear high priority.
Check that each rival is a similar size to you. According to Ahrefs, you should look at the Domain Rating column and pick competitors with higher authority than you but in a similar ballpark for site size. A rival ten times your size has links you cannot earn yet, and a rival much smaller than you has links you already have.
Write the rival list at the top of your sheet so the report is readable later. A gap report with no record of which rivals were compared is hard to refresh, and a refresh is the whole point of building it in Sheets.
Step 2: export the referring domains
Export the referring domains for your site and for each competitor, using the same tool and the same settings for all of them. Mixing tools mixes indexes, and a domain that appears in one tool's index but not another's looks like a gap when it is not.
Ahrefs Link Intersect does the comparison for you: enter your site in the field for the site that does not get the links, add up to three competitors, and click show link opportunities. According to Ahrefs, Link Intersect is available on all Ahrefs plans, per the help pages updated on September 3, 2026. Semrush Backlink Gap compares up to five sites at once, and its Pro plan shows 10,000 results per report, according to Semrush in 2026.
If you have no paid tool, use the free route. Export the top 100 backlinks for each competitor from a free checker, and export your own referring domains from Google Search Console, whose Links report is free and authoritative but capped in how many rows it shows. Paste all competitor domains in one column and your domains in another, then use a formula to compare them.
Import each export as CSV into its own tab in one Google Sheets file. Name the tabs clearly: MyDomains, RivalA, RivalB, RivalC. A clean tab structure is what makes the formulas simple, and simple formulas are what make the report repeatable.
Step 3: clean every list to root domains
This is the step most people skip, and it determines whether the analysis works. A referring domain is the registrable root of a linking page: example.com, not blog.example.com or example.com/page. Comparing full URLs hides duplicates across subdomains and pages, so two rows that look like different sites are really one site.
For each export, create a new column called domain and populate it with a cleaned version of the referring page URL. In Google Sheets, a formula like =REGEXEXTRACT(A2,"^(?:https?://)?(?:www\.)?([^/]+)") pulls the host out of a full URL. Then build a clean list with =UNIQUE(B2:B) on another tab, which removes duplicates so you do not pitch the same site twice from different URLs.
Normalise the case and trim spaces before you compare. Use =LOWER() and =TRIM() on the domain column, because a domain with a trailing space or a capital letter will not match its twin in the other list. According to RankMeter, normalising to the root domain is what makes the comparison meaningful, and it should happen before you write a single lookup formula.
Check your work with a count. A simple root-domain check compares the row count with the unique root count: if the unique count is smaller, some sites appear more than once. According to BetterSheets, a list of 437 rows can hold only 429 sites, and the gap between the two numbers is the duplicates you would otherwise pitch twice.
| Tab | What goes in it | Key columns |
|---|---|---|
| MyDomains | Your referring domains, cleaned | Domain, DR, traffic |
| RivalA, RivalB, RivalC | Each rival's referring domains, cleaned | Domain, DR, traffic |
| Gap | Domains that link to rivals, not to you | Domain, intersect score, priority |
| Outreach | Gap domains you decide to pitch | Domain, contact, status, date sent |
Step 4: find the gaps with a formula
Once every file has a clean domain column, the comparison is a lookup problem. There are two reliable approaches, and both work in Google Sheets.
The COUNTIF approach counts how many times a domain appears in your own list. In the competitor sheet, add a column with =COUNTIF(MyDomains!A:A, A2).
A result of 0 means the domain links to the competitor and not to you, which is a gap. A result above 0 means you already have the link, so it is not a gap. Filter the column to show only zeros and you have your list, according to RankMeter.
The XLOOKUP approach looks the domain up in your list and returns a marker. =IFERROR(XLOOKUP(A2, MyDomains!A:A, MyDomains!A:A), "GAP") returns GAP when the domain is missing. According to RankMeter, this is faster on large sheets than COUNTIF over a whole column, and it makes the output easier to read.
If you have exports from three competitors, run the lookup for each one separately, then stack the results. In the combined sheet, add a source column recording which competitor's export the row came from, then remove duplicate domains while keeping the source list.
Add an intersect score: count how many rivals each domain links to. According to Ahrefs, domains that link to all of your rivals are high priority, domains that link to at least two rivals are medium priority, and domains that link to only one rival are low priority.
Step 5: rank the gaps and turn them into outreach
A gap list of thousands of domains is not a plan. Rank it before you contact anyone, using relevance first and authority second. A domain in your niche with a DR of 30 beats a DR 70 domain in an unrelated niche, because the link has to make sense to a reader and to Google.
Add columns for the facts you need to judge each domain: DR, monthly traffic, topical relevance, the type of placement that looks viable, and the page on your site you want to target. You can pull DR and traffic from the same tool you used for the export. Fill in the status as "To Outreach" and set the priority from the intersect score.
Then check each high-priority domain by hand before you pitch. Open the site, confirm it is real and active, and find the exact page that links to your rival.
A domain that links to a rival's homepage is a different opportunity from one that links to a rival's guide, because the second one tells you which of your pages to offer. According to Ahrefs, switching the Link Intersect report to referring pages mode shows the exact pages, and you should repeat the check for each relevant page.
Refresh the report monthly. Link profiles change, rivals gain new links, and a gap that was low priority last month can become high priority when a second rival earns the same link.
Tracking your backlinks in the same sheet keeps the gap list honest, because a domain you already won should leave the gap list.
Using Google Sheets for link building covers the formulas for checking whether earned links are still live, which is the other half of keeping the report accurate.
According to Ahrefs, whose backlink gap guide was updated on July 2, 2026, domains that link to all of your rivals are high priority, domains that link to at least two rivals are medium priority, and a first gap analysis takes about 90 minutes with roughly 30 minutes per week to maintain, according to 212Plus. Source: Ahrefs, backlink gap analysis guide (2026).
Frequently Asked Questions
How many competitors should I compare?
Three to five is the right range. Three is enough for a clear intersect score, and five is the most Semrush Backlink Gap compares at once. More than five fills the list with domains that link to one giant rival and have nothing to do with your niche.
Can I do a link gap analysis without a paid tool?
Yes. Export the top 100 backlinks per competitor from a free checker and your own referring domains from Google Search Console, then compare them in Sheets with COUNTIF or XLOOKUP. According to 212Plus, 300 to 500 filtered rows from free tools is plenty of work for a quarter.
What is the difference between a link gap and a keyword gap?
A link gap compares referring domains: who links to rivals but not to you. A keyword gap compares rankings: which keywords rivals rank for that you do not. Both use the same rivals, but the link gap produces outreach targets while the keyword gap produces content targets.
How often should I refresh the report?
Monthly is enough for most sites. Link profiles move slowly, and a monthly refresh catches new gaps without wasting time. According to 212Plus, the first build takes about 90 minutes and a weekly refresh takes about 30 minutes, so a monthly cadence is easy to keep.
Should I pitch every domain in the gap list?
No. Pitch only the domains that pass a relevance check and a quality check. A domain with no organic traffic or no topical connection is a gap on paper, not an opportunity. According to Ahrefs, the process is complete once you have examined all the domains that link to two or more competitors.
Why do my formulas return errors on some rows?
Blank cells, trailing spaces, and mixed case are the usual causes. Clean the domain column with TRIM and LOWER before you compare, and check that the ranges in your formulas cover the whole column. A domain with a trailing space will not match its twin.
Expert verdict
Best for: sites with three to five clear rivals and a backlink tool export, because the report turns a vague "get more links" goal into a named list of prospects.
Not for: brand-new sites with almost no links of their own, because the gap list will be nearly every domain on the internet and the priorities will be meaningless.
Pros: the warmest prospects in link building; repeatable in Sheets with two formulas; the intersect score ranks the list for you.
Cons: exports need cleaning before they are useful; free tools cap the data; a long gap list still needs manual review before outreach.
If you prefer Semrush over Ahrefs for the export, using Semrush for link building covers the Backlink Gap tool, which compares up to five sites in one report.
Bottom line
Export your referring domains and those of three rivals, clean each list to root domains, and use COUNTIF or XLOOKUP to flag the domains that link to rivals but not to you. Rank the gaps by intersect score and relevance, check the best ones by hand, and pitch the exact page. Using Ahrefs for link building covers the export step in more detail if you use Ahrefs for the data.
Sources
- Ahrefs: How to Do a Backlink Gap Analysis (With Template)
- RankMeter: How to Calculate a Link Gap Manually Without an API
- 212Plus: How to Do a Competitor Backlink Analysis
- Authority Builders: How to Do a Link Gap Analysis
- BetterSheets: One Sheet, Two Counts: A Root-Domain Check in Google Sheets
- Google Sheets Formulas for SEO Automation Guide
The BacklinkPrice Team researches backlink prices, publisher sites and link building tools. We check prices and plans against each provider's own pages and date them, so you know how current the numbers are.
More from BacklinkPrice TeamRelated guides





