Add to Claude

Guides · For agents

Remove currency symbols from a CSV column

Tools: sift_fix_dry_run, sift_fix_apply, sift_fix_undoWorks with Claude Code

Ask your agent to run Sift's strip_currency fix on the column. It takes off the £, $, € or ¥ and the thousands commas, so £1,250.00 becomes 1250.00, and flags anything that isn't a plain amount. In the test expense file, 6 of 12 amounts change and 3 are flagged for you.

Ask your agent

With Sift connected (setup takes three steps), paste this and swap in your own paths.

Use Sift with /path/to/rules.expenses.json on /path/to/expense_claims.csv. Dry run strip_currency on the amount column. Tell me what would change and what was flagged, then apply it if I say yes.

Half the amounts change here, so the rules file's share-of-rows limit has to allow it. This one allows up to 60%: {"guardrails": {"stop_if_share_of_rows_changed_over": 0.6}}. With the usual 0.2, Sift stops before writing anything.

What Sift sends back

Amounts that would change6 of 12 (50%)
Flagged, left as they were3: TBC (not an amount), £2,50.00 (a comma in the wrong place) and -£15.00 (a minus sign before the £)
Already plain numbers2
Blank1
After applyA new file, a receipt and a changes-only file. The original is not touched.
After undoThe original rebuilt, matching byte for byte

£1,250.00 becomes 1250.00, £ 9.99 becomes 9.99 and £310 becomes 310. An amount with no symbol but a thousands comma, 1,200.00, loses the comma too. Decimal places stay as written.

When the column mixes currencies

Sift will not strip a column that holds more than one currency. Taking the symbols off would make 120 pounds and 99 dollars look like the same kind of number.

In the test bookings file, the rate column has six £ amounts and one $. The dry run flags all 7 values that carry a symbol with the reason the column mixes currencies ($ and £), and nothing with a symbol changes. Only 1,200.00, which has no symbol, would lose its comma.

Convert the odd ones to the main currency at the source, or keep the currency in its own column, then run the fix again.

What to do next

Questions

Which symbols does it take off?
£, $, € and ¥, with the thousands commas and a space after the symbol. The symbol has to come before the number: 45 € or GBP 45 is flagged, not guessed.
Does it change my original file?
No. It writes a new file, a receipt and a changes-only file. Undo rebuilds the original from the receipt, byte for byte.
Does it work on an Excel file?
Fixes work on CSV, which is what makes the undo exact. Save the sheet as CSV first, then point your agent at the CSV.

One file, no agent? Clean a file by hand in your browser, with nothing uploaded.

More guides

Guide Change prices across a list, with a dry run and an undo Guide Convert mixed date formats to YYYY-MM-DD in a CSV Guide Write a rules file