+ Reply to Thread
Results 1 to 18 of 18

Feet and Inches

  1. #1
    Registered User
    Join Date
    04-04-2004
    Posts
    42

    Feet and Inches

    Hi,
    I need to convert inches to feet and inches in this format:
    88 1/2 = 7' 4-1/2"
    ...so that if 88 1/2 is in cell A1, cell B1 will show 7' 4-1/2".
    The exact syntax of B1 must be as shown.
    Thanks

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    I couldnt get the syntax to match your request exactly. Hopefully, someone else can expound.

    If your inches are in A1, enter this formula into B!:

    =INT(A1/12)&"' "&MOD(A1,12)&""""

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719
    Possibly amend BigBas' suggestion to

    =INT(A1/12)&"' "&TEXT(MOD(A1,12),"0 #/#")&""""

  4. #4
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    Thx, daddy. I assumed someone would fix it using custom number formatting (which I am still not to great at).

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    ..and just a very minor revision to daddylongleg's formula to match exactly the original request...

    =INT(A1/12)&"' "&TEXT(MOD(A1,12),"0-#/#")&""""
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  6. #6
    Registered User
    Join Date
    04-04-2004
    Posts
    42

    Thanks

    O.K.
    ...Works Great!!! Thanks so much- what a neat group.
    Ya'll (<I'm from Arkansas) saved the day.

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

    Crazy?

    This may sound crazy but I have the exact *opposite* problem...I have a measurement typed in text (for example 6-3 for 6 foot three inches) and need something that takes this text string and converts it to a number in inches (in this case 75 inches). Any help?

  8. #8
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by rberger909
    This may sound crazy but I have the exact *opposite* problem...I have a measurement typed in text (for example 6-3 for 6 foot three inches) and need something that takes this text string and converts it to a number in inches (in this case 75 inches). Any help?
    Hi,

    =1*(LEFT(A1,FIND("-",A1)-1)*12+MID(A1,FIND("-",A1)+1,2))

    will do that, the 1* I added solely because my A1 was 'Text' format and I didn't want the answer as text.

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

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

    =1*(LEFT(A1,FIND("-",A1)-1)*12+MID(A1,FIND("-",A1)+1,2))

    will do that, the 1* I added solely because my A1 was 'Text' format and I didn't want the answer as text.

    hth
    ---
    EXCELLENT! Thanks so much!

  10. #10
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by rberger909
    EXCELLENT! Thanks so much!
    np - always glad to help.
    ---

  11. #11
    Registered User
    Join Date
    05-10-2005
    Posts
    9
    I'm back again with another small (I hope) question/alternation needed to the formula above...what if i had a half inch in the measurement? For example 6-3 1/2...it would be written exactly like this (6-3 1/2) with the space and the fraction written like this (1/2) I need the forumla to kick out an answer of 75.5...thanks for any help at all!

  12. #12
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by rberger909
    I'm back again with another small (I hope) question/alternation needed to the formula above...what if i had a half inch in the measurement? For example 6-3 1/2...it would be written exactly like this (6-3 1/2) with the space and the fraction written like this (1/2) I need the forumla to kick out an answer of 75.5...thanks for any help at all!
    Hi,

    =(1*(LEFT(A1,FIND("-",A1)-1)*12+MID(A1,FIND("-",A1)+1,2)))+IF(LEN(A1)=LEN(SUBSTITUTE(A1,"1/2","")),0,0.5)


    looks dodgy but will do (only) 1/2 additions.

    note, you could also add 1/4 and 3/4 this way, but other fractions would need more care.

    hth
    ---
    Last edited by Bryan Hessey; 04-23-2007 at 07:00 PM.

  13. #13
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    Quote Originally Posted by Bryan Hessey
    Hi,

    =(1*(LEFT(A1,FIND("-",A1)-1)*12+MID(A1,FIND("-",A1)+1,2)))+IF(LEN(A1)=LEN(SUBSTITUTE(A1,"1/2","")),0,0.5)


    looks dodgy but will do (only) 1/2 additions.

    note, you could also add 1/4 and 3/4 this way, but other fractions would need more care.

    hth
    ---
    Couldn't you close that statment with a

    +IF(RIGHT(A1,2)="/",1*RIGHT(A1,2),0)

    I didnt try it out, but it should work, no?

  14. #14
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    Good point. I almost forgot those existed. =)

  15. #15
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719
    You can just tweak Bryan's original to....

    =LEFT(A1,FIND("-",A1)-1)*12+MID(A1,FIND("-",A1)+1,255)

  16. #16
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by BigBas
    Good point. I almost forgot those existed. =)
    oops,

    you can't say right(a1,2) you need left(right(a1,2),1) = "/"

    ---

  17. #17
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by daddylonglegs
    You can just tweak Bryan's original to....

    =LEFT(A1,FIND("-",A1)-1)*12+MID(A1,FIND("-",A1)+1,255)
    I was trying to see how 1,255 converted fractions to decimal,

    . . . . talk about not seeing the wood for the trees . . .

    ---

  18. #18
    Forum Contributor
    Join Date
    12-12-2006
    Location
    New Zealand
    Posts
    151
    =LEFT(A1,FIND("-",A1)-1)*12 + RIGHT(A1,(LEN(A1)-FIND("-",A1)))

    If You are getting help elsewhere please provide a link. We have been working on the same problem at ozgrid.

    See Here

+ 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