How to Convert Microsoft Forms Text Responses to Numbers in Excel
Question details
Numeric responses collected through Microsoft Forms are being exported and stored as text within Excel, preventing users from performing accurate mathematical calculations.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Analyzing survey or quiz data from Microsoft Forms in Excel using PivotTables to sum or calculate numeric responses.
- Observed behavior
- Numeric values are formatted as text, causing PivotTables to count the entries instead of summing them, or displaying errors during calculations.
Ensure you have access to the original exported Microsoft Forms response spreadsheet and verify that your Microsoft account has the necessary permissions if you plan to use Power Automate workflows.
Use Power Query to Transform Text to Numbers
Power Query is the most efficient method to import, clean, and convert data into numbers directly within Excel without altering the source file.
By utilizing Power Query, you create a repeatable process. Every time new responses are added to your Microsoft Forms output file, you can simply refresh your query to automatically format new text responses into numeric values.
Open a new Excel workbook, navigate to the Data tab, and select Get Data > From File > From Workbook to import your Forms response file.
In the Navigator window, select the table containing your responses and click Transform Data to open the Power Query Editor.
Locate the column with numeric responses stored as text. Select the column header, navigate to the Transform tab, click Data Type, and change it from Text to Whole Number or Decimal Number.
Click Close & Load on the Home tab to export the cleaned, numeric data into your Excel worksheet, ready for PivotTable analysis.

Automate Conversion using Power Automate
Set up a flow to automatically convert text to numbers before the response is even saved to your Excel spreadsheet.
Convert Text to Numbers Using Excel's Built-in Tools
A quick, manual fix within the Excel interface if you do not want to use advanced tools like Power Query or Power Automate.
Easily Convert Text to Numbers with WPS Spreadsheet
WPS Spreadsheet offers intuitive, built-in tools to instantly convert imported text data into workable numbers, allowing you to build accurate PivotTables without needing complex Power Automate flows.
- 1. Open Your Data: Launch WPS Spreadsheet and open your exported Microsoft Forms response file.
- 2. Select Text Cells: Highlight the column or specific cells where numbers are incorrectly stored as text.
- 3. Convert to Number: Click the error indicator (small warning icon) next to the highlighted cells and select 'Convert to Number' from the context menu.
- 4. Create Your PivotTable: Navigate to the Insert tab and click PivotTable to calculate your newly converted numeric data flawlessly.

Frequently Asked Questions
Why does Microsoft Forms save my number answers as text?
Microsoft Forms primarily captures text-field inputs as text strings by default to ensure no data formatting is lost during the capture process. These strings are then exported to Excel exactly as they were captured.
Can PivotTables sum data that is stored as text?
No, PivotTables will default to counting the entries (Count) instead of adding them up (Sum) when the source data is formatted as text. You must convert the text strings to numeric values first.
Is there a way to force Microsoft Forms to only accept numbers?
Yes, you can add 'Restrictions' to a text question in Microsoft Forms and set the condition to 'Number'. However, upon exporting to Excel, you may still need to verify the cell formatting to ensure Excel recognizes them as actual numbers for calculations.




