Hi all,
I have a (one may think) very easy script that I run every 5 minutes. The script is the following:
function Currency() {
var spreadsheet = SpreadsheetApp.getActive();
spreadsheet.getRange('M:M').activate();
spreadsheet.getActiveRangeList().setNumberFormat('[$£-809]#,##0');
SpreadsheetApp.flush();
};
It's purpose is the following: whenever I import data from JIRA, it is a number-type field, but I cant to present it as a currency format, therefore with such script I simply change the format so as to display it on Google Datastudio (currently Looker Studio).
The problem is that it's not working whenever it's timedrive, and only works whenever I manually run it...
Also, if anyone knows a google sheets function to set a different column referenceing that column "M:M" and get it on a currency format (it has to be currency, text() does not work since I'll need to aggregate it later on), that'd be appreciated as well,
Happy weekend! :)
Any thoughts?
Best regards!!