How to Convert Text to Numbers in Excel

How-to basics · Updated November 23, 2026

To convert text to numbers in Excel, select the range, click the warning icon that appears, and choose “Convert to Number”. For a formula-based method, use the VALUE function, like =VALUE(A1), which returns the numeric value of a text string.

Why Excel Stores Numbers as Text

Excel treats numbers and text differently. Numbers are right-aligned by default and can be used in calculations. Text is left-aligned. Sometimes data imported from a CSV file, copied from a website, or entered with an apostrophe (like '123) is stored as text. This happens because the cell’s format is set to “Text” before typing, or because the data contains invisible characters. When this occurs, formulas like SUM may ignore those cells, causing errors in your totals.

The Quickest Way: Convert to Number

The fastest solution works when Excel recognizes the text as a number. Select the cells with the green triangle indicator. A yellow warning icon appears. Click it and choose Convert to Number. This works for most simple cases. For example, if A1 contains “123” as text, this method changes it to the number 123. If you have many cells, select the entire column before clicking the icon.

Using the VALUE Function

For a formula-based approach, the VALUE function converts a text string that looks like a number into an actual number. For instance, with “42” in cell A1, enter =VALUE(A1) in B1. The result is 42. This is useful when you need to keep the original text and create a numeric version elsewhere. The function also handles text with currency symbols and commas, such as “$1,000” returning 1000.

Using Paste Special to Multiply by 1

Another reliable method uses Paste Special. Type the number 1 in any empty cell and copy it. Select the text-formatted numbers, right-click, choose Paste Special, then select Multiply and click OK. This forces Excel to convert the text to numbers because any number multiplied by 1 stays the same, but the operation changes the data type. This method is ideal for large datasets because it avoids manual clicking.

Using Text to Columns for Stubborn Data

When text numbers contain extra characters like spaces or line breaks, use Text to Columns. Select the column, go to Data tab > Text to Columns. Choose Delimited and click Next. Uncheck all delimiters, then click Next. In the final step, select General as the column data format and click Finish. This forces Excel to re-interpret the text as numbers. For example, a cell with ” 123 ” (with spaces) becomes 123.

Using the VALUE Function with Cleaning

If the text contains non-breaking spaces (common in web data) or other invisible characters, combine VALUE with CLEAN and TRIM. The formula =VALUE(TRIM(CLEAN(A1))) removes non-printable characters and extra spaces before converting. This is particularly useful when importing data from other systems. For example, if A1 contains ” 1,234 ” with a non-breaking space, the formula returns 1234.

Common Problems and Solutions

  • Green triangles not showing: Go to File > Options > Formulas and check “Enable background error checking”.
  • Convert to Number not appearing: This happens when the text contains characters Excel doesn’t recognize as numeric, like a leading apostrophe. Use Text to Columns or the VALUE function.
  • Numbers still left-aligned after conversion: Check the cell format. Select the cells and press Ctrl+1, then choose Number or General.
  • Decimal separators wrong: If your system uses commas for decimals, a text like “1,5” may not convert correctly. Use Text to Columns and specify the correct decimal separator.

Comparing Methods: Which One to Use?

  • Convert to Number: Best for small datasets with simple text numbers.
  • VALUE function: Best when you need a formula-based solution that updates if the source changes.
  • Paste Special: Best for large datasets where you want to replace the original data.
  • Text to Columns: Best for messy data with extra characters or when other methods fail.

Frequently Asked Questions

Why does my SUM formula ignore text numbers?

SUM ignores text values. If your range contains text-formatted numbers, they are not included in the sum. Convert them using any method above, and the SUM will update automatically.

How do I convert text to numbers in Excel for Mac?

The steps are the same. The warning icon and Paste Special options are available. Keyboard shortcuts differ: for Paste Special, press Command+Control+V on Mac.

Can I convert text to numbers without a formula?

Yes. Use the Convert to Number warning icon, Paste Special, or Text to Columns. These methods do not require writing formulas.

What if my text has a leading apostrophe?

A leading apostrophe forces Excel to treat the cell as text. To remove it, select the cells, press Ctrl+H, and replace the apostrophe with nothing. Then convert to number.

How do I convert text to numbers in a whole column at once?

Select the entire column, then use any method. For Paste Special, make sure to select the whole column before pasting. For Text to Columns, select the column and follow the wizard.

Does the VALUE function work with dates?

Yes, VALUE can convert text dates to serial numbers, but it depends on your system’s date settings. For example, =VALUE("1/1/2024") returns the serial number for that date if your locale uses MM/DD/YYYY.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.