logo
search
Function Problems

How to Score Excel Survey Responses Using an IF Formula

Maira MehtabMaira Mehtab Oct 20, 2026 869 views

Question details

Convert text-based drop-down survey responses into numeric scores using formulas for data analysis.

How to Score Excel Survey Responses Using an IF Formula
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.
Before you start

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.

Solution 1Recommended

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.

1
Locate your survey response

Identify the cell containing the first drop-down response. For example, assume your first response is located in cell B2.

2
Enter the IF formula

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.

3
Apply to the entire column

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 Nested IF Formula for Survey Scoring
Understanding the Formula Logic: The formula first checks if B2 is exactly 'Strongly Agree'. If true, it returns 2. If false, it triggers the second IF to check for 'Agree', returning 1. Since Strongly Disagree, Disagree, and Neutral all equal 0, the final argument safely lumps them together.
Powerful Data Analysis

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. 1. Open your file: Launch WPS Office and open your survey data spreadsheet.
  2. 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. 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. 4. Fill the column: Double-click the fill handle on the bottom-right corner of the target cell to automatically score the entire column.
Fully compatible with Microsoft Excel formulas and .xlsx file formatsIncludes advanced functions like IFS for easier multi-condition scoringFree and lightweight alternative for powerful data analysisCross-platform support for seamless work on Windows, Mac, Linux, and Mobile
microsoft office alternative - wps office

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.