AppsScriptPulse

Find all matching values in Google Sheets cells with Google Apps Script

Learn how to search and find all values in an entire Google Sheet spreadsheet, in a specific sheet tab or in a range with Apps Script.

Handy little snippet from Scott Donald on using the Google Apps Script TextFinder class to find all the occurrences of matching text in a Google Sheet. The bit I particularly liked in this solution was how Scott used a .map method to return an object array of cell hits including A1 notation:

Array containing an object for each sheet containing the sheet name and the cell location (Image credit: Scott Donald)

Follow the source link for more information including a video tutorial.

Source: Find All Values in Google Sheets with Apps Script – Yagisanatode

2 comments for “Find all matching values in Google Sheets cells with Google Apps Script

  1. 25 January, 2023 at 03:0425

    Chrome: ERR_TOO_MANY_REDIRECTS
    safari cannot open the page because too many redirects occurred

    • 25 January, 2023 at 21:0625

      Seems fine just now, might have been a temporary issue?

Leave a Reply

Your email address will not be published. Required fields are marked *