r/GoogleAppsScript • u/Ok-Science-8243 • Nov 24 '25
Question Help with sheets automation
I’m using Google Sheets and I create a new sheet every time I need to record data, but the days aren’t always consecutive. Sometimes I create a new sheet the next day, sometimes after several days.
Each sheet has the same table in C3:R27.
I want an automated way (preferably a Google Apps Script) to compare the newest sheet I create with the most recent previous sheet in the file.
For each column (C to R), entries should be checked independently, not across the whole row.
The script should detect:
- Moved up in the column → highlight green
- Moved down → highlight red
- New or replaced entry → highlight yellow
Basically:
Whenever a new sheet is added, I want Google Sheets to automatically look at the sheet created before it, compare the two tables, and color the cells based on whether they went up, went down, or are completely new.
What’s the simplest way to automate this logic in Google Sheets?
View all comments
Show parent comment
1
u/Ok-Science-8243 Nov 24 '25
Okay I'll try to convey my best
I'm tracking top 25 games in in several categories for several countries and what my main motive is that when I made a recent sheet after a few days the top trending games will likely to be shift some will vanish some will move up the rank and some will go down the rank and some will be totally new. That's where the previous sheet come in handy. It will verify the names in each column and cross match with previous sheet for each and set specific conditions on color , e.g a name moved up then the previous then green and etc.