+ Reply to Thread
Results 1 to 6 of 6

CONCATENATE with decimals, convert to fractions

Hybrid View

  1. #1
    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.

  2. #2
    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.

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

+ 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