How to convert a number with a fraction reading as text, to a number (3 2/3) to 3.66
I'm having an issue with incoming data being read as a text. I need it changed to read as a number so I can incorporate formulas. I've tried a few value formulas. The initial formula to pull the numbers from the original text is substitute function. Thanks in advance
Answers
-
Hi @Tshaw ,
You'll need to parse out the pieces, convert them to values and then put them together.
Try:
=VALUE(LEFT([fraction text]@row, FIND("/", [fraction text]@row)-1)+(VALUE(MID([fraction text]@row, FIND("/", [fraction text]@row)+1),1))/VALUE(RIGHT([fraction text]@row, 1)))
Change [fraction text] to your column name. It's set up to convert a 3 digit fraction including the /. I didn't test it so you might need to tweak it if you get an UNPARSABLE or other error.
Help?
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!