I have a spreadsheet to keep track of points in a class. I want to have a cell for each class that I can type a number of points into, and that number will be added into a corresponding cell in the row below it. Then I want the first cell to empty itself so that I can add more points in and repeat the process whenever I need to. The second cell (the one in the row below) should keep a running total of all the numbers entered into the original cell.
Google Sheets – Add Cell Contents to Another Cell and Delete Original
google sheetsgoogle-appsgoogle-apps-script
Related Topic
- Google Sheets Formula – Compare Two Cells and Write Answer
- Google-sheets – way to automatically duplicate a large number of Google Sheets, name them, then copy their URLs to another sheet
- Google Sheets – Track Highest Number in a Cell Over Recalculations
- Google Sheets – Copy Columns on Cell Value Change
- Google-sheets – How to add a date to a cell next to an cell with an imported value
- Google Sheets – How to Pull Page Number and Image Count to Another Sheet
- Google-sheets – How to skip 2 rows every time the cell’s content gets > 5 character
Best Answer
This requires a script, for example:
Here the watched range is the 2nd row (the condition
e.range.rowStart == 2
). If a number is entered there, then it's added to the content of the cell below, and the cell itself is cleared.Using
Number
to avoid string concatenation 2 + 2 = 22 instead of addition.Same for rows 2 and 6: the notation
||
means OR: