## Summary

To convert simple text values to numbers, you can use the VALUE function, or simply add zero as described below. In the example shown, the formula in C5 is:

``````=VALUE(B5)
``````

## Generic formula

``=VALUE(A1)``

## Explanation

Sometimes Excel ends up with text in a cell, when you really want a number. There are many reasons this might happen, and many ways to fix. This article describes a formula-based approach to convert text values to numbers.

In this example, the values in column A are "stored as text". This means if you try to SUM column A, you'll get a result of zero.

The VALUE function will try to "coerce" a number stored as text to a true number. In simple cases, it will just work and you'll get a numeric result. If it doesn't work, you'll get a #VALUE error.

Another common trick is to simply add a zero to the text value with a formula like this:

``````=A1+0
``````

This forces Excel to try and convert the text value to a number to handle the math operation. This has the same functionality as VALUE above. In the example shown, C7 uses this formula.

### Stripping other characters

If a cell contains non-numeric characters like dashes, punctuation, and so on, you'll need to remove those characters before you can convert to numbers.

The formulas in C8 and C9 show how to use the LEFT and RIGHT functions to strip non-numeric characters from a text value before it's converted to a number. You can also use the MID function in more complicated situations. If you need to strip extra spaces or other non-printing characters, see the TRIM and CLEAN functions.

Finally, the SUBSTITUTE function will let you remove characters with "search and replace" type functionality. Author ### Dave Bruns

Hi - I'm Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.