This is my third time asking about this (1st, 2nd), since the previous answers turned out they had some issues. So this is my (final?) third question:
I have Google spreadsheet calendar type planner that 8-10 users are inserting data every day. Those data can be numbers, letters and some unicode characters, sometimes mixed all in one cell. I want all these text data to change to uppercase automatically when typed by the user.
So, the task is, change all text data to uppercase except...
- if the cells values are dates
- if the cells contains formulas
- and exclude also some of the Unicode/Enclosed Alphanumerics characters and these Text Symbols which they might be mixed with letters and numbers in the same cell.
Now, after my prior attempts, i have the following script that does the job and keeps the conditions above, except one. It does not exclude the the Unicode/Enclosed Alphanumerics characters and after the uppercase change they become in very small size...
function onEdit(e) {
if (Object.prototype.toString.call(e.range.getValue()) !== "[object Date]" ) {
if (!e.range.getFormula()) {
e.range.setValue(e.value.toUpperCase());
}
}
}
So... how can i, in the above code, to exclude also the Unicode/Enclosed Alphanumerics characters?
EDIT: This is a visual result of how the script it's working now. I pointed the correct results with "Yes" and the wrong ones with "No"... Script Results