Skip to content
// field note2026 · Nov 303 min read

Calculate weekly percent change in Google Sheets when a week is missing.

Start with two known weeks

Open the working example to view it. To edit your own version, sign in to Google and choose File → Make a copy. You can also download the fictional CSV and use it in your preferred spreadsheet. Column D labels the two periods. E2 contains 5000 for the previous week and E3 contains 6000 for the current week.

The working example has this formula in H3. If you imported the CSV, paste the formula in H3 and format the cell as Percent. With both values present, the result is 20%. The formula uses English function names and comma separators. Some spreadsheet locales use semicolons between arguments.

=IF(COUNT(E2:E3)<>2,"Check both weeks",IF(E2=0,"No percentage baseline",(E3-E2)/E2))

Try the four edits that change what you should tell the reader

Current week is zero. Starting from the original example, enter 0 in E3. The result is −100%. A recorded zero is a number. If the underlying sales feed is incomplete, establish that separately before treating it as a real zero.

Current week is missing. Restore the original values, then clear E3. The result should say “Check both weeks”. Look for the missing input before emailing a decline.

Prior week is missing. Restore E3 to 6000 and clear E2. You have a current amount, but no comparison. Report $6,000 for this week on its own. Pulling an older nonempty cell would silently compare different periods.

Prior week is zero. Put 0 in E2 and keep 6000 in E3. The result says “No percentage baseline”. Write “Revenue rose from $0 to $6,000.” Calling that a 100% increase would imply that doubling zero produces $6,000.

Check a campaign summary against the weekly totals

Ask an analyst or assistant this question about the fictional two-day campaign: “Did USD Search go over its $100 budget, and did it buy leads more cheaply than USD Display?” Each source row represents one campaign, currency and day. Each budget covers the entire two-day period.

Search spent $135 for nine leads. Display spent $60 for four. Search went $35 over budget, and both paid $15 per lead. Averaging the two daily Search rates gives $50 and answers a different question. Divide total spend by total reported leads.

The CAD Search campaign has one missing lead count. Its two-day cost per lead is unknown. USD Referral has zero spend and zero leads, so its cost per lead is undefined. Keep the currencies separate. As a check, change the missing CAD count from NULL to 0, rerun, and look for CAD 35 per lead.

Check the range again next Monday

Restore E2 to 5000 and E3 to 6000. You should see 20% again. This example assumes nonnegative revenue and the same two reporting periods for both amounts. For returns or a metric that can cross zero, agree with the reader on how to describe the absolute change.

A scheduled email can arrive exactly as configured while still comparing stale cells. At the next handoff, have the person maintaining the Sheet confirm the period labels and one known total. If you send the report automatically, compare those two values with the actual received message.

Skip the boilerplate.

Describe the automation and Gnaw drafts an Apps Script starting point. Review its permissions and test with sample data before using it. Free, no login.