Forum Discussion
SoyAllenChiu
Oct 02, 2023Copper Contributor
EXTRACT NUMBER WITH FORMULA
Hi everyone, can someone help me solve this issue? If in a cell there is this term "DISCOUNT 15.00%" how can I extract only the number within text, so I can use it as source amount for calculatio...
- Oct 02, 2023
Hi,
Try
=VALUE(MID(B93,FIND(" ",B93)+1,FIND("%",B93)-(FIND(" ",B93)+1)))
It worked for me. I added "Value" just to get a number instead of a text.
Best regards
Per
Hogstad_Raadgivning
Oct 02, 2023Steel Contributor
=TEXTAFTER(TEXTBEFORE(D5;"%");" ") where the string "DISCOUNT 15.00%" is in D5.
- SanthoshKunderOct 02, 2023Iron ContributorTo prevent calculation errors, it's advisable to wrap this formula with VALUE()
- SoyAllenChiuOct 02, 2023Copper ContributorRight. By applying the formula, without finish it, it prompt me to check the formula.