How to track keyword rankings in Google Sheets (without a formula that breaks every month)

Want your rankings in a spreadsheet you control? Why scraping formulas break, and how to build a ranking history in Sheets from a weekly tracker export.

How to track keyword rankings in Google Sheets (without a formula that breaks every month)

Credit costs and prices in this post were correct on . Prices may change, so check the pricing page for the latest.

In short
  • Formulas that scrape Google from Sheets (IMPORTXML and friends) break often, show results for the wrong location, and go against Google's robots.txt. Don't build client reporting on them.
  • Search Console's average position is free and worth exporting, but it's an average across everyone who searched, so it isn't a rank tracker.
  • The reliable route is a rank tracker that checks on a schedule, then an export to Google Sheets or CSV that you paste into one raw log tab with a date column.
  • Seoprama keeps the last 14 days of rank history for free. A weekly export to your own sheet keeps the rest, at no extra cost.
  • Our invented freelancer tracks 250 keywords for three clients for about 2,760 credits a month, roughly $5.52 at the $10 pack's rate.

You’ve got three clients, a couple of hundred keywords, and a rank tracker that shows everything in its own charts. But you want the numbers in a spreadsheet. Maybe you want to group keywords your own way, blend rankings with a client’s sales data, or build a chart the tool doesn’t offer.

So you search for how to track keyword rankings in Google Sheets, and you find two kinds of advice.

One says paste positions in by hand every week. The other says use an IMPORTXML formula to pull positions straight from Google. The first is slow. The second works for a week and then quietly stops.

This post explains why the formula route breaks, where Search Console fits, and how to set up a sheet fed by a keyword rank tracker export, so the spreadsheet holds the history and the tracker does the checking.

The short answer

Let a rank tracker check your positions on a schedule. Export the results to Google Sheets or CSV after each check, and paste them into one raw tab with the date in the first column. Build every chart and summary from that tab with formulas.

That’s it. The sheet becomes your long-term record, and it’s yours. You can sort it, pivot it, join it to other data and share it with a client without giving them a login to anything.

What you shouldn’t do is make the sheet do the checking. Spreadsheets are good at holding and shaping data. They’re bad at searching Google like a real person in a real place.

Three ways people get rankings into a spreadsheet

Here are the routes I see freelancers try, roughly in the order they try them.

1. Search by hand and type the position in. Open an incognito window, search the keyword, count down the page, write the number in a cell. It costs nothing. It also takes a minute or two a keyword, so 200 keywords is an afternoon a week. And your result is still shaped by where you’re sitting, which matters a lot for a local client.

2. Scrape Google from inside the sheet. An IMPORTXML formula, or an Apps Script, fetches a Google results page and pulls out the URLs. Find your domain in the list and you have a position. This is the route most “free rank tracker in Google Sheets” templates use.

3. Use a tracker and export. A rank tracker runs the checks from the location and device you choose, keeps them, and lets you export. You paste the export into your sheet.

There’s a fourth source worth having anyway, which is Search Console. I’ll come to it below, because it answers a slightly different question.

Why IMPORTXML and scraping formulas break

The formula route looks clever, and when it works it feels free. Here’s what goes wrong with it, in the order you’ll hit the problems.

The request comes from Google’s servers, not from you. IMPORTXML is fetched by Google’s own infrastructure. So the results you get are for wherever that request happens to come from, with no city, no device setting and no control over the language. For a plumber in Leeds, a position from an unknown data centre is close to useless.

Google often answers with a block page. Automated requests to Google Search tend to get a consent page, a captcha or an error instead of results. Your formula then returns #N/A, or worse, an empty list that looks like “not ranking”.

The page needs JavaScript. Google started requiring JavaScript to load search results in early 2025, according to reports at the time, and IMPORTXML doesn’t run JavaScript. Many older templates stopped working around then.

The layout keeps changing. Even when you get HTML back, the XPath that picks out the results points at class names and nesting that Google changes without notice. A template that worked in spring returns nothing by autumn.

