Forum Discussion
Rochejf
3 years agoFrequent Visitor
Extract round figure from Text
I try using code below to extract figure from text, it works on round figure but not on float. Text.Select([TextColumn], {"0".."9"}) This is my output below. QUANTITY x 4 4 QUANTITY...
- 3 years ago
pls try this
List.Select( Splitter.SplitTextByAnyDelimiter({",", ".", " "})( Text.Select([Column1], {"1" .. "9", ",", ".", " "}) ), each _ <> "" ){0}
Ahmedx
Super User
3 years agopls try this
List.Select(
Splitter.SplitTextByAnyDelimiter({",", ".", " "})(
Text.Select([Column1], {"1" .. "9", ",", ".", " "})
),
each _ <> ""
){0}Rochejf
3 years agoFrequent Visitor
It works. However, there's some empty cell in that column also so it will generate error result
- Ahmedx3 years ago
Super User
pls try this
List.Select( Splitter.SplitTextByAnyDelimiter({",", ".", " "})( Text.Select([Column1], {"0" .. "9", ",", ".", " "}) ), each List.ContainsAny({_},{"0" .. "9"})){0}