Last active
          April 9, 2021 14:46 
        
      - 
      
 - 
        
Save vlucas/6b302f6cce64890ce03d5d57e24687d0 to your computer and use it in GitHub Desktop.  
    SheetQuery-UpdateRows
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Update rows with criteria | |
| sheetQuery() | |
| .from('Transactions') | |
| .where(row => row.Business.toLowerCase().includes('starbucks')) | |
| .updateRows(row => { | |
| row.Category = 'Coffee Shops' | |
| }); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
SheetQuery is a Google Apps Script Library.
Script ID:
1pbpOJxDDHVeVr6WQmR5TZKSqTsW4qwdIlcVKIM6UKYvswkivwHpPnHaODocs page (autogenerated): https://script.google.com/macros/library/d/1pbpOJxDDHVeVr6WQmR5TZKSqTsW4qwdIlcVKIM6UKYvswkivwHpPnHaO/3