← Back to all guides
Technology · 2 min READ

How to Sum Sales by Month in Google Sheets With SUMIFS

How to Sum Sales by Month in Google Sheets With SUMIFS guide illustration

Total dated sales by month, include late-night transactions on the last day, and copy one formula down a monthly report.

Quick note

Follow these steps at your own pace. Check product terms and prices directly with providers before purchasing.

Quick answer

Use SUMIFS with two date tests. Include transactions on or after the first day of the month and stop before the first day of the following month. This counts sales stamped late on the last day as well.

Build the month column and total

  1. Put one transaction per row, with its date or timestamp in A and numeric sale amount in B. Keep headers in row 1 and the summary outside those columns.
  2. In D2, enter the first month as a date, such as =DATE(2026,1,1). In D3 enter =EDATE(D2,1) and fill down. Display the dates as month and year if you want shorter labels.
  3. In E2 enter =SUMIFS($B$2:$B,$A$2:$A,">="&D2,$A$2:$A,"<"&EDATE(D2,1)). Copy E2 down. The dollar signs keep the source ranges fixed while D2 changes to D3 for the next month.
  4. Test with sales of 40 on January 1, 15 on January 31 at 8 p.m., and 60 on February 1. January should return 55 and February should return 60.

Why the final date matters

A test that ends at midnight on January 31 can miss the rest of that day. Using a strict upper bound at February 1 gives adjacent months a clean boundary. It also keeps January sales from different years separate. For net sales, include refunds with the sign you intend them to contribute.

For an unexpected zero, test a source date and an amount with =ISNUMBER(A2) and =ISNUMBER(B2). Sheets stores dates as numbers. Changing the display format alone cannot convert imported text. See how to convert numbers stored as text. Once the totals reconcile, calculate month-over-month percentage change.

Google Sheets SUMIFS reference

SHARE THIS GUIDE

Know someone who could use this?

DISCUSSION

Comments

Comments are reviewed before they become public.

No approved comments yet. Be the first to start the discussion.