Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 01-30-2014, 10:40 AM
BobBridges's Avatar
BobBridges BobBridges is offline how to change fraction representation to decimal representation as file attached Windows 7 64bit how to change fraction representation to decimal representation as file attached Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

If you mean that there may be many spaces in a row (for example "5 3 1/2"), it's true that will cause a problem in my method. I don't see that in your data, though. In your data what I see is just one space between the base and the power, and then in some cases another space in the power itself, like this: "5 3 1/2". So all you need to do is first separate the base from the power using a FIND, LEFT and MID; then separate the power into its parts.

Two problems, though:

1) Whatever is between the base and its power, it isn't a space. I just looked more closely, and it's an invisible character with the decimal value of 160. I don't know why that's there, but it's easy enough to deal with. I can show you how.

2) The method I used involves several helping columns on every line. And now, because you have to separate the base from its power, there will be several more, probably 10 or 12 in all. That's a lot of extra columns. Perhaps writing a VBA worksheet function would be better.

Take a look at question-2.xls. I have written a VBA worksheet function that I called Question. In Sheet1 I've applied it to your sample data; I think it calculates everything correctly. Although in the end you may decide not to use this, it's much simpler than all those extra helping columns. But...it's simpler only if you are willing to use a VBA solution, which is sometimes not the best way to do things. If you'd rather use the formulae, let me know and we'll go back to that.
Attached Files
File Type: xls question-2.xls (41.5 KB, 10 views)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make any fraction look the same as the auto fraction pintree3 Word 2 07-30-2013 12:49 PM
how to change fraction representation to decimal representation as file attached Please Help for VBA Code for Attached File.. krishnaoptif Word VBA 3 07-17-2012 12:29 AM
how to change fraction representation to decimal representation as file attached question in pictorial representation gsrikanth Excel 1 03-02-2012 11:45 AM
how to change fraction representation to decimal representation as file attached Outlook2003 - how to write attached file to folder nodari Outlook 1 05-26-2011 08:51 AM
Hyperlink to attached file in email message spino Outlook 0 08-05-2010 05:56 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:43 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft