Forum Discussion

peteryac60's avatar
peteryac60
Iron Contributor
Sep 15, 2026

Summing a column in a filtered range

Hi all,

 

If i use the FILTER functions and extract 4 (say) columns of data and the third column has numerical values then how to i add the values in the third column. See below.

I know that a formula like SUM(A2#) would work for a single column - but when when data is in the third column there does not seem to be anyway to access it.

 

I hope this question makes sense - or am i missing something?

 

many thanks, Peter

 

 

Fiscal yearProjectLocal CurrencyCost Type
Period 03 2014GB1-IS002255.26Labour
Period 03 2014GB1-IS002137.45Labour
Period 03 2014GB1-IS002107.99Labour
Period 03 2014GB1-IS002255.26Labour
Period 03 2014GB1-IS002255.26Labour
Period 03 2014GB1-IS002255.26Labour
Period 03 2014GB1-IS002255.26Labour
Period 03 2014GB1-IS00258.91Labour
Period 03 2014GB1-IS002157.08Labour
Period 03 2014GB1-IS002235.62Labour
Period 03 2014GB1-IS002157.08Labour
Period 03 2014GB1-IS002235.62Labour
Period 03 2014GB1-IS002235.62Labour

6 Replies

  • Terio's avatar
    Terio
    Brass Contributor

    The previous solutions are very good, but an alternative based on column name is a double filter as:

    =SUM(FILTER(A2#,A1:D1="Local Currency",0))

    or using XLOOKUP:

    =SUM(XLOOKUP("Local Currency",A1:D1,A2#,0))

    or more simply:

    =SUM(A2#*(A1:D1="Local Currency"))


    Bye

  • = SUM(CHOOSECOLS(filteredArray#, 3))

    or, combining the two formulas,

    = SUM(CHOOSECOLS(FILTER(array, include), 3))