Function Problems

How to Sum Excel Values by Year with SUMIF or SUMIFS in WPS Office

Anum MushtaqAnum Mushtaq Nov 13, 2026 870 views

Question details

The user needs to total numeric amounts in column J by the year value in column K, producing separate annual totals such as $19,976.61 for 2019 and $55,292.52 for 2020.

How to Sum Excel Values by Year with SUMIF or SUMIFS in WPS Office
Product
WPS Office Spreadsheets
Device & OS
not provided
Scenario
The user maintains a spreadsheet with amounts in column J and years in column K and needs an annual summary instead of a single total.
Observed behavior
The user wants to calculate annual totals by year using formulas or a built-in summary tool.
Before you start

Verify that column J contains numeric values and that column K contains years as numeric values or valid dates. Remove blank or text values from the year column so the total formulas return accurate annual figures.

Solution 1Recommended

Use SUMIF or SUMIFS to total amounts by a specific year

Best when you need totals for one or a few known years; it directly returns the annual amount in a single cell.

SUMIF handles a single condition such as year equals 2019. SUMIFS is the multi-condition equivalent, but for a single year SUMIF is shorter and works in all WPS Office Spreadsheets versions.

1
Select the result cell

Click an empty cell where you want the 2019 total to appear, for example L2.

2
Enter the SUMIF formula

Type =SUMIF(K:K,2019,J:J) and press Enter. This sums every value in column J where column K equals 2019.

3
Repeat for another year

In another cell, enter =SUMIF(K:K,2020,J:J) to return the 2020 total. Use SUMIFS only when you need additional conditions, such as =SUMIFS(J:J,K:K,2020,A:A,"Sales").

Use SUMIF or SUMIFS to total amounts by a specific year
Expected result: With the sample data, the formulas return $19,976.61 for 2019 and $55,292.52 for 2020.
WPS Spreadsheets yearly summary

Total yearly amounts in WPS Office Spreadsheets with SUMIF

WPS Office Spreadsheets can directly calculate annual totals from Excel data using SUMIF/SUMIFS formulas or a PivotTable. Create your yearly summary without changing your .xlsx workflow.

  1. 1. Download and install WPS Office: Download WPS Office Free from the official WPS site, then install and launch WPS Spreadsheets.
  2. 2. Open your Excel workbook: Open the .xlsx file containing amounts in column J and years in column K in WPS Spreadsheets.
  3. 3. Enter the SUMIF formula: Click an empty cell and enter =SUMIF(K:K,2019,J:J), then repeat with 2020 or create a PivotTable from the Insert tab for all years.
  4. 4. Verify the annual totals: Check the result cells or PivotTable totals against your expected values, then save the workbook in .xlsx format.
Supports SUMIF, SUMIFS, and PivotTable annual summaries in .xlsx filesFull compatibility with Microsoft Excel formulas and workbook formattingFree download for Windows, Mac, Android, and iOSLightweight interface with familiar ribbon tools
microsoft office alternative - wps office

Frequently Asked Questions

What is the difference between SUMIF and SUMIFS for yearly totals?

SUMIF handles one condition, such as year equals 2019. Use SUMIFS when you need extra conditions, for example =SUMIFS(J:J,K:K,2020,A:A,"Sales").

How do I sum values by year if column K contains full dates instead of a year number?

Add a helper column with =YEAR(K2) to extract the year, then use =SUMIF(K:K,2019,J:J) on the helper column, or group dates by year in a PivotTable.

Why does my SUMIF return 0?

Check that the year values are numbers rather than text such as "2019" and that the amount column contains numeric values rather than text-formatted numbers.

Can I generate all yearly totals at once in WPS Office?

Yes. Insert a PivotTable with Year in Rows and Amount in Values, or use LET and HSTACK if your spreadsheet app supports dynamic arrays. A PivotTable is the most reliable all-years summary in WPS Office.