How to Score Excel Survey Responses Using an IF Formula
Question details
Convert text-based drop-down survey responses into numeric scores using formulas for data analysis.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Assigning point values to qualitative survey data where Strongly Agree equals 2 points, Agree equals 1 point, and Strongly Disagree, Disagree, or Neutral receive 0 points.
- Observed behavior
- Requires an automated method to evaluate survey text strings and output their corresponding numeric score dynamically.
Ensure your survey data does not contain hidden trailing spaces or spelling inconsistencies, as the IF formula requires an exact text match to calculate the correct score.
Use a Nested IF Formula for Survey Scoring
Quickly assign numeric values to text responses using a combined IF function to check multiple conditions sequentially.
A nested IF formula allows you to test multiple conditions in a single cell. It evaluates the first condition (Strongly Agree) and assigns a score, then evaluates the next (Agree), and provides a default score (0) for any unmatched criteria.
Identify the cell containing the first drop-down response. For example, assume your first response is located in cell B2.
Click on the adjacent blank cell where you want the score to appear (e.g., C2). Type the formula: =IF(B2="Strongly Agree",2,IF(B2="Agree",1,0)) and press Enter.
Select cell C2, click and hold the small green square (fill handle) in the bottom-right corner, and drag it down to copy the formula for all remaining survey statements.

Use a VLOOKUP Table for Complex Survey Scales
For surveys with many response types (like a standard 5-point Likert scale), setting up a VLOOKUP reference table is easier to manage and modify than a long nested IF formula.
Score Survey Data Effortlessly with WPS Spreadsheet
WPS Office offers a robust Spreadsheet tool equipped with advanced formulas like IF, IFS, and VLOOKUP, making it incredibly easy to clean, analyze, and score complex survey data.
- 1. Open your file: Launch WPS Office and open your survey data spreadsheet.
- 2. Select a target cell: Click the empty cell next to your first survey response where you want the numeric score to be displayed.
- 3. Apply the IF formula: Input the nested IF condition exactly as you would in Excel: =IF(B2="Strongly Agree",2,IF(B2="Agree",1,0)) and press Enter.
- 4. Fill the column: Double-click the fill handle on the bottom-right corner of the target cell to automatically score the entire column.

Frequently Asked Questions
Why is my IF formula returning an error or 0 for 'Agree'?
This typically happens due to extra invisible spaces in your survey data. The IF formula looks for an exact match. Use the TRIM function or Find and Replace to remove accidental trailing spaces so the text matches your formula (e.g., 'Agree' instead of 'Agree ').
Can I use the IFS function instead of nested IFs?
Yes. If you are using a recent version of Excel or WPS Spreadsheet, the IFS function offers cleaner syntax. You can use =IFS(B2="Strongly Agree",2, B2="Agree",1, TRUE, 0) to achieve the exact same scoring result without nesting.
How do I calculate the average score after applying the formula?
Once all text responses are converted to numeric scores using the IF formula, select a blank cell below your scores and enter the function =AVERAGE(C2:C100), replacing C2:C100 with your actual score range. This will output the mean survey score.




