Forum Discussion

alanbr's avatar
alanbr
Copper Contributor
Nov 02, 2022

Help with Complex Formula

I need help with the following situation: I have row 1 with titles and all others with amounts, in many columns. I am trying to sum the amounts for every column where the header in row 1 has "blábláb...
  • Patrick2788's avatar
    Patrick2788
    Nov 02, 2022

    alanbr 

    Here's my formula. I've attached a sample workbook. The term I'm looking for in the header is "Blue".

     

    =LET(data,$E$2:$I$12,dates,$D$2:$D$12,header,$E$1:$I$1,period,FILTER(data,(dates>=L6)*(dates<L7)),filtered,FILTER(period,ISNUMBER(SEARCH("Blue",header))),SUM(filtered))

     

Resources