Skip to content
Free · Checks run in your browser

Fix numbers stored as text in a CSV file

Find the values in a number column that are really text, like "$1,200.00", "(45.00)" and "12%", and turn them into numbers a sum can use. The fixed file comes by email.

Drop a CSV or Excel file here

CSV, TSV, XLSX, XLS or ODS, up to 50 MB. Checked in your browser.

  • No sign-up
  • Checked in your browser
  • Clean file emailed to you
Why it happens

Why a CSV's numbers come in as text

A CSV has no types; every value is text until something reads it. Exports often write money with a currency sign and thousands separators, negatives in brackets and rates with a percent sign, because that is how the report showed them.

Excel converts what it recognises and leaves the rest as text, marked with a green triangle. SUM skips text, so a total comes out short without any error.

What it converts

What becomes a number, and what stays text

  • Money and separators

    "$1,200.00" and "1 050" become 1200 and 1050. Currency signs and thousands separators go.

  • Brackets and percents

    "(45.00)" becomes -45, the accounting way of writing a negative. "12%" becomes 0.12.

  • Codes stay text

    Values with a leading zero, like ZIP codes and account numbers, stay as they are, so 02134 keeps its zero.

How it works

How to fix numbers stored as text in a CSV file

  1. 1Drop a CSV or Excel file on the box, or try the sample.
  2. 2Check the cells: each shows the text value and the number it becomes.
  3. 3Pick Excel or CSV and enter your email. The clean file arrives as a download link.
Questions

Questions about numbers as text

Which columns does it change?
Only columns where most values already read as numbers. A column of names with one number in it is left alone.
Will the green triangles in Excel go away?
Yes. In the Excel copy the values are stored as numbers, so Excel has nothing to flag. In a CSV copy they are written as plain numbers, which Excel reads as numbers when it opens the file.
What files can it open?
CSV and TSV files, Excel workbooks (.xlsx and .xls) and OpenDocument spreadsheets (.ods), up to 50 MB. A CSV too big for Excel to open is fine, because nothing here goes through Excel.
Is my file uploaded?
Your original is not. The checks and fixes run in your browser. Only the clean file is sent to our server when you ask us to email it, and it is deleted within the hour.
Why does it email the file?
So it can send the occasional note about cleaning files like these, which you can unsubscribe from in one click. The email holds a download link that works for one hour.
I clean the same export every month.
Mammoth can keep these fixes as steps. Put next month's file in a Mammoth folder and it is added to the same table, cleaned the same way.

Clean it once. Let Mammoth do next month.

Turn these fixes into steps that run on every new file, then build the dashboard on top.

  • ✓ 14-day Pro trial
  • ✓ No credit card
  • ✓ Viewers always free