Hi, I am creating an app to track daily activity and utilizing Google Sheets as my data source. On my app I have several buttons to relate to an activity. Each time you hit a button it updates the corresponding Google Sheet with a new row entry and tallies (or should tally) the activity under its respective column or activity category.
Currently, you can click each button/activity on the app once and they will neatly organize themselves into one row on the spreadsheet and be identified by the current date. However, when you hit the button for a second time and/or even if you click multiple times, on the same day, the value fails to increase by 1.
Ideally, each time a user hits a button/activity the tally would increase by 1 on the Sheet under the respective column/activity category and only on the row entry for that current date. Essentially counting the days’ volume for each respective activity. I can not figure out how to make the value increment by 1 or if it needs to be done in Blocks or with a formula or AppScript on Google Sheets.
Attached, please find a screenshot of two of my buttons’ blocks. The “Conversations” button along with the rest of my buttons all correctly tally on one row the first time you click.
The “Dials” button when clicked does not add the current date but will tally, just the first time, under its column/activity.
- What appears to be wrong with my “Dial” block that it will not insert today/current date on the first click for that day?
- How or what is the best way to get my Google Sheet to tally the number of clicks for a button?
- Do you see or notice something else I may have done wrong? Any suggestions, advice, or additional resources for education will be greatly appreciated : )
Erica