Forum Discussion

Konfyt's avatar
Konfyt
Copper Contributor
Jul 24, 2021
Solved

How to calculate an array from different columns

I need to calculate the following and need the correct formula:   Setup Each column in row A has a heading named: | 1 | 2 | 3 | 4 | 5 |  Each column has a different sum value in Row B: | 5 | 15...
  • SergeiBaklan's avatar
    SergeiBaklan
    Jul 24, 2021

    Konfyt 

    Assuming Headers are sequential numbers this one

    =SUMPRODUCT(INDEX(B2:F2,1,FILTERXML("<y><z>"&SUBSTITUTE(B4,",","</z><z>")&"</z></y>","//z")))

    also shall work on 2019

Resources