How to Convert Imported Excel Percentages from Text to Decimal Values
Question details
The user needs to convert percentage data imported from a website, which is currently treated as text, into numeric decimal values for multiplication and other mathematical operations.
- Product
- Spreadsheet
- Device & OS
- not provided
- Scenario
- Importing financial or statistical data from websites into a spreadsheet where the numbers need to be calculated.
- Observed behavior
- The imported percentage figures are recognized as plain text rather than numeric values, preventing standard mathematical calculations.
Before starting, check your system's regional settings, as imported data might use different decimal and thousands separators than your computer's default configuration.
Convert Text to Decimals using Power Query
Power Query is the most robust method for cleaning up imported web data and automatically assigning the correct numeric data types.
When dealing with data imported from web sources, Power Query allows you to strip out invisible text characters and accurately convert columns into usable numerical formats.
Select your imported data table, go to the Data tab on the ribbon, and click 'From Table/Range' to open the Power Query Editor.
Right-click the column header containing the text percentages and select 'Replace Values'. Remove any unwanted characters like parentheses or extra spaces.
Click the data type icon on the left side of the column header and select 'Percentage' or 'Decimal Number'.
If the value appears as a whole number (e.g., 25 instead of 0.25), go to the Transform tab, select Standard > Divide, and enter 100.
Click 'Close & Load' on the Home tab to insert the cleaned decimal values back into your spreadsheet.
Convert Text to Numbers using Spreadsheet Formulas
Use spreadsheet formulas if you want to quickly transform the data in an adjacent column without using the Power Query interface.
Clean and Convert Imported Data Easily with WPS Spreadsheet
WPS Spreadsheet provides powerful data cleaning tools, including robust formula support and text-to-columns features, making it incredibly simple to convert web-imported text percentages into calculable decimal values.
- 1. Open your Web Data: Launch WPS Spreadsheet and open the document containing your web-imported text values.
- 2. Apply Conversion Formula: In an empty adjacent column, use the NUMBERVALUE or VALUE formula to target the text cells.
- 3. Format the Decimals: Select the newly calculated cells, right-click, choose 'Format Cells', and select 'Number' with the desired decimal places.
- 4. Replace the Original Data: Copy the new numeric results and use 'Paste Special' > 'Values' to finalize your usable dataset.

Frequently Asked Questions
Why does my spreadsheet treat imported web numbers as text?
When copying or importing data from websites, numbers often contain hidden characters, non-breaking spaces, or HTML formatting tags. Spreadsheets interpret these unrecognizable characters as plain text rather than numerical values, preventing calculations.
How do I fix a percentage that converted to a whole number instead of a decimal?
If a percentage converted to 25 instead of 0.25, you need to divide the value by 100. You can type 100 in an empty cell, copy it, select your numbers, and use Paste Special > Divide. Alternatively, divide the cell reference by 100 inside your formula.
Does the NUMBERVALUE function work with different regional settings?
Yes, NUMBERVALUE is designed precisely for this. It allows you to specify the decimal separator and group separator as arguments within the formula, making it ideal for converting text to numbers regardless of your computer's local regional settings.




