Function Problems

How to Calculate Questionnaire Scores with INDEX and MATCH in Excel

Muhammad TalhaMuhammad Talha Nov 11, 2026 869 views

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.

How to Calculate Questionnaire Scores with INDEX and MATCH in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Create 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.

2
Prepare the questionnaire sheet

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).

3
Enter the INDEX and MATCH formula

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)).

4
Apply the array formula

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.

5
Fill the formula down

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.

6
Calculate the total score

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.

Use INDEX and MATCH Array Formula for Multi-Criteria Scoring
Table References vs Cell References: The formula provided uses structured table references (like Scores[Score]). If you have not formatted your reference data as an official Excel Table, you must replace these with absolute cell references (e.g., $C$2:$C$50).
Powerful Spreadsheet Formulas

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. 1. Open your dataset: Launch WPS Spreadsheet and open your questionnaire .xlsx file containing the user responses and the master scoring table.
  2. 2. Insert the formula: Select the target score cell and type your multi-criteria INDEX and MATCH formula directly into the formula bar.
  3. 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.
Fully compatible with Microsoft Excel formulas and .xlsx file formats.Flawless execution of advanced functions including INDEX, MATCH, XLOOKUP, and SUMIFS.Lightweight, free, and designed with an intuitive, user-friendly interface to boost productivity.
microsoft office alternative - wps office

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.