excelexcel-formuladata-filtering

Indirect Filter on Table in Excel


I have a table as shown in the following image.

Excel Table with subtotal on the Data column

I would like to hide the Year column and allow the user to select the year from the value in A1 and filter the results. The value in B2 is a subtotal that shows the min value for Data with the given filter.

Is this even possible?


Solution

  • Filter Table Excluding Filter Column

    enter image description here

    MS365, Excel 2024

    =LET(table,Table1[#All],filter_column_title,"Year",filter_value,A1,
        ah,TAKE(table,1),
        fc,XMATCH(filter_column_title,ah),
        acs,SEQUENCE(,COLUMNS(table)),
        rcs,FILTER(acs,acs<>fc),
        rh,INDEX(ah,rcs),
        ad,DROP(table,1),
        fi,--IFERROR(INDEX(ad,,fc)=filter_value,),
        r,IF(SUM(fi)=0,rh,VSTACK(rh,FILTER(CHOOSECOLS(ad,rcs),fi))),
        r) 
    

    Step-By-Step