Google-sheets – How to create a notification rule if new row contains text
google sheets
In Google Sheets, I would like to create an email notification rule whenever a new row contains a specific text, e.g. ".de".
However, as far as I can see, it is not possible to achieve this using the notification rules interface:
Best Answer
I would do this with a google apps script tied to the onEdit trigger:
function onEdit(e) {
var myWord = '.de';
var myEmail = 'me@example.com';
var cellData = e.range.getValue();
if (cellData.indexOf(myWord)>-1){
MailApp.sendEmail(myEmail, 'subject string', 'body string');
}
}
At this time it's not possible to change the default row height. One workaround is to use Google Apps Script to change the row height. You could use on change installable trigger to call the script every time a new sheet or row is added.
Note:
If the cell includes breaklines, or it's wrapping setting is set to wrap it's not possible to adjust the row height to a height less than the required to by its content. See https://issuetracker.google.com/issues/36765452
The question is about normalizing cross-tabbed data. There are a lot of posts about this topic. The basic keywords that could help to find them are
spreadsheet
normalize
cross-tab
Several of the results will be based in a programming language. Others could use "complicated" formulas that could be necessary in complex situations, but in the linked demo spreadsheet, the data is in C5:G7. C5:D7 are the row headings, and E5:G7 are the cross-tabbed data. This could be handle by using a simple solution based on Google Sheets arrays and could be easily adapted to normalize a range with any number of rows and few additional columns.
Google Sheets can handle arrays by enclosing values between curly brackets. Some people call them embedded arrays. This feature could be used to easily normalize simple cross-tabbed data
Best Answer
I would do this with a google apps script tied to the onEdit trigger: