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

Data Analysis

  • How to calculate correlation coefficient Correlation in Excel
  • How To Create Pareto Chart in Excel
  • How to count table columns in Excel
  • Example of COUNTIFS with variable table column in Excel
  • Excel Line Chart

References

  • Extract all partial matches in Excel
  • How to use Excel ROW Function
  • Merge tables with VLOOKUP in Excel
  • Count rows with at least n matching values
  • How to get relative row numbers in a range in Excel

Data Validations

  • Excel Data validation with conditional list
  • Excel Data validation require unique number
  • Excel Data validation unique values only
  • Excel Data validation whole percentage only
  • Prevent invalid data entering in specific cells

Convert Text to Numbers in Excel

by

By default, text is left-aligned and numbers are right-aligned in Excel.

Atimes user enter inverted comma before inputting data values in a cell which automatically converts a number to text.

This example teaches you how to convert ‘text strings that represent numbers’ to numbers.

1. Select the range A1:A4 and change the number format to General.

2. Numbers preceded by an apostrophe are also treated as text. Select cell A5 and manually remove the apostrophe.

3a. You can also combine step 1 and 2 by adding an empty cell to the range A1:A5. By doing this, you let Excelknow that these text strings are numbers. Copy an empty cell.

3b. Select the range A1:A5, right click, and then click Paste Special.

3c. Click Add.

3d. Click OK.

Result. All numbers are right-aligned and treated as numbers.

4a. You can also use the VALUE function.

4b. Here’s another example. Use the Right function (or any other text function) to extract characters from a text string and then use the VALUE function to convert these characters to a number.

Post navigation

Previous Post:

VLOOKUP without #N/A error in Excel

Next Post:

Manipulating text strings using Left, Mid, Right, Len, Substitute 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

  • SWITCH function: Description, Usage, Syntax, Examples and Explanation
  • SWITCH function example in Excel
  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel NOT Function
  • IF with wildcards in Excel

Date Time

  • How to get Weekdays, Working days between Two Dates in Excel
  • Calculate retirement date in Excel
  • Get work hours between dates in Excel
  • DATEVALUE function: Description, Usage, Syntax, Examples and Explanation
  • Convert date string to date time in Excel

Grouping

  • How to randomly assign data to groups in Excel
  • Group numbers with VLOOKUP in Excel
  • Running count group by n size in Excel
  • Group times into 3 hour buckets in Excel
  • Map inputs to arbitrary values in Excel

General

  • Basic numeric sort formula in Excel
  • Share Excel data with Word documents
  • Subtotal invoices by age in Excel
  • How to generate random date between two dates in Excel
  • Basic text sort formula in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning