Hi
I'd like to pull numbers from text for some lines.
The example below has just 4 columns - the product ID and description, then two columns with the formulas I've used.
The first formula (in column C) shows the starting point of the first number in the text in column B.
The second formula (in column D) shows the actual number.
However, there are two issues:
i) the second formula sometimes pulls in letters after the numbers eg 180g instead of 180 (without the "g") and
ii) where there are two sets of numbers in the text description, the formula returns both sets of numbers eg 4 poivres 75g when it should just be 75g.
Does anyone know a way around this?
Thanks in advance.
[TABLE="width: 590"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]Product ID[/TD]
[TD]Product Name[/TD]
[TD]Starting char. for no. [/TD]
[TD]Pack size from text[/TD]
[/TR]
[TR]
[TD]5959302[/TD]
[TD]Chocolate 180g[/TD]
[TD]11[/TD]
[TD]180g[/TD]
[/TR]
[TR]
[TD]4197003[/TD]
[TD]Delice aux 4 poivres 75g[/TD]
[TD]12[/TD]
[TD]4 poivres 75g[/TD]
[/TR]
[TR]
[TD]4326029[/TD]
[TD]Crisps 6 Portions 120g[/TD]
[TD]8[/TD]
[TD]6 Portions 120g[/TD]
[/TR]
[TR]
[TD]3456411[/TD]
[TD]Fondue 1% Trüfflen 600g[/TD]
[TD]8[/TD]
[TD]1% Trüfflen 600g[/TD]
[/TR]
[TR]
[TD]5614167[/TD]
[TD]Bio Yog 120g FE[/TD]
[TD]9[/TD]
[TD]120g FE[/TD]
[/TR]
[TR]
[TD]6034195[/TD]
[TD]Fondue 100% Vacherin 450g[/TD]
[TD]8[/TD]
[TD]100% Vacherin 450g[/TD]
[/TR]
[TR]
[TD]5770331[/TD]
[TD]Camembert -55% Fett 125g[/TD]
[TD]12[/TD]
[TD]55% Fett 125g[/TD]
[/TR]
[TR]
[TD]5843635[/TD]
[TD]Babybel 18 St. 396g[/TD]
[TD]9[/TD]
[TD]18 St. 396g[/TD]
[/TR]
</tbody>[/TABLE]
I'd like to pull numbers from text for some lines.
The example below has just 4 columns - the product ID and description, then two columns with the formulas I've used.
The first formula (in column C) shows the starting point of the first number in the text in column B.
The second formula (in column D) shows the actual number.
However, there are two issues:
i) the second formula sometimes pulls in letters after the numbers eg 180g instead of 180 (without the "g") and
ii) where there are two sets of numbers in the text description, the formula returns both sets of numbers eg 4 poivres 75g when it should just be 75g.
Does anyone know a way around this?
Thanks in advance.
[TABLE="width: 590"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]Product ID[/TD]
[TD]Product Name[/TD]
[TD]Starting char. for no. [/TD]
[TD]Pack size from text[/TD]
[/TR]
[TR]
[TD]5959302[/TD]
[TD]Chocolate 180g[/TD]
[TD]11[/TD]
[TD]180g[/TD]
[/TR]
[TR]
[TD]4197003[/TD]
[TD]Delice aux 4 poivres 75g[/TD]
[TD]12[/TD]
[TD]4 poivres 75g[/TD]
[/TR]
[TR]
[TD]4326029[/TD]
[TD]Crisps 6 Portions 120g[/TD]
[TD]8[/TD]
[TD]6 Portions 120g[/TD]
[/TR]
[TR]
[TD]3456411[/TD]
[TD]Fondue 1% Trüfflen 600g[/TD]
[TD]8[/TD]
[TD]1% Trüfflen 600g[/TD]
[/TR]
[TR]
[TD]5614167[/TD]
[TD]Bio Yog 120g FE[/TD]
[TD]9[/TD]
[TD]120g FE[/TD]
[/TR]
[TR]
[TD]6034195[/TD]
[TD]Fondue 100% Vacherin 450g[/TD]
[TD]8[/TD]
[TD]100% Vacherin 450g[/TD]
[/TR]
[TR]
[TD]5770331[/TD]
[TD]Camembert -55% Fett 125g[/TD]
[TD]12[/TD]
[TD]55% Fett 125g[/TD]
[/TR]
[TR]
[TD]5843635[/TD]
[TD]Babybel 18 St. 396g[/TD]
[TD]9[/TD]
[TD]18 St. 396g[/TD]
[/TR]
</tbody>[/TABLE]