+ Reply to Thread
Results 1 to 4 of 4

Feet in decimal form to feet/inches

  1. #1
    Registered User
    Join Date
    07-31-2013
    Location
    Troy, MI
    MS-Off Ver
    Excel 2003
    Posts
    24

    Feet in decimal form to feet/inches

    I need a formula to convert:

    3.759 to 3' 9"
    3.974 to 4'
    4.005 to 4'

    I have this currently:
    =INT(D9)&"' "&ROUND(TEXT((D9-INT(D9))*12,"#"),0)&CHAR(34)

    However, 3.974 returns 3' 12" and 4.005 returns a #VALUE error. I'm picky about the spaces. I'd like it formatted as I have it now.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Feet in decimal form to feet/inches

    =int(mround(a1,1/12))&"' "&mod(mround(a1,1/12),1)*12&char(34)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Feet in decimal form to feet/inches

    If having 0" is not acceptable, then
    =int(mround(a1,1/12))&"' "&IF(mod(mround(a1,1/12),1)=0,"",mod(mround(a1,1/12),1)*12&char(34))

  4. #4
    Registered User
    Join Date
    07-31-2013
    Location
    Troy, MI
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Feet in decimal form to feet/inches

    That works great. Thanks for the quick reply!

+ 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] Convert feet/inches to decimal
    By dingy101 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 03-23-2017, 12:40 PM
  2. Convert feet and inches to decimal feet
    By hrg in forum Excel General
    Replies: 12
    Last Post: 04-11-2016, 05:19 PM
  3. Convert Decimal Feet to Feet and Inches
    By Surveyour in forum Excel General
    Replies: 6
    Last Post: 10-17-2013, 12:48 PM
  4. Convert feet and inches to deimal feet.
    By okenter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-28-2011, 02:43 AM
  5. How do i convert feet and inches to a decimal value?
    By go_chrisg in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-22-2005, 12:06 PM

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