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!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 146 Just for fun
- 63 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!