function copyrange() { var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheetByName('FE'); //source sheet
var testrange = sheet.getRange('A:A'); var testvalue = testrange.getValues(); var csh = ss.getSheetByName('FE'); //destination sheet
var data = []; var j =[];
//Condition check in A:A; If true copy the same row to data arrayfor (var i=0; i<testvalue.length; i++) {
if ( testvalue[i] == 'Sup Hourly') { data.push.apply(data,sheet.getRange(i+1,1,1,60).getValues()); //Copy matched ROW numbers to j j.push(i); } }//Copy data array to destination sheet
//Delete matched rows in source sheetfor (var i=j.length-1; i>-1; i--) { sheet.deleteRow( j[i]+1 );}
csh.insertRows(3, j.length); csh.getRange(3,1,data.length,data[0].length).setValues(data);}
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/3534a198-a2c8-4e54-851c-81c2e97a0b6do%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-community+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/3534a198-a2c8-4e54-851c-81c2e97a0b6do%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/cf76b634-d96d-4d04-bfe0-d8ae46b6a266o%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-community+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/3534a198-a2c8-4e54-851c-81c2e97a0b6do%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-community+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-community+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/3534a198-a2c8-4e54-851c-81c2e97a0b6do%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-community+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/3534a198-a2c8-4e54-851c-81c2e97a0b6do%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/cf76b634-d96d-4d04-bfe0-d8ae46b6a266o%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/0c41832d-f2d0-4441-8416-dd495bc6a958o%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-community+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/3534a198-a2c8-4e54-851c-81c2e97a0b6do%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/1cfd819a-b77f-44de-879d-8a18ea930cceo%40googlegroups.com.
Met vriendelijke groet,
|
|
|
|
|
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAN1QPJTuW1mmcXn%3DMky_g2xRjNyBKh0BjbFwLto-%3DUwVk0HKJw%40mail.gmail.com.
Met vriendelijke groet,
|
|
|
|
|
I use Andrew Roberts' linked to fuzzy search (https://glench.github.io/fuzzyset.js/). It works well - with the caveat of speed (which matters when I am going through a batch of thousands). I would have tried fuse.js to compare speed but I don't know how to install it in GAS.Could you point to some lines which explain how to do this Riël? Thanks, David Tew
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAC80mJTX0VF0ygXy7Ek47FSa-PZO-MA8Pf%2BGZ3y6aKkJjSNFtQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAHjvmF5%2BwsaokgYDGhWU2ZU1fe0JPgzhUgAhLNvFULBFLdVqSg%40mail.gmail.com.