Search code examples
excelvbaexcel-formulasumsumifs

Excel - Sum dependent values based on multiple criteria in repeating pattern


I'm currently working with a dataset with a fairly unusual setup. I'm trying to sum the number of responses based on the course and question ID for 40k+ entries. Each question is broken into four response categories. I'm trying to sum the number of responses for each question so I can then break down the response percentage per question, per course. In the example below I'm trying to sum 6+1, 5+2, 5+2, 4+3, etc. But I have hundreds of course names, each with question IDs ranging from 1 to 26.

Example


Solution

  • Like @Scott Craner said, I believe a pivot table would do the trick for you here:

    img1

    The percentage column would be another instance of "Resp Cnt", where you show values as a % of Parent Row Total.