+ Reply to Thread
Results 1 to 6 of 6

Issues converting NUMBER Fractions to TEXT Fractions NOT Decimals

  1. #1
    Registered User
    Join Date
    03-12-2019
    Location
    Japan
    MS-Off Ver
    Excel 2011
    Posts
    2

    Issues converting NUMBER Fractions to TEXT Fractions NOT Decimals

    Hi All,

    I am having trouble with some fractions data.

    I have data in two columns formatted in the following way: Fraction (xx/xx) (eg. 114 1/2) and Text (e.g. Part Name XYZ)

    I intend to use this data with the formula: [=A1&" "&B1] to display the contents of both Column A data and Column B data COMBINED into new Column C

    --> I have also tried using formula [=CONCATENATE(A1," ",B1)] but this did not fix my problem at all

    When I call the cells with the Fraction (xx/xx) data, Excel automatically converts the fraction to a decimal in the output. I am aware that this is because the "real" data of the Fraction cells is actually a decimal on the backend and the fraction I see is only for display.

    So I assume what I need to do is first convert the FRACTION data to TEXT and then call that TEXT into my formula to have the Fraction display visually the same as the original cells containing the fractions xx/xx. However when I convert the Fraction (xx/xx) cells to Text cells, the data becomes the decimal not the text xx/xx! ARGH!


    I basically want something like this to happen:

    Cells in Column A contain data formatted as Fractions
    Cells in Column B contain data formatted as Text
    Cells in Column C contain the results of a formula to combine A and B data, displayed *exactly as they appear in the original cells*

    For Example:
    Column A Column B Column C
    114 5/8 DH Corner Post 114 5/8" DH Corner Post



    Can anyone suggest how I can either

    1) Combine the cell's data with the fraction data *displaying as a fraction*

    OR

    2) Convert the Fraction data to Text data that displays the text as fractions NOT the decimal equivalents

    I have a LOT of this data that needs to be combined and displayed exactly as it originally appeared, so I have to figure out how to achieve this without needing to manually re-type every single fraction as text by hand! Please help!!
    Last edited by mitsukai; 03-13-2019 at 02:06 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Issues converting NUMBER Fractions to TEXT Fractions NOT Decimals

    See if this thread will help?
    https://www.excelforum.com/excel-for...fractions.html
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Issues converting NUMBER Fractions to TEXT Fractions NOT Decimals

    Or =TEXT(A1,#" "??/8) ( the denominator has to be added manually)

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Issues converting NUMBER Fractions to TEXT Fractions NOT Decimals

    Quote Originally Posted by arthurbr View Post
    Or =TEXT(A1,#" "??/8) ( the denominator has to be added manually)
    Not necessarily...
    G
    H
    I
    3
    1/6
    aa aa 7/40
    4
    1/2
    aa aa 1/2

    I3=H3&" "&TEXT(G3,"#/##")
    copied down

  5. #5
    Registered User
    Join Date
    03-12-2019
    Location
    Japan
    MS-Off Ver
    Excel 2011
    Posts
    2

    Re: Issues converting NUMBER Fractions to TEXT Fractions NOT Decimals

    Thanks so much FDibbins, the method in that thread worked perfectly.

    I had actually tried something similar myself but had the syntax wrong. I used "# ??/??" as it is in the excel custom formatting list, not "# ##/##". So close, but so far!

    Thankyou for your quick help, and thanks to everyone else as well for your replies!

    Also, for anyone that happens to come upon this thread when searching for solutions to similar issues, here's the formula (based on my original example data above) formatted as per FDibbins' suggestion, that gave the desired output:

    =TEXT(A1,"# ##/##")&" "&B1

    Which would return: 114 5/8 DH Corner Post


    ...and for what it's worth to help someone if their needs are similar to mine, what I *actually* wanted as real output was this:

    =TEXT(A1,"# ##/##")&""" "&B1

    Which returns a result looking like this: 114 5/8" DH Corner Post

    (because for my purposes the fractions are inches measurements, so with the above I appended an extra " text to the fraction as well)

    Cheers everyone!

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Issues converting NUMBER Fractions to TEXT Fractions NOT Decimals

    Happy to help and thanks for the feedback

+ 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] Having trouble converting fractions to decimals.
    By i.r.smith in forum Excel General
    Replies: 12
    Last Post: 01-22-2015, 08:34 AM
  2. [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
  3. Converting Fractions to Decimals in Excel
    By NoSaint55 in forum Excel General
    Replies: 1
    Last Post: 08-22-2014, 12:56 PM
  4. Converting fractions to decimals
    By Millertime31 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-24-2011, 04:56 PM
  5. converting decimals to fractions
    By jason2444 in forum Excel General
    Replies: 5
    Last Post: 01-19-2006, 11:40 PM
  6. converting decimals to fractions
    By jason2444 in forum Excel General
    Replies: 1
    Last Post: 01-19-2006, 10:00 PM
  7. Converting Decimal Fractions to Fractions of a Specified Number
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-29-2005, 11:09 AM

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