Calculation Issues

Sum Excel Table Amounts by Month with SUMIF or a PivotTable

Elise WilliamsElise Williams Nov 12, 2026 869 views

Question details

The user needs to total transaction amounts by month from an Excel table using SUMIF or a PivotTable.

Sum Excel Table Amounts by Month with SUMIF or a PivotTable
Product
Microsoft Excel
Device & OS
not provided
Scenario
The worksheet contains a table with Transaction Date and Amount columns, and the user wants monthly totals.
Observed behavior
Using MONTH(Table8[Transaction Date]) directly as the SUMIF criteria range does not work because MONTH returns an array rather than a worksheet range.
Before you start

Confirm that the Transaction Date column contains real Excel dates, not text values, and that the Amount column contains numeric values. Decide whether you need formula-based monthly totals or a refreshable summary report.

Solution 1Recommended

Add a Month column and use SUMIF for monthly totals

Use this method when you want monthly totals calculated with worksheet formulas alongside your Excel table.

SUMIF requires its criteria range to be an actual worksheet range. Because MONTH(Table8[Transaction Date]) returns an array, create a calculated Month column in the table and use that column as the criteria range.

1
Insert a Month helper column

In Table8, add a new column named Month. In the first data cell of that column, enter =MONTH([@[Transaction Date]]) and press Enter to fill the calculated column down the table.

2
Enter the month number to total

In a summary cell, enter a month number from 1 to 12, such as 1 for January or 6 for June.

3
Calculate the monthly amount

In the adjacent total cell, enter =SUMIF(Table8[Month],A2,Table8[Amount]), replacing A2 with the cell that contains the month number.

4
Format the result

Select the total cell and use Home > Number Format to apply Currency, Accounting, or another number format appropriate for the Amount values.

Add a Month column and use SUMIF for monthly totals
Use a year criterion when needed: A Month column combines the same month across all years. If your table includes multiple years, add a Year column or use a month-and-year helper column so January from different years is not combined.
Monthly calculation tools in WPS Spreadsheets

Calculate Monthly Transaction Totals in WPS Spreadsheets

WPS Spreadsheets lets you add a Month helper column for SUMIF calculations or build a PivotTable to summarize transaction amounts by month. Its familiar spreadsheet interface makes it easy to import an Excel table and continue working with formulas and reports.

  1. 1. Open the Excel workbook: In WPS Office, select Open and choose the .xlsx or .xls workbook containing the transaction table.
  2. 2. Add a Month column: Add a table column named Month, then enter =MONTH([@[Transaction Date]]) in its first data cell.
  3. 3. Create the SUMIF total: In a summary area, enter =SUMIF(Table8[Month],A2,Table8[Amount]), where A2 contains the required month number.
  4. 4. Build a PivotTable instead: Select a cell in the source table, choose Insert > PivotTable, then place Transaction Date in Rows and Amount in Values.
  5. 5. Group dates and refresh results: Right-click a PivotTable date, choose Group, select Months, and refresh the PivotTable whenever new transactions are added.
Create monthly totals with SUMIF and structured table references.Group transaction dates and summarize Amount values in a PivotTable.Open and edit Microsoft Excel .xlsx and .xls workbooks with format compatibility.Use a lightweight, free office suite with a familiar spreadsheet workspace.
microsoft office alternative - wps office

Frequently Asked Questions

Why does MONTH(Table8[Transaction Date]) not work as the criteria range in SUMIF?

MONTH(Table8[Transaction Date]) calculates an array of month numbers, while SUMIF requires a real worksheet range for its first argument. Add a Month column to the table and use Table8[Month] as the criteria range.

What formula totals an Excel table Amount column for one month?

After adding a Month helper column, use =SUMIF(Table8[Month],A2,Table8[Amount]). Put the month number, such as 1 for January, in A2.

How do I avoid combining the same month from different years?

Add a Year column with =YEAR([@[Transaction Date]]) and include a year condition, or create a helper column with =TEXT([@[Transaction Date]],"yyyy-mm") for distinct month-year values.

How do I group dates by month in an Excel PivotTable?

Create a PivotTable, drag Transaction Date to Rows and Amount to Values, then right-click a date in the PivotTable and select Group > Months. Select Years as well when the data includes multiple years.

Why is my PivotTable counting Amount values instead of summing them?

In the PivotTable Fields pane, open the settings for Amount in the Values area and select Value Field Settings > Sum. Ensure the source Amount cells are stored as numbers, not text.