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
- Smartsheet Customer Resources
- 63.4K Get Help
- 396 Global Discussions
- 213 Industry Talk
- 448 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 133 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 293 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!