Industries
Restaurants & Food
Take restaurant orders, table bookings and payments in one WhatsApp chat. Auto-reply to common questions and cut support costs with ChatMitra.
Real Estate
Use WhatsApp automation to capture property leads, qualify them automatically, and follow up fast. See how real estate agents close more with ChatMitra.
Travel & Tourism
Use the WhatsApp Business API to capture travel leads, send itineraries, confirm bookings, and keep travellers updated. See how agencies grow with ChatMitra.
Banking & Finance
Run secure KYC, send account alerts and payment notifications on WhatsApp. Cut support load and stay within Meta's rules with ChatMitra.
Beauty & Cosmetics
Sell your catalog, recover carts and win repeat orders on WhatsApp. Auto-reply to product questions and send launches to opted-in customers with ChatMitra.
Education
Answer admission enquiries, fee and timetable questions, and keep parents updated — all on WhatsApp. Cut admin load and costs with ChatMitra.
EduTech
Capture course leads, qualify them and onboard learners on WhatsApp. Automate replies and cut lead-qualification cost with ChatMitra's no-code chatbot.
Events & Webinars
Handle event registrations, reminders and RSVPs in one WhatsApp chat. Cut no-shows, automate FAQs and keep attendees updated with ChatMitra.
Freelancers & Consultants
Capture leads, send proposals and chase invoices in one chat. WhatsApp automation for freelancers and consultants with ChatMitra — from ₹0.20 a chat.
Health & Wellness
Book appointments, send reminders and answer client questions in one WhatsApp chat. Auto-reply to routine queries and cut support costs with ChatMitra.
Home Decor
Share your home decor catalog, take orders and send delivery updates on WhatsApp. Automate FAQs and cut support costs with ChatMitra.
IT Services
Use the WhatsApp Business API to qualify leads, run support over chat, and wire WhatsApp into your stack with webhooks. How IT companies scale with ChatMitra.
Marketing Agencies
Use WhatsApp automation to capture leads, run campaigns and manage multiple client brands from one account. How agencies scale on WhatsApp with ChatMitra.
Offline & Retail
Turn shop footfall into a WhatsApp list. Share catalogs, add a QR-to-chat at the counter and bring buyers back — with ChatMitra from ₹0.20 per chat.
Spas & Salons
Use the WhatsApp Business API to take spa and salon bookings, cut no-shows with automated reminders, and rebook regulars. How salons grow with ChatMitra.
Automotive
Use the WhatsApp Business API for automotive dealerships to qualify buyers, book test drives and send service reminders — automated, on one chat, with ChatMitra.
All Industries
Browse every industry guide
Back to WorkflowMitra Blog
App Integrations & Data Sync

Formulas Not Copying to New Rows in Google Sheets? Fixes for Rows Added by Automations

Nikunj Gohil
Nikunj Gohil
16 min read
New spreadsheet rows ride in on a conveyor belt and pass under one dispenser mounted at the top, which fills each row's Total cell, while older rows behind carry hand-written formulas that stop short of the new ones

Quick Summary

When an automation adds a row to Google Sheets, it writes values only. A formula you typed or dragged into the rows that already existed doesn't follow the new row, and formulas pre-filled into empty rows make Google treat those rows as taken, so new data lands below them, often at row 1001. The dependable fixes are: put one ARRAYFORMULA in the header row so it covers every row, limit the automation's column range to the columns it fills, write a self-adjusting formula such as =INDEX(D:D,ROW())*INDEX(E:E,ROW()) with each row, or calculate the value in the workflow and write the result. In WorkflowMitra, powered by ChatMitra, those are settings on the Google Sheets Add row(s) step.

You set up a sheet with a Total column, typed =D2*E2, dragged it down, and connected an automation that adds a row for every new order. A week later the newest rows have no total. Or worse, the orders stopped appearing under the old ones and turned up hundreds of rows lower, at row 1001.

