So I was referencing this question "https://stackoverflow.com/questions/56826834/how-to-get-a1notations-when-findall-function-returning-range-range-range-ran" and I like it and what it does but I need to go a little further and im still a beginner but this is what I have.
var searchTerm = "Changeme"; // Please set this.
var sheetName = "Sheet1"; // Please set this.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var dataSheetName = ss.getSheetByName(sheetName);
var completeSearch = dataSheetName.createTextFinder(searchTerm).findAll();
for (var i = 0; i < completeSearch.length; i++) {
var range = completeSearch[i];
var value = range.getValue();
var rowValue = dataSheetName.getRange(range.getRow(), 1, 1, dataSheetName.getLastColumn()).getValues();
Logger.log(value) // Value of the searched range
Logger.log(rowValue)
Logger.log(range.getA1Notation()
//Logger.log(rowValue) // Values of the row of searched range
}
}
This is enough to get me the row that I am looking for and the Cell of what I am searching for but what I want to do is check a column for what I am searching for and return the row then grab the value of another column in the same row and based off that answer send an email out to someone with the answer.
So Search Column H for the "SearchTerm" If I found it in the row check the cell value in column A, B, and C and if then put the values in another sheet to send them out in an email.
Any help will be appreciated.