Automate a spreadsheet with rules in Sheets
Use rules in Foxcolab Sheets to stamp dates, highlight rows, sort data, run macros and send notifications when a cell changes, when the spreadsheet opens or at a set time each day.
Updated 3 min read
In short
To automate a spreadsheet in Foxcolab Sheets, choose Extensions → Rules (automations) and click New rule. Pick when it runs (a cell in a range is edited, the workbook is opened, or every day at a time) and what it does: set a value, format, sort a range, run a macro or send a notification. Rules run in the browser of someone with edit access, never on Foxcolab's servers.
Key takeaways
- Open Extensions → Rules (automations) and click New rule. No code needed.
- Three triggers: A cell in a range is edited, The workbook is opened and Every day at a time.
- Five actions: Set a value, Format, Sort a range, Run a macro and Send a notification.
- Rules run in the browser of an editor who has the spreadsheet open, so your end-to-end encrypted data never has to be readable on a server.
- A daily rule runs only if someone with edit access has the spreadsheet open at that time.
Last reviewed 4 December 2026
Rules automate a spreadsheet in Foxcolab Sheets: when something happens, Sheets does something for you. Stamp the date when a status changes to Done, highlight a row when a payment arrives, sort a list every morning, or tell the team when a figure changes. Choose Extensions → Rules (automations) to build one from menus, with no code.
Sheets is end-to-end encrypted, so Foxcolab's servers can't read your cells. Rules run where your data is readable: in the browser of someone with edit access who has the spreadsheet open.
Create a rule#
Open the rules panel
Choose Extensions → Rules (automations). The Rules tab of the panel opens on the right.
Start a rule
Click New rule and type a Name. If you selected cells first, they're already filled in as the range.
Choose when it runs
Under When, pick a trigger and fill in its details.
Choose what it does
Under Then, pick an action. Click Add action to do more than one thing.
Save
Click Save. The rule is switched on straight away.
Choose when a rule runs#
| Trigger | When it runs |
|---|---|
| A cell in a range is edited | When someone changes a cell in the range you enter, such as C2:C500. Add a condition under Only when the new value, such as Text is exactly Done or Greater than 10000, to run it only for some values. |
| The workbook is opened | Each time someone with edit access opens the spreadsheet. |
| Every day at a time | At the time you set, by the clock of the computer that runs it. One editor's browser runs it once, while the spreadsheet is open. |
An edit rule runs once for each row that changed. Paste 30 statuses and it runs 30 times. If nobody with edit access has the spreadsheet open at a daily rule's time, the rule doesn't run that day.
Choose what a rule does#
- Set a value writes into a cell. Enter a column letter, such as D, to write in that column of the edited row, or a cell address for one fixed cell. Choose Date and time now, Today’s date, Name of the editor, Clear it, or This value… for your own text or a formula.
- Format colors cells. Choose The edited row (within the range), One column of the edited row or A fixed range, then a fill color, Bold or Strike.
- Sort a range sorts rows by one column, A → Z or Z → A. Leave the header row out of the range, such as A2:F500.
- Run a macro replays a recorded macro. See Record and run macros in Sheets.
- Send a notification alerts Notify me (the rule’s creator), Notify the owner and editors or Notify everyone with access. Write the message with {cell}, {value}, {sheet} and {user}, which Sheets fills in.
Notifications appear in the Notifications list in Foxcolab Sheets as "A rule sent an alert in" followed by the spreadsheet's name and the rule's name, so people can tell which rule sent it. Give rules clear names; a rule without one is described by its trigger instead. The message is encrypted for each person, and nobody is notified about their own edit.
Example: stamp the date a task is finished#
A task list has the task in column A, the owner in B, a Status dropdown in C and a Done on column in D.
- Click New rule and name it Stamp done date.
- Under When, choose A cell in a range is edited, pick the Tasks sheet and enter C2:C500.
- Under Only when the new value, choose Text is exactly and type Done.
- Under Then, choose Set a value, type D and choose Today’s date.
- Click Add action, choose Send a notification and Notify the owner and editors, with the message
{user} finished a task ({cell} on {sheet}). - Click Save.
From then on, anyone who sets a task to Done gets the date in column D, and the rest of the team gets an alert. A rule's own changes never set off other rules, so stamps and formats can't loop.
Turn off, change or delete a rule#
The rules list shows each rule with its trigger, such as "When Tasks!C2:C500 is edited and matches". Use the switch next to a rule to turn it off without losing it. Click a rule to change it, or click Delete in the editor and confirm to remove it. A deleted rule stops running for everyone.
Under each rule, Last: shows what happened the last time it ran while you had the spreadsheet open, such as "Ran for 3 rows" or the reason it failed. Rules act with the permissions of the person whose browser runs them, so a rule can't write into a protected range that person can't edit.
Only people with edit access can create or change rules. Rules are saved inside the spreadsheet and end-to-end encrypted with it.
Related#
Frequently asked questions
Do rules run when nobody has the spreadsheet open?
No. An edit rule runs in the browser of the person who makes the edit. An opening rule runs when someone with edit access opens the spreadsheet. A daily rule runs at its time only if someone with edit access has the spreadsheet open then.
Can a rule send an email?
No. Send a notification puts an alert in the Notifications list in Foxcolab Sheets for the people you choose. People aren't notified about their own edits.
Can a rule's changes trigger another rule?
No. Rules react to edits people make, not to changes made by other rules, so two rules can't set each other off in a loop.
Who can create rules?
People with edit access. Viewers and commenters can see the list of rules, but they can't open, change or switch them off.
Did this answer your question?
One click, no account needed.
Still need help?
Our support team can take it from here.