Formulas don't copy to new rows when an automation adds them because the automation writes values through the Google Sheets API, and the API doesn't carry a formula down from the row above. Formulas that were dragged into empty rows in advance cause the second problem: Google treats those rows as part of your data, so new rows land below them. The fixes are to replace per-row formulas with one ARRAYFORMULA in the header row, limit the automation's range to the columns it fills, have the automation write a formula that finds its own row, or calculate the value in the workflow.

This guide explains what actually happens when a row is appended, how to tell which of three problems you have, and how to fix each one with WorkflowMitra, powered by ChatMitra, or any other tool that adds rows to Google Sheets.

Three problems that look like one

People describe all of these as “my formulas stopped working”, but they have different causes and different fixes. Find yours first.

What you seeWhat happenedFix
New rows sit right under the old ones, but the formula column is emptyThe formula only exists in the rows it was typed or dragged intoOne ARRAYFORMULA in the header, or write the formula with each row
New rows appear far below the data, often at row 1001Formulas pre-filled into empty rows made those rows count as dataRemove the pre-filled formulas, or limit the automation's column range
A formula that was there has gone, or the column shows #REF!The automation wrote a value, or a blank, into the formula's cellTake the formula column out of the mapping and out of the range

You can have two at once. A common story: someone notices problem one, drags the formula down to the bottom of the sheet to “cover future rows”, and creates problem two.

Why a new row arrives without your formula

When you type a value in the row under your data, Google Sheets sometimes offers to fill the formula in for you. That help belongs to the editor in your browser. An automation doesn’t use the editor; it calls the Google Sheets API, and the API’s append method does exactly one thing: it writes the values in the request into the first empty row below your data.

That’s the whole contract. Google’s reference for spreadsheets.values.append describes it as searching the given range for a “table” of existing data and writing the new values on “the next row of the table, starting with the first column of the table”. Nothing in that description looks at the row above or copies anything from it.

So a formula you dragged from F2 to F40 lives in F2 to F40. When order 41 arrives, F41 is empty because nobody put anything there.

Apps Script isn’t the escape hatch it seems either. A script that copies the formula down onEdit never runs for these rows: Google’s Apps Script trigger documentation says plainly that “script executions and API requests don’t cause triggers to run”.

Why rows land at row 1001

The obvious workaround for an empty formula column is to drag the formula down in advance, all the way to the last row. Most people guard it so empty rows stay blank: =IF(A2="", "", D2*E2). The sheet looks tidy, the formula is waiting in every row, and the next automated order lands at row 1001.

Here’s why. The append method writes below the table it detects, and a cell holding a formula has content, even when the formula shows nothing. A new Google Sheet has 1,000 rows, so a formula dragged to the bottom makes rows 2 to 1000 part of the table. The first row after the table is 1001, and Google adds rows to the sheet to make room. The reference says so too: “adding data to the end of the sheet will still insert new rows or columns so the data can be written.”

A long row of numbered parking bays where every bay already holds a small reserved marker shaped like a formula, so a new delivery van carrying an order row drives past them all and parks in bay 1001 at the far end
Rows holding a formula count as data, so a pre-filled column pushes new rows to the very end.

Other things move the landing point in the same way. A note someone typed a few rows below the data, a total row at the bottom, or a stray value in a far-off cell can all change which block of cells Google treats as the table. If rows start appearing in odd places, look for content below your data before you look for a bug.

Why formulas disappear, or turn into #REF!

The third problem is the automation writing into the formula column. It happens in two ways.

A blank overwrites the formula. In the Sheets API an empty string is an instruction, not an absence. Google’s guide to writing values says: “To clear data, use an empty string”. A tool that sends a blank value for every column it doesn’t fill will clear any formula sitting in those cells of the new row. If your formulas were pre-filled, the automation erases them one row at a time.

A value blocks an ARRAYFORMULA. An ARRAYFORMULA writes its results into the cells below it, and it refuses to overwrite anything. If an automation puts a value into one of those cells, the whole column of results is replaced by a #REF! error that reads “Array result was not expanded because it would overwrite data in F57.” Delete the value in the named cell and the results come back.

