Guides · For agents
Remove currency symbols from a CSV column
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
£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
- Fix the three flagged amounts at the source. Sift will not guess whether £2,50.00 meant 250.00 or 2,500.00.
- If -£15.00 is a refund, write it as -15.00. Sift flags a minus sign before the symbol rather than move it.
- Now the column is plain numbers, the number fix can add, multiply or round it. See change prices across a list.
Questions
£, $, € 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.
No. It writes a new file, a receipt and a changes-only file. Undo rebuilds the original from the receipt, byte for byte.
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.