Help with an Excel formula ... convert feet and inches into decimals

Discussion in 'Miscellaneous' started by DarthTom, Sep 30, 2010.

  1. DarthTom

    DarthTom Fleet Admiral Admiral

    Joined:
    Apr 19, 2005
    Location:
    Atlanta, Georgia
    I dunno where to stick this question so I'm putting it here. Does anyone have any idea how to write an excel formula that converts feet and inches into decimals in MS Excel?

    Thanks in advance for your help.
     
  2. FPAlpha

    FPAlpha Vice Admiral Premium Member

    Joined:
    Nov 7, 2004
    Location:
    Mannheim, Germany
  3. Robert Maxwell

    Robert Maxwell memelord Premium Member

    Joined:
    Jun 12, 2001
    Location:
    space
  4. DarthTom

    DarthTom Fleet Admiral Admiral

    Joined:
    Apr 19, 2005
    Location:
    Atlanta, Georgia
    Re: Help with an Excel formula ... convert feet and inches into decima

    I appreciate it but for me that's as cryptic as a stereo manual.

    I was hoping that someone would help write it for me. So for example in column A I had 10' 10" it would convert that measurement in column B as a decimal.
     
  5. DarthTom

    DarthTom Fleet Admiral Admiral

    Joined:
    Apr 19, 2005
    Location:
    Atlanta, Georgia
    Re: Help with an Excel formula ... convert feet and inches into decima

    :techman: I could kiss you man .. that works perfectly.

    Thank you so very much!
     
  6. SmoothieX

    SmoothieX Vice Admiral Admiral

    Joined:
    Jul 12, 2004
    Location:
    Massachusetts
    Re: Help with an Excel formula ... convert feet and inches into decima

    Say column A is number of feet, and B is number of inches.

    If you want decimal in columns C, try this:

    =A1+(B1/12)
     
  7. Robert Maxwell

    Robert Maxwell memelord Premium Member

    Joined:
    Jun 12, 2001
    Location:
    space
    Re: Help with an Excel formula ... convert feet and inches into decima

    I would have suggested that but I was going from the assumption he had a column formatted like this:

    5'10"

    If it was two separate columns the solution is both obvious and simple.
     
  8. Canadave

    Canadave Vice Admiral Admiral

    Joined:
    Dec 29, 2002
    Location:
    Saint Catharines, ON
    Re: Help with an Excel formula ... convert feet and inches into decima

    And people wonder why the rest of the world prefers the metric system. :p
     
  9. DarthTom

    DarthTom Fleet Admiral Admiral

    Joined:
    Apr 19, 2005
    Location:
    Atlanta, Georgia
    Re: Help with an Excel formula ... convert feet and inches into decima

    Spoke too soon Robert Maxwell ... formula doesn't work for just inches e.g. 2" - gives #value return and doesn't work for fractions e.g. 2 3/4" but thanks so much nonetheless for trying.
     
  10. Robert Maxwell

    Robert Maxwell memelord Premium Member

    Joined:
    Jun 12, 2001
    Location:
    space
    Re: Help with an Excel formula ... convert feet and inches into decima

    Here we see the value in having well-defined requirements. ;)

    You said you've got "feet and inches," not "some that only have inches" and "some with fractional inches."
     
  11. DarthTom

    DarthTom Fleet Admiral Admiral

    Joined:
    Apr 19, 2005
    Location:
    Atlanta, Georgia
    Re: Help with an Excel formula ... convert feet and inches into decima

    Thanks anyways man. I guess I could spend the $50 and call MS help.
     
  12. SmoothieX

    SmoothieX Vice Admiral Admiral

    Joined:
    Jul 12, 2004
    Location:
    Massachusetts
    Re: Help with an Excel formula ... convert feet and inches into decima

    I honestly do wonder that sometimes.
     
  13. Robert Maxwell

    Robert Maxwell memelord Premium Member

    Joined:
    Jun 12, 2001
    Location:
    space
    Re: Help with an Excel formula ... convert feet and inches into decima

    Or ask around the office and see if anyone knows Excel stuff really well.
     
  14. DarthTom

    DarthTom Fleet Admiral Admiral

    Joined:
    Apr 19, 2005
    Location:
    Atlanta, Georgia
    Re: Help with an Excel formula ... convert feet and inches into decima

    Our on site IT person has no idea. LOL But good suggestion.
     
  15. Holdfast

    Holdfast Fleet Admiral Admiral

    Joined:
    Feb 19, 2000
    Location:
    17 Cherry Tree Lane
    Re: Help with an Excel formula ... convert feet and inches into decima

    This is insanely complicated to do. But it can be done.

    This site has a way of doing it:

    http://www.lacher.com/examples/lacher18.htm - download the sample spreadsheet, which includes a visual basic module which you can copy into your own spreadsheet. I've tested it myself and it works, but as with anything like this, download and run only if you trust it enough.
     
  16. DarthTom

    DarthTom Fleet Admiral Admiral

    Joined:
    Apr 19, 2005
    Location:
    Atlanta, Georgia
    Re: Help with an Excel formula ... convert feet and inches into decima

    I wasn't able to follow the instructions to copy. If I give you my personal e-mail address privately would you send the sample spread sheet to me please? I appreciate it.
     
  17. Holdfast

    Holdfast Fleet Admiral Admiral

    Joined:
    Feb 19, 2000
    Location:
    17 Cherry Tree Lane
    Re: Help with an Excel formula ... convert feet and inches into decima

    The sample spreadsheet is at: http://www.lacher.com/files2000/lacher18.xls

    When you download it, enable the macros embedded in it when Excel prompts you to. Also, open up the spreadsheet you're working on.

    Then open up the Visual Basic Editor (ALT+F11 is the keyboard shortcut). Then open the Project Explorer (Ctrl-R). Expand the Modules section and drag Module 1 from the lacher spreadsheet into your spreadsheet.

    Now go into the spreadsheet you're working on. You'll find the function CInches now appears in the User Defined Functions (Formulas>Insert Function>User Defined>CInches). Use that function in your output cell, with the input data being the raw measurement (5'5", 1", 3' 3 1/2", whatever). The output cell will be the number in decimalised inches. You can convert to metres or whatever else you like easily from there.

    Hope that explains it OK; it's a bit tricky to do in text. Demonstrating would be easier, but impossible without my learning how to record a video of what I'm doing on screen! :)

    Don't thank me; thank Lacher or whoever first wrote that script! :D
     
  18. Bisz

    Bisz Rear Admiral Rear Admiral

    Joined:
    Dec 20, 1999
    Location:
    Ontario, Canada
    Re: Help with an Excel formula ... convert feet and inches into decima

    Does anyone really wonder about that?