Both come down to one rule: the automation must never touch a formula column.

What WorkflowMitra’s Add row(s) step actually sends

It helps to know exactly what your tool does, because the fixes depend on it. Here is how the Google Sheets step behaves with the Add row(s) operation, checked in WorkflowMitra’s source code and by running the step’s code against a stand-in for Google’s API on 22 October 2026:

  • It uses Google’s append method, on the whole tab unless you set Column range (in the step, below the tab picker). With a range such as A:E, Google looks for the table only inside columns A to E.
  • It doesn’t insert rows. It writes into the empty rows under your data, so formulas elsewhere that refer to fixed rows don’t shift.
  • Columns are written by position. You map values to columns, and each mapped column receives its value.
  • Unmapped columns to the right of the last mapped column aren’t written at all. If Total is column F and you map A to E, the request contains five values and F is never touched.
  • Unmapped columns between mapped ones are sent as empty strings. If Total sits in column C and you map A, B and D, the step sends a blank for C, which clears whatever is in C on the new row.
  • Write values (under Advanced) decides how text is read. Like typing it in (formulas work) is the default and parses =… as a formula, 1348.5 as a number and dates as dates. Exactly as written (no formulas) stores every value as plain text.
  • The step’s output includes updatedRange, the range Google actually wrote, such as Orders!A1001:E1001. Open the run’s history and you can see where each row went.

Those last two points about unmapped columns matter most. Put formula columns to the right of everything the workflow fills, and the workflow can’t reach them.

Diagnose it in two minutes

Before changing anything, collect three facts:

  1. Where did the last row go? Open the latest run in the workflow’s history and read updatedRange on the Google Sheets step. A row number far below your data means problem two.
  2. Where do the formulas end? Click the first formula cell and press Ctrl+Down (Cmd+Down on a Mac). If the cursor jumps past your data, formulas were pre-filled.
  3. Which columns does the step write? Look at the mapping. Any formula column that is mapped, or unmapped but to the left of a mapped column, is at risk.

Then pick a fix. All four start with the same first step.

Step 0 for every fix: set the column range

Open the Google Sheets step, find Column range, choose Custom range and enter only the columns the workflow fills, for example A:E. The mapping then offers only those columns.

This does two jobs at once. Google looks for the table only inside A to E, so formulas in F, G and beyond no longer affect where rows land. And because the workflow can only write A to E, it can’t clear or block anything to the right. If the workflow fills columns that aren’t side by side, move them next to each other; it’s the simplest way to keep the boundary clean.

Clean up rows that already landed far below

Then remove the damage the old setup left behind, in this order:

  1. Pause the workflow so no new row arrives halfway through the clean-up.
  2. Select the stranded rows at the bottom (from row 1001 down, or wherever updatedRange pointed), cut them, and paste them into the first empty row under your real data. Cut and paste rather than copy, so no duplicates remain.
  3. Delete the empty rows between the data and the old landing point, including the pre-filled formulas they hold. Deleting whole rows, rather than clearing cells, also removes stray formatting and notes.
  4. Check the last row of data with Ctrl+Down from A1. It should stop on your newest order.
  5. Turn the workflow back on and watch updatedRange on the next run.

If the stranded rows went out in messages or reports while they sat at the bottom, nothing needs resending: the data was written correctly, just in the wrong place.

Fix 1: one ARRAYFORMULA in the header row

This is the right fix for most sheets. Instead of a formula in every row, one formula in the header cell calculates the whole column, so a row that arrives tomorrow is covered the moment it lands.

For an order log where D is quantity and E is unit price, clear F2 downwards and put this in F1:

={"Total"; ARRAYFORMULA(IF(A2:A="", , D2:D*E2:E))}

