Help needed with using VALUE function...

Hi All -
I'm needing to convert Text to Number as intermediate step for another formula column in my worksheet.
Have successfully used VALUE Function =VALUE(LEFT(Probability@row, 2))
This will work great until I get to 100%.... Help & advice welcome
Best Answer
-
Use LEN to count the length of the string, then subtract 1 to account for the percent sign.
=VALUE(LEFT(Probability@row, LEN(Probability@row) - 1))
Answers
-
Do you need the LEFT function? Have you tried to just use =VALUE(Probability@row )
-
Use LEN to count the length of the string, then subtract 1 to account for the percent sign.
=VALUE(LEFT(Probability@row, LEN(Probability@row) - 1))
-
@Carson Penticuff - this worked like a charm and will be used in other worksheets! Thank you:-) Unfortunately, I missed the obvious yesterday... do you know how I display the numerical value as a decimal?
-
Do you mean that you want the values to displayed as the decimal representation of the original percent? If so, the easiest way is just to divide the result by 100. Then format the relevant column to display the number of decimal places you need.
=(VALUE(LEFT(Probability@row, LEN(Probability@row) - 1))) / 100
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.1K Get Help
- 448 Global Discussions
- 154 Industry Talk
- 504 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 513 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!