Skip to content
Blog/Excel
Excel

How to Convert Text to Number in Excel

Convert text to numbers in Excel so imported amounts, IDs, dates, and totals calculate correctly instead of looking right but behaving wrong.

Do this with AI

Try Griddy free

Start in your browser. Also works with Excel and Google Sheets.

By Justin Freels//6 min read

Numbers stored as text are one of the most common reasons Excel totals, lookups, and filters behave strangely. The cells may look numeric, but Excel treats them like labels instead of values.

This usually happens after copying from a bank export, CSV, accounting system, CRM, or web report.

Quick fix with the warning icon

If Excel shows a small warning triangle, select the affected cells, click the warning icon, and choose Convert to Number.

This is the fastest fix when Excel has already detected the issue.

Multiply by 1

If the warning icon does not appear, put 1 in an empty cell, copy it, select the text-number range, then choose Paste Special -> Multiply.

Excel multiplies each selected value by 1, which converts many text numbers into real numbers without changing the displayed amount.

Use this carefully in an expense tracker or small business budget because blank cells, labels, and mixed fields should not be converted blindly.

Use VALUE in a helper column

For a visible formula approach, use VALUE.

fx
=VALUE(A2)

This converts a text number in A2 into a numeric value. After checking the results, copy the helper column and paste values over the original column if needed.

Remove hidden characters

Some imports include spaces, currency symbols, commas, nonbreaking spaces, or other hidden characters. Clean those first:

fx
=VALUE(SUBSTITUTE(TRIM(A2),"$",""))

If commas are part of the issue, remove them too:

fx
=VALUE(SUBSTITUTE(SUBSTITUTE(TRIM(A2),"$",""),",",""))

Only remove symbols that you have confirmed are formatting characters. Decimal and thousands separators vary by locale, and a blanket replacement can change the value.

Common symptoms

SymptomLikely causeFix
SUM ignores valuesAmounts are stored as textConvert the amount column
Sort order looks wrongText sorts alphabeticallyConvert numbers before sorting
Lookup misses matchesOne side is text, one side is numericNormalize both keys
Green triangles appearExcel detected text numbersUse Convert to Number

TIP

Before converting ID fields, confirm they should be numeric. Invoice IDs, ZIP codes, and account codes often need to stay as text.

Excel stores only 15 digits of numeric precision. Keep credit card numbers and long identifiers as text; converting them to numbers can replace digits after the fifteenth with zeros. Preserve leading zeros with text or an appropriate display format when the value is a code rather than a quantity.

After using a helper formula, check totals and sample values, then copy the results and use Paste Special → Values only if the original column should be replaced.

Do this with AI

Imported numbers can look fine until the review meeting, when totals or pivots do not match.

"Find columns where numbers are stored as text, convert amount fields safely, and leave invoice IDs and account codes alone"

Griddy can inspect the sheet, separate true amounts from identifier fields, and fix the columns that should actually calculate.

Try the cleanup on an expense tracker copy and verify subtotals before replacing imported source values.

Sources

Do this with AI

Turn the instructions into a finished spreadsheet.

Tell Griddy what you need in plain English, then inspect and keep editing the result in the browser, Excel, or Google Sheets.

Try Griddy freeStart in your browser. No download required.
Also works withExcel Google Sheets

Use this on real templates

Fix imported numbers before totals drift

Finance templates are only reliable when amount, date, and quantity fields have the right data type before formulas and summaries run.

Finance