How can I use INDEX and MATCH with COUNTIFS to automatically locate my test values collumn?
Using Numbers 4.0.5,
I'm trying to summarize survey results that are not numerical. I am trying to separate results based on results like age, gender, job function, and community. I've been using COUNTIFS to separate the results, with good success. This is a tedious process and every time I want to make a change I have to go back in and change every single cell of code. I need a more foolproof system. What I would like to do is have an INDEX and MATCH function that can take the criteria I'm searching for, locate the column that needs to be searched, and return the number of matched criteria.
What I think should work is COUNTIFS(INDEX('Survey Results Table', 0, MATCH('Survey Results Table Header Row', [cell with search criteria], 0)), [cell with search criteria within the column])
For example, if I'm searching for Community:
COUNTIFS(INDEX('Survey Results Table', 0, MATCH('Survey Results Table Header Row', ["Where do you live?"], 0)), ["Calgary"].
Thoughts? Am I on the right track? Is this even possible?