Reading it from the outside in:

  • {"Total"; …} puts the heading in F1 and the results underneath, so the header and the formula live in one cell and nobody overwrites the heading by accident.
  • ARRAYFORMULA(…) applies the calculation to every row in the ranges A2:A, D2:D and E2:E. Google’s ARRAYFORMULA help page covers the function.
  • IF(A2:A="", , …) leaves a row blank when it has no order ID. Notice the empty argument between the commas: it returns a truly empty cell rather than the empty text "", which keeps the column clean when you read it back.

Then keep the workflow out of column F. With a column range of A:E, it can’t reach it.

A tower of glasses shaped like a spreadsheet column, where one pour into the top glass, the header cell, overflows and fills every glass below it, including three new glasses just added at the bottom
One formula in the header calculates every row, including rows that haven't arrived yet.

What ARRAYFORMULA can’t do on its own

Most row-by-row arithmetic and text work translates directly: D2:D*E2:E, B2:B&" "&C2:C, ROUND(…, 2) and IF all work over whole columns. Functions that summarise a range, such as SUMIFS or COUNTIFS, still return one number inside ARRAYFORMULA. For a per-row version of those, Google Sheets has BYROW with LAMBDA, which runs a formula once per row. If a formula is too complex to convert at all, use Fix 2 instead.

Sorting is safe: the formula recalculates in the new order. Filters and filter views are safe too. What isn’t safe is typing into the formula column, which brings back the #REF! error.

Fix 2: write a formula that finds its own row

Sometimes you want a real formula in each row, perhaps because people copy rows elsewhere or because the calculation doesn’t convert to an array. The workflow can write the formula itself. The catch is that it doesn’t know the row number until Google has written the row, so =D57*E57 is impossible to build in advance.

The answer is a formula that works out its own row:

=INDEX(D:D,ROW())*INDEX(E:E,ROW())

ROW() returns the formula’s own row number, and INDEX(D:D, ROW()) picks the value in column D on that row. The same text works on any row, so the workflow can send it unchanged every time.

In WorkflowMitra, map column F to that text exactly, with no {{ }} around it, and leave Write values on Like typing it in (formulas work). We ran this mapping through the step’s code: the request carried =INDEX(D:D,ROW())*INDEX(E:E,ROW()) as the sixth value, ready for Google to parse as a formula. In bulk mode, where one Add row(s) step writes a row per line item, every row received the same formula and each one calculates its own line.

Two things to watch:

  • This fix writes into the formula column, so don’t combine it with Fix 1 on the same column, and set Column range to the whole tab or to a range that includes F.
  • “Exactly as written” stores the formula as text. People switch to it to stop phone numbers such as +91-98… turning into negative numbers, because a leading + looks like the start of a formula. You can keep Like typing it in and still protect the phone column: put an apostrophe in front of the value in the mapping, '{{ $trigger.phone }}. Typed into Sheets, a leading apostrophe means “treat this as text” and isn’t shown in the cell.

Fix 3: calculate in the workflow and write the result

If the number matters to the workflow itself, calculate it there. Say the same workflow sends the customer a WhatsApp confirmation that quotes the order total. The Add row(s) step returns updatedRange and counts, not the result of a formula Google calculates afterwards, so the confirmation can’t quote the sheet’s total from the same run. Calculating in the workflow gives every step the same number.

WorkflowMitra’s expressions use functions rather than + and *. These are the mappings we ran for an order of 3 items at ₹449.50 with a 10% discount:

ColumnMappingWritten
F Total{{ multiply($trigger.qty, $trigger.price) }}1348.5
G After discount{{ round(multiply(multiply($trigger.qty, $trigger.price), subtract(1, divide($trigger.discount, 100))), 2) }}1213.65

One detail cost us a test run: multiply takes two values. multiply(3, 449.5, 0.9) ignored the third and returned 1348.5, so nest the calls as shown. Our guide to calculations in workflows covers percentages, rounding and the other silent mistakes in detail.

