Websites, apps & code / Automation

Auto-tidy sheet data

You tidy the same sheet by hand every day and want it done automatically.

Fill in your details

Leave blank to use the example. Names are remembered for other prompts too (stored only on your device).

Variation:Approach

Prompt

Help me make a sheet tidy itself.

What is messy: Mixed date formats, extra spaces in names, phones with and without dashes
When to run it: Whenever new rows arrive, or nightly
Approach: Tidy into new columns with formulas and leave the original data alone.

Please:
1. First ask me 3–5 questions, then list the approach and steps (any cost, which data it touches). Only start after I say OK, and test with fake data only.
2. List the tidy-up rules in plain words and wait for my confirmation.
3. Never overwrite the original data directly; write results to new columns or a new tab and keep an untouched backup tab.
4. List rows you cannot judge for me to decide instead of guessing.
5. Add a run log: how many rows were handled each time.
6. Teach me to test on a copy of the sheet first.
Never ask me to paste passwords, API keys or bank details; if needed, show me where to store them safely (environment variables or the service settings page), not in code or sheets.

Paste it into ChatGPT, Gemini, Claude or Meta AI.

Test result

Run on 2026-12-01 with Claude Sonnet 5.5 (variation: Formulas only), using the example details above. AI never answers word for word the same twice, but the shape stays close.

What we noticed

The AI asked 5 questions and flagged that dates like 3/4 are ambiguous, so they go to a to-check column. It noted that nightly runs need Apps Script, not formulas alone.

See what the AI actually wrote

Good. I won't build anything yet; first some questions.

Please answer 5 questions:

  1. Google Sheets or Excel?
  2. Roughly how many rows and columns? Which columns hold the dates, names and phones?
  3. Which date formats appear (for example 3/4/25, 2025-04-03, 3 Apr 2025)? Also, is "3/4" 3 April or 4 March? I cannot guess that.
  4. "Whenever new rows arrive": do they come in from a form, or do you paste them?
  5. What should phone numbers look like at the end, for example 012-345 6789?

Approach and steps:

  1. Duplicate the original tab and name it "Original backup". Never touch it afterwards.
  2. Put formulas in new columns next to the data. Not a single original cell is changed.
  3. Names: TRIM removes extra spaces and PROPER fixes capitals, for example =PROPER(TRIM(B2)).
  4. Phones: strip spaces, dashes and "+", then format to one pattern (nested SUBSTITUTE; I will write it once you confirm the pattern).
  5. Dates: convert the unambiguous ones to YYYY-MM-DD and leave the rest.
  6. A "To check" column shows "please check by hand" for any row that breaks the rules, so nothing is guessed.
  7. A "Run log" tab: how many rows were handled and how many need checking. Nightly automatic runs need an Apps Script timer; with formulas alone the log is a live count or a manual entry.

Cost: free. Data touched: only new columns and tabs; the originals stay as they are.

Tidy-up rules in plain words (please confirm):

  • Names: remove extra spaces, capitalise each English word, leave Chinese names alone.
  • Phones: digits only, drop +60 and add a leading 0, format as 012-345 6789; wrong length goes to "to check".
  • Dates: clear ones become 2025-04-03; ones like 3/4/25 where day and month could be swapped go to "to check".

Test first: in Google Sheets use File > Make a copy, work on the copy with about 10 fake rows, and only move to the real sheet when the output looks right.

Once you answer and say "rules OK", I will write the formulas. You never need to give me passwords or keys for this.

AI tools that suit this

  • Gemini Suggested tool Free plan

    Google's AI; generates and edits images, works with Gmail and Docs

  • ChatGPT Suggested tool Free plan

    The most widely used AI chat, for writing, questions and images

  • Claude Suggested tool Free plan

    Strong at long documents, editing and code

Recommendations only, not sponsored. Check each site for what the free plan includes.

This site is made by FullMark Tech

Want your own website, or your shop spreadsheets automated? FullMark Tech builds business websites and custom Excel tools.

Ask on WhatsApp See FullMark Tech services