title: Google Script Button to increase value to specific rows and columns in Google Sheets
body: <p>I am using Google Sheets with a series of buttons. I want to click the button to increase the value in a specific row. </p>
  
  <p>For example:
  When I click on "Player 1" button, it will go to Player 1 row, then when I click on the "Rebound" button, it will add a value of 1 in that cell. Then, if I click the "Steal" button, it will add value in Player 1's row, and under the "Steal" column. The same goes for all of the other "player" buttons.  I am having trouble finding out how to do this. I want to create a basketball box score when I can score the game with button clicks. Thank you in advance. 
  <a href="https://i.stack.imgur.com/Z2z7D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z2z7D.png" alt="enter image description here"></a></p>
  
  <p>Google Script:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>function increment(){
  
    // define the cell to be incremented
    var cell = SpreadsheetApp.getActiveSheet().getRange("B2");
    
    // get and set the cell value
    var cellValue = cell.getValue();
    cell.setValue(cellValue + 1);  // this increments by 1 but could be any number
  
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>The Google Script that I have allows my to increase the value by one for cell B2 alone. I would like to be able to use the Player Buttons to select the row and the Rebound, Turnover, Steal button to select the column and add value. I am very new to coding and scripting. Sorry. </p>