+ Reply to Thread
Results 1 to 6 of 6

HELP! Convert decimal value to display feet & inches

  1. #1
    Registered User
    Join Date
    01-31-2014
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    2

    HELP! Convert decimal value to display feet & inches

    I have 2 columns of values (M6:M2308) & (O6:O208) that I enter as decimal values of feet & inches (10.89583 = 10'-10 3/4"). I want to be able to enter them as decimal values but display them as feet-inches-fraction & keep the decimal values for simple square footage formula that I have a few cells over on each row. I cannot figure out how to do this & have searched the web, but found no easily understood examples of how to do so. VBA is an acceptable solution but I don't know how to write anything that will do what I want. TIA!

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,405

    Re: HELP! Convert decimal value to display feet & inches

    I think the only way to do this is to have two cells/columns. One column where you can enter your decimal feet numbers, and a helper column that converts the decimal feet number into the desired text string. Something like

    1) INT(value) function to get the integer feet part of the number/text string)
    2) CONVERT(MOD(value,1),"ft","in") to get the decimal inches portion of the value.
    3) TEXT(CONVERT(...),"## ##/##") to display the decimal inches as a mixed number fraction.
    4) Concatenate those together with appropriate spaces and such. =INT(...)&"'-"&TEXT(...)&CHAR(34)

    Because you want to be able to use the original decimal feet number in other calculations, you will want to keep the number value separate from the text representation.

    Would such a helper cell/column be an acceptable solution?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    01-31-2014
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    2

    Re: HELP! Convert decimal value to display feet & inches

    i was hoping for a one column solution but I may have to go that route.

    LKW

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,405

    Re: HELP! Convert decimal value to display feet & inches

    I can think of no way using number formatting that will display a decimal feet number as "feet -- inches -- fraction of an inch." When I first started using spreadsheets, this help file was one of my most frequently referred to as I learned the different number format codes: https://support.microsoft.com/en-us/...7-9c9354dd99f5

    You might review that help file and see if there is a number format code that I have overlooked. Unless we can find number formatting to do the job, I see no way to do this without some kind of helper column.

  5. #5
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: HELP! Convert decimal value to display feet & inches


    Quote Originally Posted by LDUB View Post
    i was hoping for a one column solution
    Can be achieved under a VBA event procedure only if the text result is not used in any calculation …

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: HELP! Convert decimal value to display feet & inches

    Here is an example of a solution that is very similar to Fluff's proposal:

    Please enter the number in B2 and try in C2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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 and Inches (Fractions) to Decimal Feet (example 1'-1.15/16")
    By PipeSmokeMcGee in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-04-2022, 10:57 AM
  2. Convert Feet and Inches (Fractions) to Decimal Feet
    By kellser in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-29-2022, 10:15 AM
  3. Convert feet/inches to decimal
    By dingy101 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 03-23-2017, 12:40 PM
  4. Convert feet and inches to decimal feet
    By hrg in forum Excel General
    Replies: 12
    Last Post: 04-11-2016, 05:19 PM
  5. Convert Feet and inches to decimal feet
    By Laserdude in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-05-2014, 12:10 AM
  6. Convert Decimal Feet to Feet and Inches
    By Surveyour in forum Excel General
    Replies: 6
    Last Post: 10-17-2013, 12:48 PM
  7. 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

Tags for this Thread

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