Forum Discussion
mdrammeh
Helper III
10 years agoHow to extract number from text
I am trying to figure out how to extract numbers numbers from a text. For example, if I want to extract the number of miles (MI) from this description: Factory OH Expense ABCD1315 14.0 MI ...
v-haibl-msft
Microsoft Employee
10 years ago
You can also do it by creating a column with following formula.
Num = TRIM ( RIGHT ( SUBSTITUTE ( LEFT ( Table1[Texts], FIND ( "MI", Table1[Texts] ) - 2 ), " ", REPT ( " ", 100 ) ), 100 ) )
Best Regards,
Herbert
mdrammeh
Helper III
10 years agoReceived the folowing error message:
"The search Text provided to function 'FIND' could not be found in the given text."
- v-haibl-msft10 years ago
Microsoft Employee
Do some text stings in your data not have “MI” in them? The error message will return if it cannot find “MI” in the column values.
Best Regards,
Herbert