It isn’t allowed. Google’s robots.txt disallows /search for automated clients. You might not care for your own site, but I wouldn’t put a client’s monthly report on top of it.

There’s no history. A formula recalculates. Last week’s position is gone the moment the sheet refreshes, unless you also write a script to copy values somewhere every week.

Some people solve all this properly: an Apps Script that calls a paid SERP data API for each keyword, sets the location, and appends results to a log tab on a timer. That works.

But at that point you’re running your own rank tracker, paying per query, and maintaining code. If you enjoy that, go for it. Most freelancers I know would rather spend the hour on the client’s pages.

Try it on your own site$2.99 gets you 1,000 credits

About 15 keyword searches, or a few searches plus a backlink lookup and a week of rank tracking. No monthly plan, and credits never expire.

What about Search Console’s average position?

Search Console is free, it’s Google’s own data, and you should export it. Our guide on exporting Search Console data to Google Sheets covers the Export button, the 1,000-row limit and the routes past it.

But treat its “position” with care. It’s an average of every impression across every searcher, wherever they were and whatever device they used. A keyword that ranks 2nd in the client’s city and 40th everywhere else can show an average of 18. It also only includes queries where the site appeared, so a keyword you want to rank for and don’t simply isn’t there.

So the two sources answer different questions:

  • Search Console: how did real searchers see this site, on average, and did they click?
  • A rank tracker: where does the site rank for this exact keyword, in this place, on this device, today?

For a client sheet I’d keep both, on separate tabs, and never mix them in one column. If you’d rather not juggle two logins, Seoprama’s Search Console insights report reads the same data through your Google account, about 5 credits a report, and it can be downloaded for your spreadsheet too.

Exporting from a rank tracker, step by step

Here’s how the export side works in Seoprama. Other trackers differ in the details, but the shape is the same.

Five steps from tracker to sheet: set up the tracker by city and device, let the weekly check run, export to Google Sheets or CSV, paste below the last rows in the log tab with the date, refresh the summary tabs
The weekly routine. After setup it takes a few minutes.

1. Set up the tracker once. In the Seoprama rank tracker, add the client’s domain and keywords (up to 1,000 per tracker), pick the country or the city, desktop, mobile or both, and how deep to check, from the top 10 to the top 100. Then choose how often: daily, weekly, monthly or on demand, at a time of day you choose. The app shows the monthly credit cost before you save.

2. Let the checks run. For a sheet you update weekly, a weekly check is the obvious match. Set it for the evening before the day you do your reporting.

3. Export. From the tracker’s table, export to Google Sheets or CSV. You get one row per keyword with the volume, difficulty and CPC, and for each device the position, the change since the previous check, the ranking URL and the SERP features. Filter first if you only want some keywords, or select rows and export just those.

Keyword rank tracker in Seoprama (sample data)
A Seoprama rank tracker: position, change, ranking URL and SERP features per keyword. Sample data.

4. Paste into the log. In your sheet, paste the rows under the last week’s rows on a tab called Log, and fill the date of the check down the first column. This is the step that turns snapshots into history.

5. Refresh your views. Every summary tab reads from Log, so once the rows are in, the charts and tables update themselves.

Two details save you grief later. A keyword that isn’t found within your check depth comes out as an empty cell, not text, so the position column stays numeric and sorts properly. And each export is the tracker as it stands at the latest check. It’s a copy, not a live link, so the sheet won’t change until you paste the next one.

Keyword rank trackerTrack rankings by city, desktop and mobile

Up to 1,000 keywords per tracker with no tiers. A keyword checked weekly uses about 8 credits a month.

Setting up the sheet so it’s still useful in six months

Most ranking spreadsheets die the same way. Someone adds a new column every week, the sheet gets 60 columns wide, and nobody can find anything. Build it long instead of wide.