The cost is in what happens later. A written value is frozen. If someone corrects the quantity in the sheet next week, the total doesn’t follow. Use this fix when the order is final once it’s logged, and Fix 1 when people edit rows afterwards. Calculating inside the mapping doesn’t add a step, so it doesn’t add credits either: the Google Sheets step costs one credit per run in WorkflowMitra, whether it writes one row or a batch.

Fix 4: keep raw rows and formulas on separate tabs

Teams that share a sheet often end up here, and it’s the most robust layout. The workflow writes only to a raw tab that nobody edits, say Orders_raw. A second tab, Orders, reads it with formulas and is where people look, sort and add notes.

One QUERY in A1 of the second tab can rebuild the table with a calculated column:

=QUERY(Orders_raw!A:E, "select A, B, C, D, E, D*E where A <> '' label D*E 'Total'", 1)

Because the raw tab holds no formulas at all, nothing in it can push rows to 1001, and nothing the workflow writes can collide with a formula. The trade-off is that the second tab is read-only in practice: notes typed next to QUERY results won’t move with their rows when the order changes. If people need to annotate each order, give them columns on the raw tab to the right of the workflow’s range, as in the worked example below.

Don’t forget the formulas that summarise the column

The row-level formula isn’t the only one that can miss new rows. A grand total such as =SUM(F2:F500) on another tab, a chart range or a conditional formatting rule that stops at a fixed row will quietly ignore order 501.

When you insert a row inside a range by hand, Google Sheets stretches the ranges that cover it. An automation writes below the existing data instead, so a range that ends at a fixed row doesn’t grow. Use open-ended ranges wherever a column keeps growing: =SUM(F2:F), =COUNTA(A2:A), and chart and formatting ranges set to whole columns. For the same reason, a dashboard tab that uses QUERY or FILTER over whole columns keeps up with new rows on its own.

Which fix should you use?

Your situationUse
Simple per-row maths or text, people may edit inputs laterFix 1: ARRAYFORMULA in the header
A complex formula that won't convert to an arrayFix 2: write a self-adjusting formula with each row
Later steps (messages, CRM updates) need the numberFix 3: calculate in the workflow
Several people edit the sheet, or the layout keeps changingFix 4: raw tab plus a formula tab
Rows are landing far below the dataStep 0 first, whichever fix you choose

Fixes 1 and 3 combine well: calculate the total in the workflow for the confirmation message, and let an ARRAYFORMULA produce the same figure in the sheet so later edits stay correct.

A worked example: a website order log

Here’s the full setup for a small online store that logs each order from a website webhook and lets the team track status by hand.

The sheet, tab Orders:

ColumnHeadingFilled by
AOrder IDWorkflow
BCustomerWorkflow
CPhoneWorkflow
DQtyWorkflow
EUnit priceWorkflow
FTotalARRAYFORMULA in F1
GStatusThe team, by hand

The workflow:

  1. Trigger: Webhook. The store posts each new order as JSON with order_id, customer, phone, qty and price. Our guide to sending a webhook to Google Sheets covers the trigger set-up.
  2. Google Sheets, Add row(s). Tab Orders, Column range Custom A:E, Write values Like typing it in. Map A to {{ $trigger.order_id }}, B to {{ $trigger.customer }}, C to '{{ $trigger.phone }}, D to {{ $trigger.qty }} and E to {{ $trigger.price }}.
  3. Optional: WhatsApp. Send the confirmation through ChatMitra with the total from {{ multiply($trigger.qty, $trigger.price) }}.

In the sheet: delete everything from F2 down, put the ARRAYFORMULA from Fix 1 in F1, and remove any empty rows below the data that still hold old formulas.

Why it holds up: the workflow writes five columns and can’t reach F or G. Google looks for the table only in A to E, so neither the formula’s output nor the team’s status notes change where rows land. Every new order gets a total the moment it arrives, and a corrected quantity updates the total straight away. Status notes stay on the row they were typed on, because the workflow never inserts rows above them.

