+ Reply to Thread
Results 1 to 6 of 6

CONCATENATE with decimals, convert to fractions

  1. #1
    Registered User
    Join Date
    05-10-2005
    Posts
    9

    Question CONCATENATE with decimals, convert to fractions

    Ok I am using CONCATENATE in the following way "=CONCATENATE(AB96,"-",AD96)"

    cell AB96 is a measurement in feet and AD96 is a measurement in inches...therefore if AB96 was 8 and AD96 was 1 1/2 the CONCATENATE cell reads 8-1.5

    However I want the CONCATENATE cell to read 8-1 1/2, not 8-1.5...changing the format of the cell to fraction doesn't help either...any help?

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by rberger909
    Ok I am using CONCATENATE in the following way "=CONCATENATE(AB96,"-",AD96)"

    cell AB96 is a measurement in feet and AD96 is a measurement in inches...therefore if AB96 was 8 and AD96 was 1 1/2 the CONCATENATE cell reads 8-1.5

    However I want the CONCATENATE cell to read 8-1 1/2, not 8-1.5...changing the format of the cell to fraction doesn't help either...any help?
    Try again,

    something like

    =A1&"' "&INT(B1)&" "&IF(MOD(B1,1)=0,"",TEXT(INT(MOD(B1,1)*12)/12,"?/??"))&""""

    hth
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Registered User
    Join Date
    05-10-2005
    Posts
    9
    Quote Originally Posted by Bryan Hessey
    Try again,

    something like

    =A1&"' "&INT(B1)&" "&IF(MOD(B1,1)=0,"",TEXT(INT(MOD(B1,1)*12)/12,"?/??"))&""""

    hth
    ---

    Hmmm good point, I hadn't that of this despite the fact I have another cell which is, in essence, IDENTICAL to what you have here...doh!! Sometimes I really am amazed by my OWN stupidity...thanks!

  4. #4
    Registered User
    Join Date
    05-10-2005
    Posts
    9

    Red face

    Quote Originally Posted by Bryan Hessey
    Try again,

    something like

    =A1&"' "&INT(B1)&" "&IF(MOD(B1,1)=0,"",TEXT(INT(MOD(B1,1)*12)/12,"?/??"))&""""

    hth
    ---
    One more question...the formula works great BTW...right now the formula spits out something like 4' 10 1/2"...how do i get a dividing dash between the feet and inches...meaning how do I make 4' 10 1/2" appear as 4'-10 1/2"...small I know but driving me nuts.

    Oh and my code was actually a roundup/rounddwon mix, not what you had...nonetheless simular idea I guess. Thanks again!


    *EDIT* - Disregard I found it...thanks!!
    Last edited by rberger909; 12-05-2006 at 12:48 PM.

  5. #5
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by rberger909
    One more question...the formula works great BTW...right now the formula spits out something like 4' 10 1/2"...how do i get a dividing dash between the feet and inches...meaning how do I make 4' 10 1/2" appear as 4'-10 1/2"...small I know but driving me nuts.

    Oh and my code was actually a roundup/rounddwon mix, not what you had...nonetheless simular idea I guess. Thanks again!


    *EDIT* - Disregard I found it...thanks!!
    Hi,

    the - was after the ' for the feet indicator, as you apparently found.

    the question asked related to "the following way "=CONCATENATE(AB96,"-",AD96)" cell AB96 is a measurement in feet and AD96 is a measurement in inches" and did not seem to mention "a roundup/rounddwon mix" but as it needed to be twelths the formula given appeared to work, however you can add rounding (up/down/ceiling) as required.

    Good to see it worked for you, and thanks for the response.

    ---

  6. #6
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211
    Quote Originally Posted by rberger909
    Ok I am using CONCATENATE in the following way "=CONCATENATE(AB96,"-",AD96)"

    cell AB96 is a measurement in feet and AD96 is a measurement in inches...therefore if AB96 was 8 and AD96 was 1 1/2 the CONCATENATE cell reads 8-1.5

    However I want the CONCATENATE cell to read 8-1 1/2, not 8-1.5...changing the format of the cell to fraction doesn't help either...any help?

    You can either preformat Cell AD96 as text, or precede with an astrophe

+ 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