Checklist of columns for a raw log tab: date of the check, client or site, keyword, device, position left blank if not found, change since last check, ranking URL, SERP features, search volume, keyword group you add yourself
One row per keyword, per device, per check. Never edit this tab by hand.

The Log tab. One row per keyword per check. If you track desktop and mobile, either keep both sets of columns as they come out of the export, or split them into one row per device with a Device column. The second is easier to pivot. Add one column of your own, Group, for things like “service pages” or “blog”, and fill it with a lookup from a small Keywords tab so you don’t type it every week.

A weekly grid. On a new tab, a single QUERY formula turns the log into the familiar grid, keywords down the side and dates across the top:

=QUERY(Log!A:E,"select C, max(E) where B='Clinic' and D='Mobile' group by C pivot A",1)

That assumes A is the date, B the client, C the keyword, D the device and E the position. Change the client name for each client tab.

Position bands. Clients understand “how many keywords are in the top 3” far better than 200 numbers. For each date, count the bands with COUNTIFS:

=COUNTIFS(Log!A:A,$A2,Log!B:B,"Clinic",Log!E:E,"<=3")

Then the same with ">=4" and "<=10" for the rest of page one, and so on. Chart those counts as stacked columns and you have the one chart most clients actually read.

A trend chart that reads the right way up. In a line chart of positions, position 1 sits at the bottom by default, which looks like a drop. In the chart editor, under the vertical axis, tick “Reverse axis order” and better rankings go up.

URL changes. Add a column that compares this week’s ranking URL with last week’s for the same keyword. When Google swaps which page ranks, that’s often the first sign of two pages competing, and it’s easy to miss in a tracker’s own view.

My field note here: keep the Log tab ugly and untouched, and put all the polish on the other tabs. The day you sort or “tidy” the raw data by hand is the day the formulas start lying.

Keeping your ranking history without paying for it

Here’s the part that makes the sheet more than a nice-to-have. Seoprama keeps the last 14 days of rank tracking history for every account. With weekly checks, that’s your last two readings in the app. Weekly and monthly trend views cover 2 weeks too.

If you want the full history in the app, the Premium add-on keeps every check for good. It’s $10 a month (£8, €10, or ₹500 + GST in India) and also unlocks the report builder after its free first 3 months. Premium doesn’t include credits.

But if you’re building a ranking sheet anyway, you’re already keeping the history yourself. A weekly export into the Log tab gives you every week, for as long as you keep the sheet, at no extra cost. That’s the honest trade:

  • Export weekly if you like working in spreadsheets, report from your own templates, or track a few sites for yourself.
  • Take Premium if you’d rather not touch a spreadsheet, or you want polished white-label client reports from the report builder without building them.

Plenty of freelancers do the first for a year and switch to the second once they have enough clients that the weekly paste starts to feel like admin.

What it costs to feed the sheet

Say you’re a freelancer with three clients (an invented example): a clinic, a law firm and an online shop. You track 250 keywords in all, weekly, in the top 30, plus 10 money keywords for the shop checked daily.

Credit maths for a freelancer's month: clinic 60 keywords weekly 540 credits, law firm 80 weekly 720, shop 100 weekly 900, shop 10 daily 600, total 2,760 credits
Invented example. Top 30, one device. About $5.52 at the $10 pack's rate.

A keyword checked weekly in the top 30 uses about 9 credits a month, and daily about 60. So:

  • Clinic: 60 × 9 = 540 credits
  • Law firm: 80 × 9 = 720 credits
  • Shop, weekly: 100 × 9 = 900 credits
  • Shop, daily: 10 × 60 = 600 credits

That’s 2,760 credits a month. At the $10 pack’s rate of $0.002 a credit, it’s about $5.52 a month (worked example).

The $10 pack’s 5,000 credits cover about 1.8 months of it. The $30 pack gives 18,800 credits with a 25% bonus, which covers nearly seven months (18,800 ÷ 2,760 = 6.8). Credits never expire, and the exports themselves don’t cost anything.