If the same orders also need to reach a CRM or a second sheet, the patterns in our guide to preventing duplicate rows in Google Sheets keep a retried webhook from adding the same order twice.

Test the change without damaging the real sheet

Make a copy of the tab and point the step at the copy while you rework it. WorkflowMitra’s Safe Test Mode doesn’t help here: it stands in for messaging steps such as WhatsApp and Slack, but Google Sheets steps write real rows even in a test run. Our guide to testing an automated workflow explains what each test option does and doesn’t fake.

Run three tests on the copy: one ordinary row, one row with a blank optional field, and, if you use bulk mode, one order with several line items. After each, check updatedRange in the run output, then check that the new row has its total and that no formula above it changed.

Troubleshooting

SymptomLikely causeFix
Total column empty on new rows onlyFormula was dragged, not arrayedFix 1, or Fix 2
updatedRange shows row 1001 or similarPre-filled formulas, or stray content under the dataStep 0; delete the empty formula rows; move the stranded rows up
Whole column shows #REF!A value sits in the ARRAYFORMULA's pathClear the cell named in the error; take the column out of the mapping
Formula vanished on the new rowThe step sent a blank for an unmapped column left of a mapped oneMove formula columns to the right, or narrow the column range
Formula shows as text, starting with =Write values is set to Exactly as writtenSwitch to Like typing it in; protect phones with an apostrophe
Phone number became a negative numberA leading + was read as a formulaMap '{{ $trigger.phone }} with an apostrophe
Totals right in the sheet, wrong in the messageThe message used a different calculationUse the same expression in both, or Fix 3 everywhere

If the sheet itself raises errors, such as a permission or quota message, our guide to Google Sheets automation covers the step’s settings and the errors it reports.

How WorkflowMitra fits

None of these fixes is specific to one tool. Any automation that adds rows through the Sheets API meets the same three problems, and the sheet-side fixes (Fix 1 and Fix 4) work for all of them. Where tools differ is in how much control you get over the write.

In WorkflowMitra the controls that matter are on the Add row(s) step: Column range limits both where Google looks for your table and which columns the step can write; Write values decides whether text becomes a formula; the mapping accepts formula text and calculated expressions; and updatedRange in the run output tells you where each row landed. The Google Sheets step costs one credit per run, including bulk writes, and calculations inside the mapping don’t add a step.

Be clear about the limits too. WorkflowMitra can’t make Google copy a formula down: no tool can through the API. And a workflow that writes a calculated value doesn’t update when someone later edits the inputs, which is why the sheet-side formula is still the right home for numbers people correct.

Start with the column range

If you do one thing today, set Column range on every step that adds rows so it covers only the columns the workflow fills, then move your formula columns to the right of that range. That alone stops rows landing at 1001 and stops the workflow clearing formulas. Then replace dragged-down formulas with one ARRAYFORMULA per column, and calculate in the workflow anything a later step needs. You can rebuild an existing sheet workflow this way on a 14-day WorkflowMitra trial with no card needed.

WorkflowMitra details in this guide come from its source code and editor as of 22 October 2026; the Add row(s) mappings, formula text and calculations were run through the Google Sheets step's code against a stand-in for Google's API, not a live spreadsheet. Google Sheets details were checked on 22 October 2026 in Google's documentation for spreadsheets.values.append, reading and writing cell values, ValueInputOption and Apps Script simple triggers, and in the Google Docs Editors Help page for ARRAYFORMULA.

FAQ

Frequently Asked Questions

Questions people ask when an automation adds rows to Google Sheets and their formulas stop working.

Automations add rows through the Google Sheets API, which writes the values you send and nothing else. Google Sheets doesn't copy a formula from the row above into a row that arrives this way, so a formula you dragged down only exists in the rows it was dragged into. Rows added after that have an empty formula column.

WorkflowMitra, powered by ChatMitra

Automate the work between your apps

Build workflows with triggers, conditions and actions, then test them before they go live. Try WorkflowMitra free for 14 days, no card required.