Trailing minus in a CSV: turn 12.50- into a negative amount
Some accounting and banking systems write a negative amount with the minus sign at the end: 12.50- instead of -12.50. Many importers read that as text. Choose the file below: the page works in your browser, moves the sign to the front, shows the first 20 cleaned rows and lists every line it left out, with the reason.
Clean your CSV export
The cleaner detects the delimiter (comma, semicolon or tab), looks for a header row with a date column and an amount column, and writes eight fixed columns, comma-delimited: date, description, amount, currency, fee, net, reference and source. It recognises common header names in English, Spanish, German and French, such as Date, Fecha, Buchungstag, Amount, Importe, Betrag and Montant.
Your file is read in your browser and is never uploaded, stored or logged. It is held in the memory of this tab only, and closing or reloading the page discards it. Operator: Augeo. See the privacy notice.
Exports do not share one layout, and this page makes no promise about yours: the free preview shows what it does to your file.
The cleaning logic is checked by an automated test script that runs the engine file of this site over six synthetic sample files and a set of checks of the parsing rules; it ran in a sandbox before this site was published and finished with no failed check. The script does not open this page in a browser, does not test the licence key step, and nothing was tested against a real export from any provider. Use the free preview to check your own file.
Report
Warnings
Lines not parsed
Lines dropped
Preview of the cleaned rows
| line | date | description | amount | currency | fee | net | reference | source |
|---|
Download the full cleaned file
- Price: 6 USD, paid once on Gumroad. No subscription. You receive a licence key.
- What the key unlocks: the download of every cleaned row of the file you chose, as one CSV named after your file with -cleaned.csv at the end, instead of the first 20 rows on screen. The report and the way files are read stay the same.
- The key is for one buyer. Runs are not counted and no number of runs is promised. The key is kept in the memory of this page only, so you enter it again after closing or reloading the page.
- Refunds are requested through your Gumroad receipt and follow Gumroad's refund policy.
- Try the free preview first. If the preview cannot read your file, the full download cannot either.
Get a licence key on Gumroad for 6 USD
How a trailing minus is read
| In the export | amount in the cleaned file |
|---|---|
| 12.50- | -12.50 |
| 1,250.00- | -1250.00 |
| $45.10- | -45.10 |
| 0.00- | 0.00 |
| (182.40) | -182.40 |
| -12.50- | row left out: amount is not a number |
- A minus sign after the digits makes the amount negative.
12.50-becomes-12.50, written with the sign in front and a decimal point. - Typographic dashes count as a minus sign. An en dash, an em dash or the mathematical minus sign after the number is read the same way as a hyphen.
- A space before the sign does not matter.
12.50 -is read as-12.50. - Thousands separators and currency signs are removed first.
1,250.00-becomes-1250.00and$45.10-becomes-45.10. A code after the sign is kept:12.50- EURgives-12.50with EUR in the currency column. - A trailing plus sign is accepted too.
12.50+becomes12.50. - Zero is never written as negative.
0.00-becomes0.00. - A sign at both ends is refused.
-12.50-is not a number: the row is left out and listed under "Lines not parsed" with its line number and the text found. Nothing is turned into zero. - A cell that holds only hyphens is an empty cell.
-and--are markers for "no value", not numbers. - Other ways of writing a negative are read as well.
(182.40)and182.40 DRboth become-182.40. See the page about amounts in parentheses. - The digits are moved as text. The amount is rewritten character by character and is not passed through a floating-point number.
In a decimal-comma file the same rule applies: 45,90- becomes -45.90. The report shows which separator was found in its "Decimal separator" line.
The output is always the same eight columns (date, description, amount, currency, fee, net, reference and source). In a file with separate debit and credit columns, the two are merged into one signed amount, and a debit is written as negative whichever way its sign is given.
Notices
- Privacy: files are read in your browser and never uploaded, stored or logged. Operator: Augeo.
- Independent tool, not affiliated with or endorsed by Etsy, PayPal, QuickBooks or any bank.
- Check the output before you use it. This is not accounting, tax or financial advice.
- Price of the full download: 6 USD one-time. The key is for one buyer. Refunds are requested through the Gumroad receipt.
- Only upload data you have the right to process. Choosing a file here does not send it anywhere, but you remain responsible for the data in it.
Other pages
- Fix date and decimal format in a bank CSV
- Convert a semicolon CSV to a comma CSV
- Negative amounts in parentheses in a CSV
- Fix DD/MM and MM/DD dates in a CSV
- Convert a tab-delimited file to a comma CSV
- Remove total and footer lines from a bank CSV
- Line breaks inside quoted fields of a CSV
- Gross, Fee and Net columns of a PayPal CSV
- Remove the lines above the header of a CSV
- Convert CSV dates to YYYY-MM-DD
- Remove duplicate rows from a CSV export
- Merge debit and credit columns into one amount
- Any other CSV export of transactions