I'm trying to create a Google Sheet to reference in an app or game engine that will display only the most recent 15 entries. For more context, I created a website with a form that connects to the sheet. And the game will have a variable assigned to the cells of the sheet. For this reason, I'd like to keep the same 15 cells, but have the info in them update and change when new entries are submitted.
So on the 16th entry, the 1st row will automatically be replaced with that info. The 17th entry will replace the 2nd row... the 31st will replace the 1st again, etc.. So I'd like to limit the number of rows to 15 and always be replacing current entries in sequence.
Info the website puts in the sheet:
- date/time submitted (only useful if a method can reference it i.e. the oldest entry to be removed)
- city (the actual info I need for the variable in game)
I'm fairly new to coding and my searches haven't been productive. All help would be much appreciated, even if it's links to longer books or tutorials I may need.