logo
search
Data Import & Export

How to Convert Imported Excel Percentages from Text to Decimal Values

Maira MehtabMaira Mehtab Sep 22, 2026 871 views

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 you start

Before starting, check your system's regional settings, as imported data might use different decimal and thousands separators than your computer's default configuration.

Solution 1Recommended

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.

1
Open Power Query Editor

Select your imported data table, go to the Data tab on the ribbon, and click 'From Table/Range' to open the Power Query Editor.

2
Clean the Data

Right-click the column header containing the text percentages and select 'Replace Values'. Remove any unwanted characters like parentheses or extra spaces.

3
Change Data Type

Click the data type icon on the left side of the column header and select 'Percentage' or 'Decimal Number'.

4
Adjust to Decimal Scale

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.

5
Load the Data

Click 'Close & Load' on the Home tab to insert the cleaned decimal values back into your spreadsheet.

Automated Process: Once set up, this Power Query transformation will automatically clean your data the next time you refresh the web import.
WPS Spreadsheet Solution

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. 1. Open your Web Data: Launch WPS Spreadsheet and open the document containing your web-imported text values.
  2. 2. Apply Conversion Formula: In an empty adjacent column, use the NUMBERVALUE or VALUE formula to target the text cells.
  3. 3. Format the Decimals: Select the newly calculated cells, right-click, choose 'Format Cells', and select 'Number' with the desired decimal places.
  4. 4. Replace the Original Data: Copy the new numeric results and use 'Paste Special' > 'Values' to finalize your usable dataset.
Fully compatible with Microsoft Excel formulas like VALUE, SUBSTITUTE, and NUMBERVALUE.Built-in text conversion tools to quickly fix web-imported formatting issues.Lightweight, fast, and completely free to use for daily data analysis.
microsoft office alternative - wps office

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.