Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How To Perform and Interpret Regression Analysis in Excel
  • How to calculate correlation coefficient Correlation in Excel
  • How to do a t-Test in Excel?
  • Get column index in Excel Table
  • Understanding Pivot Tables in Excel

References

  • How to get first row number in range in Excel
  • How to get last row in text data in Excel
  • Count unique text values with criteria
  • How to use Excel FORMULATEXT function
  • How to get last row in numeric data in Excel

Data Validations

  • Excel Data validation require unique number
  • Excel Data validation must begin with
  • Excel Data validation allow uppercase only
  • Excel Data validation date in next 30 days
  • Excel Data validation unique values only

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:   Convert text to date 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 extract domain name from URL 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:   Convert feet and inches to inches 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:

Get day from date in Excel

Next Post:

Calculate loan interest in given year 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

Logical Functions

  • How to use Excel XOR Function
  • Extract multiple matches into separate rows in Excel
  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • IF function: Description, Usage, Syntax, Examples and Explanation
  • AND function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • DATE function: Description, Usage, Syntax, Examples and Explanation
  • DAY function: Description, Usage, Syntax, Examples and Explanation
  • Find Last Day of the Month in Excel
  • Sum through n months in Excel
  • Calculate retirement date in Excel

Grouping

  • If cell contains one of many things in Excel
  • Map text to numbers in Excel
  • Calculate conditional mode with criteria in Excel
  • How to randomly assign data to groups in Excel
  • Group numbers at uneven intervals in Excel

General

  • Subtotal invoices by age in Excel
  • Select, Insert, Rename, Move, Delete Worksheets in Excel
  • List worksheet index numbers in Excel
  • How to get random value from list or table in Excel
  • Find, Trace and Correct Errors in Excel Formulas using ‘Formula Auditing’
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning