How to Calculate Questionnaire Scores with INDEX and MATCH in Excel
Question details
The user needs to build an automated scoring system in Excel to calculate the points for questionnaire responses based on different answer options and assign a total score.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Setting up a grading or scoring system for a quiz where different questions have specific answer options and corresponding point values.
- Observed behavior
- Using an array formula to find and retrieve the correct score for each individual response, and summing the results for a final score.
Ensure your questionnaire data is organized clearly, with separate columns for the question numbers and chosen options, and create a dedicated reference table containing the scoring key before writing any formulas.
Use INDEX and MATCH Array Formula for Multi-Criteria Scoring
Set up a scoring reference table and use an advanced multi-criteria INDEX and MATCH formula to extract the appropriate score for each answer option.
This method involves using an array formula to match both the specific question identifier and the user's selected option simultaneously against a master scoring table.
Set up a reference table (named 'Scores') containing three columns: 'Question', 'Option', and 'Score'. List all possible combinations and their corresponding point values.
In your main sheet, ensure you have a column for the 'Question' (e.g., cell A2) and the user's chosen 'Option' (e.g., cell B2).
Select the cell where you want the score to appear and input the formula: =INDEX(Scores[Score],MATCH(1,(Scores[Question]=A2)*(Scores[Option]=B2),0)).
If you are using an older version of Excel, press Ctrl+Shift+Enter to confirm the formula as an array. In newer versions, just pressing Enter is sufficient.
Click and drag the fill handle at the bottom-right corner of the cell downwards to apply the scoring formula to all questions in your list.
At the bottom of your new score column, use the =SUM() function to add up all the individual question scores for the final quiz result.

Calculate Complex Scores Effortlessly with WPS Spreadsheet
WPS Office Spreadsheet fully supports advanced array formulas like INDEX and MATCH, allowing you to build robust grading and scoring systems effortlessly without relying on complex VBA scripts.
- 1. Open your dataset: Launch WPS Spreadsheet and open your questionnaire .xlsx file containing the user responses and the master scoring table.
- 2. Insert the formula: Select the target score cell and type your multi-criteria INDEX and MATCH formula directly into the formula bar.
- 3. Calculate the total: Use the AutoSum feature under the Formulas tab to quickly add up the individual scores and get the final questionnaire result.

Frequently Asked Questions
Can I use XLOOKUP instead of INDEX and MATCH for questionnaire scoring?
Yes. If your spreadsheet software supports it, you can simplify the multi-criteria lookup by using the formula: =XLOOKUP(1, (Scores[Question]=A2)*(Scores[Option]=B2), Scores[Score]). This achieves the exact same result without needing the INDEX function.
Why is my INDEX MATCH formula returning an #N/A error?
The #N/A error typically occurs because there is no exact match for the combination of the question and option in your master scoring table. Check for trailing spaces, spelling mistakes, or ensure both cells are formatted as the same data type (e.g., both text or both numbers).
Do I need to press Ctrl+Shift+Enter for this formula?
Because the MATCH function evaluates multiple conditions using multiplication (Scores[Question]=A2)*(Scores[Option]=B2), it creates an array. In older spreadsheet versions, you must press Ctrl+Shift+Enter. Modern versions natively handle dynamic arrays, so simply pressing Enter will work.




