+ Reply to Thread
Results 1 to 13 of 13

Having trouble converting fractions to decimals.

  1. #1
    Registered User
    Join Date
    03-04-2013
    Location
    usa
    MS-Off Ver
    Excel 2016
    Posts
    39

    Having trouble converting fractions to decimals.

    I am trying to convert a column of fractions, 2 1/2" to decimal 2.5

    If i remove the quote excel changes it to a date.

    Thanks for your help!
    Last edited by i.r.smith; 01-21-2015 at 04:47 PM.

  2. #2
    Registered User
    Join Date
    01-09-2015
    Location
    NC
    MS-Off Ver
    2010
    Posts
    25

    Re: Having trouble converting fractions to decimals.

    Before you remove the quote, what is the format of the cell?

  3. #3
    Registered User
    Join Date
    03-04-2013
    Location
    usa
    MS-Off Ver
    Excel 2016
    Posts
    39

    Re: Having trouble converting fractions to decimals.

    general format
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,379

    Re: Having trouble converting fractions to decimals.

    If you will format your cells as fraction before entering the data, then Excel will automatically see these as fraction/mixed numbers and the cell value will be correct. After entering the data, you can then format as general or other fixed format and get the decimal values.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Registered User
    Join Date
    03-04-2013
    Location
    usa
    MS-Off Ver
    Excel 2016
    Posts
    39

    Re: Having trouble converting fractions to decimals.

    for some reason I can't attach another file. Here it is on my site.
    www.thegallery.us/temp/fraction2.xlsx

    I formatted column G as fraction
    Then I copied column E and paste to column G
    No change


    Then I copied column E into notepad and removed all the quotes and copied from notepad to column I after I formated comumn I as fraction changed all to dates

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Having trouble converting fractions to decimals.

    deleted ...
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Registered User
    Join Date
    03-04-2013
    Location
    usa
    MS-Off Ver
    Excel 2016
    Posts
    39

    Re: Having trouble converting fractions to decimals.

    any one have a solution?

    www.thegallery.us/temp/fraction2.xlsx

    I formatted column G as fraction
    Then I copied column E and paste to column G
    No change


    Then I copied column E into notepad and removed all the quotes and copied from notepad to column I after I formated comumn I as fraction changed all to dates

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Having trouble converting fractions to decimals.

    Try this formula

    =("0 "&SUBSTITUTE(E2,CHAR(34),""))+0
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  9. #9
    Registered User
    Join Date
    03-04-2013
    Location
    usa
    MS-Off Ver
    Excel 2016
    Posts
    39

    Re: Having trouble converting fractions to decimals.

    Quote Originally Posted by AlKey View Post
    Try this formula

    =("0 "&SUBSTITUTE(E2,CHAR(34),""))+0

    It worked with fractions less than 1
    I get a #VALUE! with fractions more than 1

    1 1/8" #VALUE!
    1 1/8" #VALUE!
    1 1/8" #VALUE!
    1 1/8" #VALUE!
    1 1/8" #VALUE!
    7/8" 0.875
    7/8" 0.875
    7/8" 0.875
    1 1/8" #VALUE!
    1 1/8" #VALUE!
    4" #VALUE!
    Last edited by i.r.smith; 01-21-2015 at 10:37 PM.

  10. #10
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,379

    Re: Having trouble converting fractions to decimals.

    I have sometimes wished Excel had a global "I prefer things with / to be seen as fractions" setting, because Excel currently just has too much preference for interpreting input as dates.

    The easiest approach might be a combination of a function like Alkey suggests and a find replace. I think you will find that the find/replace method works just fine for the values greater than 1, because i n/d type number cannot be readily interpreted as dates, so Excel will naturally want to see those as fractions. A function like Alkey's will then work to fix those that are between 0 and 1.

  11. #11
    Forum Contributor
    Join Date
    04-07-2009
    Location
    Rowley
    MS-Off Ver
    Excel 2007
    Posts
    326

    Re: Having trouble converting fractions to decimals.

    Try this, it's a bit of a cheat but seems to work.

    Open your file
    Click Tools
    Click Options
    Look for the Transition tab, click the Transition check box, and then click OK

    Next select your complete range of cells, E2:E1063
    Next select Find & Replace and replace the double quote with nothing.
    DO NOT PRESS ENTER
    All your fractions should be clear of the double quote marks now.

    Next select Copy,
    then select a new column that has NOT been formatted it should be just the default General format
    Then do a Paste > Special > Values

    All your fractions should be in the correct format, at least mine where when I tried it.

    Next, go back to the Tool Bar and uncheck the Transition option.

    See if it works for you.

    Edit Added:

    Spoke too soon, the simple fractions did not convert, so it's only a partial solution.
    Last edited by xenixman; 01-21-2015 at 11:27 PM.

  12. #12
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Having trouble converting fractions to decimals.

    in 2007 up

    maybe
    =IFERROR(("0 "&SUBSTITUTE(E2,CHAR(34),""))+0,--TRIM(LEFT(E2,SEARCH("""",E2)-1)))
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  13. #13
    Registered User
    Join Date
    03-04-2013
    Location
    usa
    MS-Off Ver
    Excel 2016
    Posts
    39

    Re: Having trouble converting fractions to decimals.

    Quote Originally Posted by vlady View Post
    in 2007 up

    maybe
    =iferror(("0 "&substitute(e2,char(34),""))+0,--trim(left(e2,search("""",e2)-1)))

    this worked!!!
    Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] vba code for converting vulgar fractions to decimals
    By wyldjokre69 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-25-2014, 07:08 AM
  2. Converting Fractions to Decimals in Excel
    By NoSaint55 in forum Excel General
    Replies: 1
    Last Post: 08-22-2014, 12:56 PM
  3. Converting fractions to decimals
    By Millertime31 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-24-2011, 04:56 PM
  4. [SOLVED] converting decimals to fractions
    By jason2444 in forum Excel General
    Replies: 5
    Last Post: 01-19-2006, 11:40 PM
  5. converting decimals to fractions
    By jason2444 in forum Excel General
    Replies: 1
    Last Post: 01-19-2006, 10:00 PM

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