Tablora

Tablora · Library

Read a space-grouped amount

Read amounts like 1 234,50, where a space or a non-breaking space groups the thousands, without deleting spaces anywhere else in the table.

Spaces as thousands separators

French, Polish, Czech, Nordic and many other conventions group digits with a space: 1 234,50. In typeset documents and PDF exports that space is often a non-breaking space or a narrow no-break space, which look identical on screen but are different characters. Paste such an amount into a spreadsheet and the cell is usually treated as text.

Choosing Space as the Grouping separator tells the normalizer to accept the ordinary space, the non-breaking space, the narrow no-break space and the thin space between digit groups. It applies only to the column you choose, so spaces inside descriptions and names are left alone.

Converting 1 234,50

The page example uses Decimal separator , and Grouping separator SPACE with the source value 1 234,50. The result is 1234.50: the group space is removed, the comma becomes the decimal point and both fraction digits stay.

The grouping still has to be regular. Two spaces between groups, as in 1 234,50, or a group of the wrong length, as in 12 34,50, is held for review with its original text, because those values could be two numbers that ran together.

The non-breaking variants are treated as spaces only inside the selected column, and the converted amount contains no spaces at all, so the result can go straight into the decimal totals checker.

Setting up the normalizer

Space-related traps

Original synthetic example

Source value
1 234,50
Decimal separator
,
Grouping separator
SPACE
Expected outcome
Normalized amount: 1234.50

Tools