How to Score Personalized Survey Answers in Excel Using a Question Bank
Question details
The user needs a method to grade personalized pre- and post-survey responses by comparing them against a master bank of 200 questions.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A survey where each participant gets a random subset of 20 to 40 questions from a 200-question master bank, requiring automated scoring.
- Observed behavior
- The goal is to automatically match the participant's specific subset of questions to the master bank and output a correct or incorrect score for each response.
Ensure your survey data is organized in a clear tabular format and that you have a separate master worksheet containing the complete 200-question bank alongside the correct answers.
Use VLOOKUP and IF Functions to Automate Survey Scoring
Match the participant's question to the master question bank to retrieve the correct answer, then use an IF function to compare it with the participant's provided answer.
This method handles personalized subsets of questions seamlessly. It looks up the specific question a user was asked, finds the correct answer in the master bank, and assigns a score.
Create two columns in a sheet named MasterKey: 'Question' in Column A and 'Correct Answer' in Column B.
Ensure you have columns for 'Participant' in Column A, 'Question Asked' in Column B, 'Participant Answer' in Column C, and a new 'Score' header in Column D.
In the 'Score' column cell D2, enter the formula: =IF(C2=VLOOKUP(B2, MasterKey!A:B, 2, FALSE), 1, 0). This checks if the participant's answer matches the official answer.
Click the small square at the bottom-right corner of cell D2 and drag it down to apply this formula to all rows in your survey results.

Merge Queries Using Power Query for Large Datasets
For large datasets or data imported directly from Microsoft Forms, Power Query provides a robust way to link your responses to your question bank without complex cell formulas.
Score Survey Responses Easily with WPS Spreadsheet
WPS Spreadsheet offers powerful data analysis tools and full support for advanced lookup functions like XLOOKUP, VLOOKUP, and nested IF statements, making survey grading fast and highly accurate.
- 1. Open your datasets: Launch WPS Spreadsheet and open both your survey results and master question bank.
- 2. Create a scoring column: Insert a new column named 'Score' next to the participant's recorded answers.
- 3. Input the logic formula: Use the VLOOKUP function nested inside an IF statement to compare the user's answer against the master key.
- 4. Autofill the results: Double-click the fill handle on the first calculated cell to automatically apply the scoring logic to the entire dataset.

Frequently Asked Questions
How do I handle multiple-choice questions with multiple correct answers?
You can use the COUNTIF function or a combination of IF and SEARCH functions to check if the participant's answer string contains the required correct options, rather than requiring an exact cell match.
What if my participant answers have leading or trailing spaces causing them to be marked incorrect?
Wrap the cell reference of the participant's answer in the TRIM() function within your formula (for example, TRIM(C2)) to automatically remove extra spaces before comparing it to the master answer key.
Can I assign different point values to different questions?
Yes. Add a 'Points' column to your Master Question Bank. In your survey sheet, update your formula to multiply the correct result by the lookup value of the points column: =IF(C2=VLOOKUP(B2, MasterKey!A:B, 2, FALSE), VLOOKUP(B2, MasterKey!A:C, 3, FALSE), 0).
Why is my VLOOKUP formula returning #N/A errors for some questions?
The #N/A error usually means the question text in your survey sheet does not exactly match the question text in your master bank. Ensure there are no typos, extra spaces, or hidden formatting characters in either dataset.




