Home / Sheets questions cookbook / Monthly sales report
Google Sheets · Question cookbook

How to Make a Monthly Sales Report in Google Sheets

Revenue and orders for each of the last twelve months, in a table that updates itself. Two formulas, copied down twelve rows.

By · Published November 8, 2026

The short answer: list the first day of each month in column A, then =SUMIFS(Orders!$J:$J, Orders!$A:$A, ">="&$A2, Orders!$A:$A, "<"&EDATE($A2,1)) totals that month's revenue. In the sample data, the twelve months from November 2025 to October 2026 add up to $1,572,281 across 2,547 orders.

The sample data

ABCDEFGHIJK
1DateOrder IDCustomerRegionChannelProductCategoryQtyUnit priceRevenueCost
22025-01-01SO-10001Tin Roof CaféNortheastSales repSip Lids (case of 1,000)Supplies654324198
32025-01-01SO-10001Tin Roof CaféNortheastSales repEspresso Roast 5 lbCoffee1068680370
42025-01-01SO-10002Foxglove CaféNortheastOnline storeSip Lids (case of 1,000)Supplies1545433
52025-01-01SO-10002Foxglove CaféNortheastOnline storeCold Brew Concentrate 1 galCoffee842336152
62025-01-01SO-10003Ember CaféMidwestOnline storeSip Lids (case of 1,000)Supplies454216132
…8,115 more rows
Orders

Sample data: a tab named Orders with 8,120 order lines from January 2025 to October 2026, one row per order line. Revenue is Qty × Unit price; Cost is the line's cost of goods (Qty × unit cost). Download orders.csv and import it (File → Import) to follow along. The business is fictional.

The classic way: a month column plus SUMIFS

On a new tab, put headings in row 1 (Month, Revenue, Orders). Then fill in the months: =DATE(2025,11,1) in A2 and =EDATE(A2,1) in A3, copied down to A13. Format column A as a month (Format → Number → Custom date and time → "MMM yyyy").

Revenue for each month, in B2 and copied down:

=SUMIFS(Orders!$J:$J, Orders!$A:$A, ">="&$A2, Orders!$A:$A, "<"&EDATE($A2,1))

Number of orders, in C2 and copied down. Each order has several lines, so count distinct order IDs rather than rows:

=COUNTUNIQUEIFS(Orders!$B:$B, Orders!$A:$A, ">="&$A2, Orders!$A:$A, "<"&EDATE($A2,1))

A Total row underneath is =SUM(B2:B13) and =SUM(C2:C13). Using "on or after the 1st, before the 1st of next month" catches every day of the month, including the 31st and any rows with a time on them.

Example on sample data
fx=SUMIFS(Orders!$J:$J, Orders!$A:$A, ">="&$A2, Orders!$A:$A, "<"&EDATE($A2,1))
ABC
1MonthRevenueOrders
2Nov 2025$146,603225
3Dec 2025$129,419228
4Jan 2026$122,587194
5Feb 2026$103,390161
6Mar 2026$130,195220
7Apr 2026$128,136205
8May 2026$125,646197
9Jun 2026$136,411229
10Jul 2026$127,769212
11Aug 2026$141,015223
12Sep 2026$138,635220
13Oct 2026$142,475233
14Total$1,572,2812,547
SummaryOrders

Computed from the sample CSV above. Cells formatted as currency and percent.

Make it roll. To always show the last twelve full months, replace A2 with =EDATE(EOMONTH(TODAY(),-1)+1, -12). That is the first day of this month, minus twelve months. Everything below recalculates on its own.

Prefer one QUERY? This returns year, month and revenue in one go:

=QUERY(Orders!A:K, "select year(A), month(A)+1, sum(J) where A >= date '2025-11-01' and A < date '2026-11-01' group by year(A), month(A)+1 order by year(A), month(A)+1 label year(A) 'Year', month(A)+1 'Month', sum(J) 'Revenue'", 1)

Note the +1: QUERY's month() counts January as 0. Forget it and every month is labeled one too early.

Gotchas

The one-cell way: =QUIRIZ

With the Quiriz add-on for Google Sheets, you type the question instead of building the formula. =QUIRIZ does not read the cells around it: it answers from the datasets in your Quiriz account. For this example, upload orders.csv as a dataset, or connect your Shopify store. You can also add a Google Sheet itself as a dataset that refreshes on a schedule. Then, in any empty cell:

=QUIRIZ("revenue and number of orders by month from November 2025 to October 2026, with a total row", "table")

The "table" mode spills the answer down and to the right from that cell, header row first:

Example on sample data
fx=QUIRIZ("revenue and number of orders by month from November 2025 to October 2026, with a total row", "table")
ABC
1MonthRevenueOrders
2Nov 2025$146,603225
3Dec 2025$129,419228
4Jan 2026$122,587194
5Feb 2026$103,390161
6Mar 2026$130,195220
7Apr 2026$128,136205
8May 2026$125,646197
9Jun 2026$136,411229
10Jul 2026$127,769212
11Aug 2026$141,015223
12Sep 2026$138,635220
13Oct 2026$142,475233
14Total$1,572,2812,547
Sheet1

Same figures as the formula result above, from the same sample data. The spilled cells are plain numbers, so you can format them, total them or chart them; here they are formatted as currency and percent. Column headings are written with each answer and may be worded differently.

The other modes: "verbose" (the default) answers in a sentence, "bullets" writes two to four points one per cell, and "notes" adds how the figure was calculated. Install Quiriz for Google Sheets and try the question on your own data.

Ask the question, get the table

Quiriz answers business questions in a Google Sheets cell, from your imported files, scheduled Google Sheets and connected tools. Free to start.

Install for Google Sheets →

Free on the Google Workspace Marketplace. Or try it on sample data first, no signup.

Frequently asked questions

How do I sum sales by month in Google Sheets?
Put the first day of each month in a column, then use =SUMIFS(revenue, date, ">="&A2, date, "<"&EDATE(A2,1)) next to it. QUERY with group by year(A), month(A)+1 also works; remember that QUERY numbers January as 0.
How do I show the last 12 months automatically?
Start the month column with =EDATE(EOMONTH(TODAY(),-1)+1, -12) and build each following month with =EDATE(previous,1). The table moves forward on the first of every month.
Why is my monthly order count too high?
Your data has one row per product on an order, so counting rows counts lines. Use COUNTUNIQUEIFS on the order ID column to count each order once.