Free checkup
  1. Home
  2. Articles
  3. Spreadsheets and automation

How to automate a spreadsheet and stop typing.

Laptop with an open spreadsheet on a small office desk, with folders beside it

How do you automate a spreadsheet?

Start by looking at where the time goes. At a small business, it is almost always three tasks: typing in what already exists somewhere else, redoing calculations and copying data from one tab to another. Each has a fix:

Manual taskHow to automate it
Redoing sums and totalsFormulas that calculate on their own
Logging an expense, order or visitA phone form that writes to the spreadsheet
Typing in statements and sales reportsImporting the file the bank or system exports
Typing in invoices, bills and receiptsAI that reads the photo and fills in the fields

Do one step at a time, in that order. Formulas only work well when data always arrives in the same format, and that is what forms and imports ensure. Before anything else, organize the spreadsheet: one row per record, one piece of information per column, dates formatted as dates and amounts as numbers. There are more examples in the spreadsheet and automation articles.

How do you automate a spreadsheet in Excel?

Two Excel features already handle much of a small business's work:

  • The SUMIF function. It adds the values in a range that meet a condition. With it, total sales by salesperson, by day or by payment method update on their own with each new row. Example: =SUMIF(B2:B500,"Pix",C2:C500) adds up column C only for rows where column B says "Pix".
  • Get Data, from Power Query. It combines text, CSV or XML files saved in a folder into a single table. The path is Data, Get Data, From File, From Folder. If you download your bank statement or card machine report every month, always save it to the same folder and let Excel combine everything.

With these two features, the routine becomes this: the new file goes into the folder, Excel combines it with the earlier ones when you refresh the query, and the totals by category show the result without anyone typing a number. For money tracking, the article on cash flow has a ready-made template with these formulas.

How do you automate a spreadsheet in Google Sheets?

In Google Sheets, the SUMIF function exists with the same name and the same logic as in Excel. Alongside it, the feature that helps most is Google Forms connected to the spreadsheet.

It works like this: you create a form with the questions you want to log, for example date, supplier, amount and payment method. In the form, open the Responses tab and use the option to select a destination for responses. You can create a new spreadsheet or pick an existing one. From then on, each form submission becomes a row in the spreadsheet.

In practice, this covers common situations:

  • an employee logs each petty cash expense on their phone, right away;
  • a technician at an auto shop or repair service records each job done;
  • a salon's front desk logs each appointment with the amount and the professional;
  • a shop records each order with name, item and delivery date.

Since nobody types directly into the spreadsheet, it is hard to delete a formula by accident. Formulas on other tabs read the responses and calculate the totals. It is the same approach we use for salons, auto shops and offices and for street retail.

How do you bring in data from other systems without copy and paste?

Almost every system a small business uses exports some report as a file: the bank, the card machine, the point-of-sale system, the online booking tool, the online store. The most common format is CSV, a text file with one row per record and columns separated by commas or semicolons, which any spreadsheet can open.

There are three levels of automation for these files:

  1. A fixed folder. You download the file and always save it in the same place. The spreadsheet combines everything, as with Excel's Get Data feature.
  2. Scheduled delivery. Some systems email the report on a fixed day and time. An automation grabs the attachment and saves it to the folder.
  3. Direct integration. When the system offers an API, which is a doorway for another program to fetch the data, the spreadsheet updates with no file at all.

The right level depends on volume. If you download one statement a month, a fixed folder is enough. If you close out sales from several channels every day, integration saves more time. Automatic bank reconciliation is a good first use for this kind of import.

Can you use AI with spreadsheets?

Yes, and the most useful case for a small business is reading documents that someone types in today. You send a photo of an invoice, a payment slip or a Pix receipt by WhatsApp or email. AI reads the document, picks out the date, amount, supplier and type of expense, and writes a new row in the spreadsheet.

Other uses that already work well:

  • categorizing entries with messy descriptions, such as bank statement lines;
  • merging lists where names are written differently, like "Maria S." and "Maria Souza";
  • writing the week's summary in plain language from the numbers;
  • building a formula when you describe what you want to calculate.

Two precautions. First, AI makes mistakes, especially with blurry photos or handwritten documents, so someone checks before an entry counts. Second, documents with customer data fall under LGPD, Brazil's data protection law, and the AI and LGPD guide explains what to watch for. See full examples in the self-filling spreadsheet and in AI in finance.

What do you do with the numbers afterward?

A self-filling spreadsheet only helps if someone looks at it. The simplest way to make sure of that is to have the numbers reach the owner, so the owner doesn't have to open the file.

The daily summary of Lotaloja Comanda does exactly that: it shows what came in, what is late and what is still due. Anyone who wants the detail opens the spreadsheet.

To start, pick the one spreadsheet that takes up most of your week today and automate only that one. If you don't know which, the free 3-minute assessment helps point it out. Lotaloja sets up this spreadsheet as a one-off routine automation project.

Good to know

Questions we often get.

Do I need to know how to code to automate a spreadsheet?

For formulas, forms and folder imports, no. Integrations with other systems and AI document reading usually need someone experienced to set up.

Excel or Google Sheets: which should I pick?

Use whichever your team already knows. Both have SUMIF and data import. Google Sheets connects directly to Google Forms.

Can AI get an invoice amount wrong?

It can, especially with a poor photo. That is why entries made by AI get a quick check before they count.

Can several employees log entries at the same time?

Yes, through the form. Each submission becomes a new row, and nobody erases what someone else entered.

Start with the free checkup.

6 to 8 tap-to-answer questions. You get in writing what can be automated.