Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • How to use Excel VLOOKUP Function
  • CHOOSE function: Description, Usage, Syntax, Examples and Explanation
  • How to get address of last cell in range in Excel
  • How to use Excel ROW Function
  • Multi-criteria lookup and transpose in Excel

Data Analysis Examples

  • How To Create Frequency Distribution in Excel
  • How To Remove Duplicates In Excel Column Or Row?
  • Add Outline to Data in Excel
  • Filter Data Based on Date in Excel
  • How to create a Histogram in Excel

Data Validation Examples

  • Excel Data validation don’t exceed total
  • Prevent invalid data entering in specific cells
  • Excel Data validation specific characters only
  • Excel Data validation must not contain
  • Excel Data validation no punctuation

Convert text to numbers using VALUE function in Excel

by

To convert simple text values to numbers, you can use the the VALUE function, or simply add zero as described below.

Formula

=VALUE(A1)

Explanation

In the example shown, the formula in C5 is:

=VALUE(B5)

Background

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 convert text values to numbers.

Worked Example:   Extract word that begins with specific character in Excel

How this formula works

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.  Visit Convert Text to Numbers to see other examples.

Worked Example:   How to count specific characters in a range in Excel

Add zero instead

Another common trick is to simply add zero to the text value to convert. 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. Cell C7 uses this formula.

Stripping other characters

If a cell contains non-numeric characters like dashes, punctuation, and so on, you’ll need to apply more effort.

Worked Example:   How to get last word in a cell in Excel

The formulas in C8 and C9 show how to use the LEFT and RIGHT functions to strip non-numeric characters from a 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 strip other characters that appear in random locations inside a value.

Post navigation

Previous Post:

Convert date string to date time in Excel

Next Post:

How to convert numbers to text using TEXT function in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others
  • Find function vs Search function in Excel
  • How to check if cell contains all of many things in Excel
  • Split numbers from units of measure in Excel
  • NUMBERVALUE function: Description, Usage, Syntax, Examples and Explanation
  • Extract word that begins with specific character in Excel
  • Get days between dates in Excel
  • Display the current date and time in Excel
  • Find Last Day of the Month in Excel
  • MINUTE function: Description, Usage, Syntax, Examples and Explanation
  • NETWORKDAYS.INTL function: Description, Usage, Syntax, Examples and Explanation
  • YIELD function: Description, Usage, Syntax, Examples and Explanation
  • How to calculate compound interest in Excel
  • NOMINAL function: Description, Usage, Syntax, Examples and Explanation
  • How to calculate annuity for interest rate in excel
  • How to calculate simple interest in Excel
Acronyms, Abbreviations, Initialism & What They Stand For
© 2021 xlsoffice. All Rights Reserved | Teal Smiles