KutoolsforOffice — One Suite. Five Tools. Get More Done.

How to mass convert numbers stored as text to numbers in Excel?

AuthorSiluviaLast modified

Numbers imported from other systems or files are sometimes stored as text in Excel. Although they may look like ordinary numbers, they can cause calculation errors, incorrect sorting, or formulas that ignore them. This guide introduces several ways to convert a large number of text-formatted numbers into true numeric values.

Comparison of methods for converting numbers stored as text

MethodChanges original cellsBest forKey consideration
Convert to NumberYesA contiguous range displaying Excel's error indicatorThe warning button must be available.
Paste SpecialYesA single selected range when the warning button is unavailableUses a temporary cell containing 1.
Kutools for ExcelYesOne range or multiple non-contiguous rangesRequires Kutools for Excel.
VALUE functionNoKeeping the source data and returning converted results separatelyRequires a helper column and formulas.
VBAYesRepeatable conversions controlled by a macroRequires a macro-enabled workbook.

Convert a contiguous range with Convert to Number

When the text-formatted numbers are next to one another and display green error indicators, Excel's Convert to Number command provides the quickest built-in solution.

  1. Select the contiguous range containing the numbers stored as text. Click the warning button Warning button that appears beside the selection.
    Select numbers stored as text
  2. Select Convert to Number from the menu. Excel converts all selected text-formatted numbers into numeric values.
    Select Convert to Number from the warning menu

📝 Note:

If the warning button does not appear, Excel may not recognize the entries as numbers stored as text, or background error checking may be disabled. Try one of the following methods instead.


Easily convert text to numbers or numbers to text in Excel

Kutools for Excel's Convert between Text and Number feature converts text to numbers or numbers to text in a selected range, as shown below. Download and try it now! (30-day free trial)

Convert text to numbers or numbers to text with Kutools

Convert a selected range with Paste Special

Multiplying text-formatted numbers by 1 forces Excel to treat them as numeric values without changing their amounts. This method is useful for a single selected range when the Convert to Number command is unavailable.

  1. Enter 1 in a blank cell, and press Ctrl + C to copy it.
  2. Select the range containing the numbers stored as text. Press Ctrl + Alt + V to open the Paste Special dialog box.
  3. Under Operation, select Multiply, and click OK.
    Select Multiply in the Paste Special dialog box
  4. Delete the temporary cell containing 1 if you no longer need it.

📝 Notes:

  • This method works only when the cell contents can be interpreted as numeric text. Entries containing non-numeric characters must be cleaned first.
  • Process separate areas one at a time. For multiple non-contiguous ranges, use the Kutools or VBA method below.

Convert one or multiple ranges with Kutools for Excel

The Convert between Text and Number feature in Kutools for Excel can convert numbers stored as text in a contiguous range or multiple selected ranges without formulas or a temporary helper cell.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Integrated with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...
  1. Select the range or multiple ranges you want to convert, and click Kutools > Content > Convert between Text and Number.
    Open Convert between Text and Number in Kutools
  2. In the Convert between Text and Number dialog box, select Text to number, and click OK.
    Select Text to number in the dialog box

The selected text-formatted numbers are converted directly into numeric values.

  If you want to have a free trial (30-day) of this utility, please click to download it, and then go to apply the operation according above steps.


Convert text to numbers with the VALUE function

The VALUE function returns converted numbers in a separate column, so the original data remains unchanged. It is useful when the source data may be updated and you want the converted results to update with it.

  1. Suppose the text-formatted numbers begin in cell A1. Select a blank cell, such as B1, and enter the following formula:
    =VALUE(A1)
  2. Press Enter, and drag the fill handle down to apply the formula to the remaining rows.
  3. To replace the original data, copy the formula results and paste them over the original cells as values.

📝 Notes:

  • If a cell contains text that Excel cannot interpret as a number, the formula returns a #VALUE! error.
  • Extra spaces or other hidden characters may need to be removed before conversion.

Convert text to numbers with VBA

For recurring conversions, the following VBA macro lets you select a range and converts any text value that Excel recognizes as numeric.

  1. Click Developer > Visual Basic. In the Visual Basic editor, click Insert > Module, and paste the following code into the module window:
    Sub ConvertTextNumbersToNumbers()
        Dim rng As Range
        Dim WorkRng As Range
        Dim xTitleId As String
    
        On Error Resume Next
        xTitleId = "KutoolsforExcel"
        Set WorkRng = Application.Selection
        Set WorkRng = Application.InputBox( _
            "Please select the range to convert text to numbers", _
            xTitleId, WorkRng.Address, Type:=8)
        On Error GoTo 0
    
        If WorkRng Is Nothing Then Exit Sub
    
        For Each rng In WorkRng
            If VarType(rng.Value) = vbString And IsNumeric(rng.Value) Then
                rng.Value = CDbl(rng.Value)
            End If
        Next rng
    End Sub
  2. Click the Run button Run button or press F5. When prompted, select the range containing the numbers stored as text, and click OK.

📝 Notes:

  • The macro changes the selected cells directly. Back up important data before running it.
  • Text that Excel does not recognize as numeric is left unchanged.
  • Save the workbook as a macro-enabled .xlsm file if you want to keep the macro.

Frequently asked questions

Why does the Convert to Number warning button not appear?

Excel may not recognize the entries as numbers stored as text, or background error checking may be disabled. Use Paste Special, VALUE, Kutools, or VBA instead.

Why does VALUE return a #VALUE! error?

The source cell may contain spaces, symbols, or other characters that Excel cannot interpret as part of a number. Clean the source text before applying VALUE.

Will converting text to numbers remove leading zeros?

Yes. Numeric values do not preserve insignificant leading zeros. If the entries are identifiers such as ZIP codes or account codes, they may need to remain as text or use a custom number format.

Which method updates automatically when the source changes?

The VALUE formula recalculates when its referenced source cell changes. The other methods perform a one-time conversion.

Can Paste Special convert multiple non-contiguous ranges at once?

Paste Special is best applied to one selected area at a time. To process multiple separate ranges together, use Kutools or adapt the VBA method.


Best Office Productivity Tools

🤖Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions…
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |  Round without Formula ...
Super Lookup: Multiple Criteria VLookup  |   Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |  Big Formula Bar   |  Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells   |  Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets:  12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!

All Kutools add-ins. One installer

Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.

ExcelWordOutlookTabsPowerPoint
  • All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
  • One installer, one license — set up in minutes (MSI-ready)
  • Works better together — streamlined productivity across Office apps
  • 30-day full-featured trial — no registration, no credit card
  • Best value — save vs buying individual add-in