Function Problems

Use Excel SUMIFS to Summarize Cash Flow by Ticker and Date

Ayan MasoodAyan Masood Nov 18, 2026 868 views

Question details

Sum cash flow transactions that match a ticker, year, and month, including cases where multiple rows qualify.

Use Excel SUMIFS to Summarize Cash Flow by Ticker and Date
Product
Microsoft Excel
Device & OS
not provided
Scenario
A Holdings worksheet summarizes cash flow data stored in a CF table by ticker, year, and month.
Observed behavior
The desired result is a total of all matching transactions rather than a single lookup result.
Before you start

Confirm that the source table is named CF and contains the Total CF - CAD, Ticker/Cusip, Year, and Month columns. Check that Holdings cells AP3 and AP4 contain the year and month in formats matching the source data.

Solution 1Recommended

Sum matching cash flow rows with SUMIFS in Excel

Use this formula when more than one transaction can match the same ticker, year, and month.

SUMIFS adds every value that meets all three criteria. Unlike a standard XLOOKUP, it does not stop at a single matching row.

1
Select the summary cell

On the Holdings worksheet, select the cell in the holdings table where you want the cash flow total to appear.

2
Enter the SUMIFS formula

In the formula bar, enter =SUMIFS(CF[Total CF - CAD],CF[Ticker/Cusip],[@[Ticker/Cusip]],CF[Year],Holdings!AP$3,CF[Month],Holdings!AP$4) and press Enter.

3
Copy and check the result

Use the fill handle to copy the formula to other summary cells as needed. Check the total against the matching rows in the CF table.

Sum matching cash flow rows with SUMIFS in Excel
How the references work: The [@[Ticker/Cusip]] reference uses the ticker in the current holdings table row. AP$3 and AP$4 keep the year and month rows fixed when copied, while allowing the column to change.
Summarize cash flow in WPS Spreadsheets

Build a cash flow summary with SUMIFS in WPS Spreadsheets

Open your workbook in WPS Spreadsheets and use SUMIFS with cell ranges to total transactions by ticker, year, and month.

  1. 1. Open the workbook: In WPS Spreadsheets, choose Open and select your Excel workbook.
  2. 2. Check the source columns: For this example, use a sheet named CF with ticker in column A, year in B, month in C, and cash flow in D. Adjust the ranges below if your layout differs.
  3. 3. Enter the criteria: On the summary sheet, enter a ticker in A2, a year in AP3, and a month in AP4, using the same formats as the CF sheet.
  4. 4. Calculate the total: Select a summary cell and enter =SUMIFS(CF!$D$2:$D$1000,CF!$A$2:$A$1000,$A2,CF!$B$2:$B$1000,AP$3,CF!$C$2:$C$1000,AP$4). Press Enter and adjust the row limits to include your source data.
Sum multiple cash flow transactions that match the same criteriaOpen and edit Microsoft Excel XLSX filesUse a familiar spreadsheet interfaceWork with formulas in a free office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why use SUMIFS instead of XLOOKUP for this summary?

SUMIFS adds all rows that meet the ticker, year, and month criteria. A standard XLOOKUP returns a match rather than automatically summing every qualifying transaction.

Why does my SUMIFS formula return zero?

Check that the ticker in the Holdings row and the year and month in AP3 and AP4 match the CF table values. Numbers stored as text, extra spaces, or different month formats can prevent matches.

Can I copy the formula across different months?

Yes. The references AP$3 and AP$4 keep rows 3 and 4 fixed while the column changes as you copy across. Enter the corresponding year and month above each summary column.

What if my data is not in an Excel table?

Replace the structured references with matching cell ranges, such as CF!$D$2:$D$1000 for the amounts and CF!$A$2:$A$1000 for the tickers. Make sure all SUMIFS ranges cover the same rows.