First post, a long time :)
I just wrote my first google script applications to compare information from 14 tables, each sheet with 2-30 worksheets into one report table.
The script works beautifully, it checks one column for data and, if it finds it, captures the name of the spreadsheet, the name of the worksheet, the data of the first column for the row and the data from the validation column and adds it to the array as a subdirectory of the data matrix.
Then it calculates the area of the array of auxiliary arrays and writes the data to the report file (from which the script is executed).
My only problem is that it takes about 2 minutes to run the script.
I wonder if I was ineffective in my method and hoped that someone would be able to view the script and let me know if I made some mistakes?
here goes:
function getFaults() { var reportsheet = SpreadsheetApp.getActiveSheet(); var reportdata = [] var reportrow = 0 var liddonblocks = [ "1APshQevK7iZxhP7--zmtuM3K6dPTgTZjmNarQ6CEsV4", "1riCQMOa38jo4nCD4qjW1BFZKk5xpXFZiCXHzXpiYKIU", "1NTKXmted1-U12MiqvCGRuYBdhPy1_eLiPn7v8_oVKFE", "1RKOJUNNi5TAg5dETZDtLjZOkUSheuguzmtdPelMclMI", "1b5-fzCp0wzW8llpUc_6xi1iTFzsapZh9ASSFgDYt4WU", "1qJtY37K0zwoJcz7LdyHhWgkypRMP9LabBchNLM4Fgow", "1yvf4W8-SkfTH-n-PdDNQeyEDEz-shzTe-Id57S_YB2M", "1ETZc1xeNGXU6ipb1XQiD8SiIyRXzZtiJfS4AClKroJk", "1tJ5u3Hv0uz-n2cdw-QYixKnuMG9skvrUbz1UROhIm34", "1DjhmIdD0GrPxR-fv7pCPkIwIyfai5BHsK9GhT-Hcs3k", "15w39NZZIacD1OfiTWG1E3HmOhV0B_e2Jsuan_ySwf2Q" , "1cK2HBLEftYOZEkCcxs1TX1PxcJRiKTZpQrcsOfE4B1s", "16W_bfMKk98wkLpEmm2Q68Ta_SrCA8EBarQyGF2yfm18","1_Z_tgF5UAfq3fxPsDEe40z2GZSehhL-u4hEuVszrbn8" ]
source share