+ Reply to Thread
Results 1 to 18 of 18

Feet and Inches

Hybrid View

  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,864
    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.
    ---

+ 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