+ Reply to Thread
Results 1 to 3 of 3

Convert 1/2-20 3a fractions into decimal

  1. #1
    Forum Contributor
    Join Date
    06-01-2009
    Location
    Cincinatti,Ohio
    MS-Off Ver
    Excel 2003
    Posts
    122

    Convert 1/2-20 3a fractions into decimal

    I need to convert the fraction at the beginning of a cells text into the decimal equivelent. for example 1/4-20 3A would give .2500.

    I have this formula so far that works perfect for fractions that only contain 1 number on each side of the division sign such as 1/2.
    Please Login or Register  to view this content.
    However if you type in 7/16-20-3A it gives an error. I can change the number in red to 4 or 5 and it will then work for 7/16 or 15/16, But then 1/2 will return an error.

    So is there a way to write it so that it will work for ALL fractions up to 2 digits on each side of the division sign, such as 15/16?

    Thanks for your time,
    Last edited by TheNewGuy; 06-24-2009 at 10:07 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Convert 1/2-20 3a fractions into decimal

    Adapated yours

    =VALUE("0 "&LEFT(B11,FIND("-",B11)-1))

    Assumes all strings contain a valid fraction and are followed by a hyphen.

  3. #3
    Forum Contributor
    Join Date
    06-01-2009
    Location
    Cincinatti,Ohio
    MS-Off Ver
    Excel 2003
    Posts
    122

    Re: Convert 1/2-20 3a fractions into decimal

    Sweet! works perfectly! Thanks again for your help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1