For comparison, Ahrefs Lite is $129 a month for 750 tracked keywords, and Semrush plans start from about $140 a month (both from Seoprama’s pricing comparison). Those plans include a lot more than rank tracking, and if you use their research tools every week they can be worth it. If what you really want is clean ranking data in your own sheet, you’re paying for a lot you won’t open.

Want to price it with your own keyword counts? The package builder does the sums in your currency, and every pack is on the pricing page.

Pay as you goCredit packs from $10. They never expire.

Buy credits once and spend them only when you run something. Bigger packs add up to 25% bonus credits.

Mistakes that make a ranking sheet lie

Mixing locations or devices in one column. A mobile position in Leeds and a desktop position for the whole UK aren’t the same number. Keep a Device column and one tracker per location.

Changing the check depth halfway. If you go from top 30 to top 100, keywords that were “blank” suddenly show 47 or 82. That looks like a jump and isn’t. Note the date you changed it. Our post on rank tracking check depth explains when to go deeper.

Treating blanks as zeros. An empty position means “not found in the checked depth”. If a formula averages it as 0, your average position improves when you drop out of the results. Use AVERAGEIF with ">0", or count blanks separately.

Averaging positions across keywords. An average position of 14 across 200 keywords hides everything. Bands (top 3, 4 to 10, 11 to 30, not found) tell the real story.

Checking daily because the sheet feels empty. Daily data is seven times the credits and mostly shows noise. If you only paste once a week, a weekly check is the right match. There’s more on that in daily vs weekly rank tracking.

Forgetting the paste. The whole system rests on one weekly habit. Put it in your calendar on the morning after the check runs, next to the client’s report date.

Where to start this week

Pick one client and their 30 to 50 most important keywords. Set up a weekly tracker for their city or country, let the first check run, and export it into a fresh sheet with a Log tab. Next week, paste the second export below it and build the QUERY grid. Two weeks in, you’ll know whether the sheet gives you something the tracker’s own view doesn’t.

The $2.99 trial gives you 1,000 credits once per account (₹99 + GST for 700 credits in India). At about 9 credits a keyword a month on weekly checks, that’s room for 50 keywords for two months (900 credits), with about 100 left over for one keyword search.

Try it on your own site$2.99 gets you 1,000 credits

About 15 keyword searches, or a few searches plus a backlink lookup and a week of rank tracking. No monthly plan, and credits never expire.

Frequently asked questions

Can Google Sheets track keyword rankings on its own?

Not reliably. Formulas like IMPORTXML fetch Google from Google’s own servers, get blocked or served a consent page often, can’t run the JavaScript search now needs, and break when the results layout changes. Use Sheets to store and analyse rankings, and a rank tracker to check them.

How do I get rank tracking data into Google Sheets?

Export it from your rank tracker after each check, to Google Sheets or CSV, and paste it under the previous rows in one log tab with the date of the check in the first column. Build charts and summaries on other tabs with formulas like QUERY and COUNTIFS.

Is Search Console’s average position the same as a ranking?

No. It’s an average across every search where your site appeared, from every location and device. It’s useful for trends and clicks, but it won’t tell you where you rank for a keyword in a particular city on mobile today. Keep it on its own tab.

Is there a free Google Sheets rank tracker template?

There are many, and most rely on scraping Google from the sheet, which is why they stop working. A sheet with a raw log tab, a QUERY grid and a position-band chart is easy to build yourself in about 15 minutes, and it works with any tracker’s export.

How do I keep more than 14 days of ranking history in Seoprama?

Either export each check to Google Sheets or CSV and keep the files, which costs nothing, or turn on the Premium add-on at $10 a month, which keeps every check for good. Premium doesn’t include credits.

How often should I update my ranking spreadsheet?

Weekly suits most sites and matches a weekly check. Paste each export the morning after the check runs. Daily updates only make sense for a short list of money keywords or during a site migration.