Invalid value (Problem with RIGHT, SUBSTITUTE and VALUE Formula
Hello,
As the picture below shows, I am trying to extract 2 numbers from a cell that displays different formats (paper sizes). I need to set up a calculation with the 2 numbers. That is why I use the LEFT and RIGHT Formula to extract the text and the VALUE formula to change it to number format.
I also use the SUBSTITUTE formula because I need the decimal comma (",") instead of decimal point ("."). As you can see, the LEFT formula works perfectly, but the RIGHT formula hits an error (INVALID VALUE), when I add the VALUE formula.
LEFT formula:
=VALUE(SUBSTITUTE(LEFT(FORMAT@row; (FIND(" "; FORMAT@row; 1)  1)); ","; "."))
RIGHT formula (with error):
=VALUE(SUBSTITUTE(RIGHT(FORMAT@row; LEN(FORMAT@row)  FIND("x "; FORMAT@row; 1)); ","; "."))
Has anyone an idea, what I'm doing wrong?
Thanks in advance, Kilian
Best Answer

Add 1 to the result of the FIND function ad then wrap it in parenthesis so that it calcuates that value before being subtracted from the LEN.
LEN(.......)  (FIND(...........) + 1)
Answers

Add 1 to the result of the FIND function ad then wrap it in parenthesis so that it calcuates that value before being subtracted from the LEN.
LEN(.......)  (FIND(...........) + 1)

Thank you @Paul Newcome for helping so fast! It worked perfectly!
Help Article Resources
Categories
Check out the Formula Handbook template!