Tablora

Tablora · Library

Normalize apostrophe-separated thousands

Turn 1'234.50 into 1234.50 by choosing apostrophe grouping for one amount column, and see which apostrophe values the normalizer holds back.

Where apostrophe grouping turns up

Swiss-style price lists, payroll sheets and statements often write thousands with an apostrophe, so 1'234.50 means one thousand two hundred thirty-four and a half. Copy that column into a spreadsheet with English settings and the apostrophe usually makes the cell plain text, so it drops out of any sum without warning.

The same character also lives in names such as O'Neill, in product notes and in abbreviations. That is why the normalizer never strips apostrophes across the whole table. It works on the one column you pick, and it accepts the apostrophe only in a strict digit-group pattern: one to three digits first, then groups of exactly three.

Settings for an apostrophe-grouped column

Reading 1'234.50 step by step

With a decimal point and apostrophe grouping, the source value 1'234.50 becomes 1234.50. The grouping mark is removed, the two fraction digits stay exactly as written and nothing is rounded. An amount in the same column written without any grouping, for example 980.00, also converts under these settings.

A value such as 12'34.50 does not convert, because 34 is not a three-digit group. It stays in the cell exactly as typed and adds one to Values left for review, so you can go back to the source and see what was meant.

Converted values keep the point as the decimal mark, which is the form the decimal totals checker expects, so you can paste the converted column there to compare it with a stated total.

Pitfalls specific to apostrophe separators

Original synthetic example

Source value
1'234.50
Decimal separator
.
Grouping separator
'
Expected outcome
Normalized amount: 1234.50

Tools