Forum Discussion

Durwood's avatar
Durwood
Copper Contributor
Sep 12, 2025
Solved

Maximum number of arrays to use with SUMIFS

Hi, I have a situation where I need to sum a column where it would be ideal if SUMIFS could use three (or more) arrays in M365. The following sample SUMIFS nested in a sum statement works fine, but ...
  • Kidd_Ip's avatar
    Sep 12, 2025

    Take this:

     

    1. Use Multiple SUMIFS and Add Them

     

    =SUM(
      SUMIFS(DATA[Eligibility], DATA[Location], "A", DATA[SchoolType], "D", DATA[Program], "X"),
      SUMIFS(DATA[Eligibility], DATA[Location], "A", DATA[SchoolType], "D", DATA[Program], "Y"),
      ...
    )

     

    1. Use FILTER + SUM for More Flexibility
    =SUM(FILTER(DATA[Eligibility], 
      (ISNUMBER(MATCH(DATA[Location], {"A","B"}, 0))) *
      (ISNUMBER(MATCH(DATA[SchoolType], {"D","E"}, 0))) *
      (ISNUMBER(MATCH(DATA[Program], {"X","Y"}, 0)))
    ))

    This filters the rows where all three conditions are met and then sums the Eligibility column.

    1. Use LET or LAMBDA for Cleaner Logic

    You can wrap the logic in a LET or LAMBDA function to make it reusable and readable.

Resources