Hello All,
I have a drop down that lists the column headers on a sheet "MyData". I need to use the value in the drop down to find the column on sheet "MyData" and then use a countifs() function in that column.
I am able to find the column number using this:
E4 - Drop down value
MyData!$A$1:$HD$1 - Data headers
=MATCH(E4,MyData!$A$1:$HD$1,0)
I am able to perform my countifs() using a static column (picking column "MyData!E:E") using this:
C9 & B9 are both variable criteria for my countifs()
=COUNTIFS(MyData!E:E,">0",MyData!D:D,"<6",MyData!B:B,C9,MyData!A:A,B9)
I would like to use a formula (or however many needed) if at all possible to easily toggle between different drop down values.
Any help is appreciated!
Thanks,
Sean
I have a drop down that lists the column headers on a sheet "MyData". I need to use the value in the drop down to find the column on sheet "MyData" and then use a countifs() function in that column.
I am able to find the column number using this:
E4 - Drop down value
MyData!$A$1:$HD$1 - Data headers
=MATCH(E4,MyData!$A$1:$HD$1,0)
I am able to perform my countifs() using a static column (picking column "MyData!E:E") using this:
C9 & B9 are both variable criteria for my countifs()
=COUNTIFS(MyData!E:E,">0",MyData!D:D,"<6",MyData!B:B,C9,MyData!A:A,B9)
I would like to use a formula (or however many needed) if at all possible to easily toggle between different drop down values.
Any help is appreciated!
Thanks,
Sean