I want a excel sheet that automatically checks the indexing of a url and writes it on the sheet is there anyone who is expert can tell me the formula or coding script
Loading
I want a excel sheet that automatically checks the indexing of a url and writes it on the sheet is there anyone who is expert can tell me the formula or coding script
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Naimish MakwanaRank #324 · 7.7K reputationPosted May 20, 2024, 12:18 AM EDT
Excel alone cannot check the indexing of a URL. You would need to use a programming language to interact with a search engine’s API to check if a URL is indexed.
One way to do this is by using Google Apps Script with Google Sheets. Google Apps Script is a JavaScript-based scripting language that lets you add functionality to your Google Apps.
Here’s a basic example of how you might set this up:
function checkIndexing() { var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); var range = sheet.getRange("A2:A"); // Assuming URLs are in column A starting from row 2 var urls = range.getValues(); urls = urls.map(function(url) { if (url[0]) { var response = UrlFetchApp.fetch("https://www.google.com/search?q=info:" + encodeURIComponent(url[0])); return [response.getResponseCode() == 200 ? "Indexed" : "Not Indexed"]; } else { return [""]; } }); sheet.getRange("B2:B").setValues(urls); // Writes the results in column B }This script will check each URL in column A (starting from row 2) to see if it’s indexed by Google. It writes “Indexed” in column B if the URL is indexed, and “Not Indexed” otherwise.
Please note that this is a very basic script and may not work perfectly for all URLs. Also, Google may block your IP if you send too many requests in a short period of time. You might want to add some delay between requests to prevent this.
To use this script, click on
Extensions > Apps Scriptin Google Sheets, paste the script in the editor, and then run thecheckIndexingfunction.Remember to replace
"A2:A"and"B2:B"with your actual range of URLs and the range where you want to write the results.This is just a starting point. Depending on your needs, you might need to modify the script or use a more sophisticated method to check URL indexing.
Thanks