How to Fix Dates and Numbers Stored as Text in Excel and Google Sheets

Why SUM, SUMIFS and sorting fail on text-formatted data, and five reliable fixes for dates and numbers that are stuck as text, including comma and period issues.

By ArchTrade Templates · Updated 2026-12-02 · 3 min read

You add a column of numbers and the total says 0. You sort dates and "1/10" ends up between "1/1" and "1/2". These are not formula bugs. The cells look like numbers or dates, but your spreadsheet treats them as text. This guide shows how to recognize the problem and fix it in Excel and Google Sheets.

How to recognize text-numbers

  • Values are left-aligned by default (real numbers are right-aligned).
  • Excel shows a small green triangle in the corner of the cell.
  • =ISNUMBER(A2) returns FALSE.
  • The status bar shows only "Count", not "Sum", when you select the cells.

To test a whole column quickly, enter =SUMPRODUCT(--ISNUMBER(A2:A100)) and compare the result with the number of rows.

Fix 1: Convert with the warning triangle

In Excel, select the cells with the green triangles, click the yellow warning icon, and choose Convert to Number. It is quick, but it only works when Excel has flagged the cells.

Fix 2: Multiply by 1

In a helper column, use:

=A2*1

or the shorter =--A2. If the text is a clean number, you get a real number back. Copy the helper column and Paste Special → Values over the original.

You can also type 1 in an empty cell, copy it, select the text-numbers, and use Paste Special → Multiply. No helper column needed.

Fix 3: Use VALUE (and clean first)

Sometimes spaces or odd characters block conversion. Combine VALUE with the cleaning functions from our data cleaning guide:

=VALUE(TRIM(SUBSTITUTE(A2, CHAR(160), "")))

Fix 4: Decimal commas versus decimal points

A very common problem for people sharing files across countries: "1.234,56" is one thousand two hundred thirty-four in many European locales, but a different value in US settings. If your system expects a period and the file has a comma, it stays text.

For simple values like "12,50" on a system that uses a period:

=VALUE(SUBSTITUTE(A2, ",", "."))

For values with thousands separators like "1.234,56", remove the thousands separator first:

=VALUE(SUBSTITUTE(SUBSTITUTE(A2, ".", ""), ",", "."))

Check a few results by hand. In Excel 365 you can also use NUMBERVALUE(A2, ",", "."), which lets you state the decimal and group separators explicitly. It is the cleanest answer to this problem.

Fix 5: Dates that will not behave

Dates as text can be converted with DATEVALUE:

=DATEVALUE(A2)

But DATEVALUE depends on your regional settings. A text "03/04/2027" may be 3 April or 4 March. If the format is fixed, build the date from its parts, which is safer:

=DATE(RIGHT(A2,4), MID(A2,4,2), LEFT(A2,2))

This one assumes dd/mm/yyyy text. If your text is yyyy-mm-dd, use =DATE(LEFT(A2,4), MID(A2,6,2), RIGHT(A2,2)).

A no-formula method: select the column, choose Data → Text to Columns, click Next twice, then in step 3 pick Date and the format (DMY, MDY or YMD). Finish, and Excel converts the cells in place.

In Google Sheets, set the correct locale in File → Settings → Locale, and use =DATEVALUE(A2) or =VALUE(A2).

After converting, format the cells

Real dates need a date format (Ctrl+1 → Date). Real numbers need a number format. If a converted date shows as 46023, that is a valid date serial number, just formatted as a plain number. Change the format to a date and it will look right.

Prevent the problem next time

  • Format the target columns as Number or Date before pasting data in.
  • Import CSV files with Data → From Text/CSV, where you can choose the delimiter, locale and column types.
  • Avoid typing apostrophes before numbers.
  • Use data validation for number and date columns so text cannot be typed in by accident.

Why it matters

SUMIFS, pivot tables, charts and conditional formatting all assume that numbers and dates are real. If they silently ignore text, your totals will be wrong without any error message. Fixing types is a five-minute job that protects every calculation afterwards. It also keeps trackers and budgets, such as the one in our monthly budget spreadsheet guide, accurate. For more templates and trackers that work out of the box, visit the ArchTrade Templates shop.