+ Reply to Thread
Results 1 to 10 of 10

Feet & Inches Formula

Hybrid View

  1. #1
    Registered User
    Join Date
    06-21-2007
    Location
    East Texas
    Posts
    4

    Feet & Inches Formula

    I need some help figuring out a way to do this.

    I am making an excel spreadsheet that auto fills in a lot of items for a construction company. One of the most important ones is the Roof Pitch.

    1/12 pitch is 1 inch rise every 12 inches.
    2/12 pitch is 2 inch rise every 12 inches.

    I would like it to auto calculate this and add it to the over all height of the building.

    Example:

    A house is 20 feet wide with a 2/12 pitch.
    Since the Ridge is in the center we divide the Width in half.

    So a 2/12 pitch over a span of 10 feet is 20 inches

    any help i can get on this would be appreciated.

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Try this with your width in A1 (20) and your pitch in B1 (2), put this in C1

    =INT(CONVERT(ROUND((B1*A1/2)/12,2),"ft","ft"))&" feet " &INT( MOD(CONVERT(ROUND((B1*A1/2)/12,2),"ft","in"),12))& " inches"
    Result = 1 feet 8 inches
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    06-21-2007
    Location
    East Texas
    Posts
    4

    Thank you


    that was hard for me to explain, but you hit it dead on. i really appreciate it.

    great forums by the way. looking forward to being here for a while.

    Phrite

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Glad to hear it worked for you (hit the roof nail on the head)- thanks for the feedback

  5. #5
    Registered User
    Join Date
    06-21-2007
    Location
    East Texas
    Posts
    4

    well i thought it was working.

    its giving me an invalid name error.

    When i run the code evaluation the only thing that is showing up is the like the example below.

    =INT(CONVERT(ROUND((B1*A1/2)/12,2),"ft","ft"))&" feet " &INT( MOD(CONVERT(ROUND((B1*A1/2)/12,2),"ft","in"),12))& " inches"
    i set this up as per your example with width in A1 (20) and pitch in B1 (2),and i put this in C1.
    Last edited by Phrite; 06-21-2007 at 04:37 PM.

  6. #6
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Sorry I forgot to say with the CONVERT function you need to load the Analysis Tool Pak

    http://office.microsoft.com/en-gb/ex...277241033.aspx

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Does the above give the correct answer? If A1 is 20 and B1 is 4 shouldn't the answer be 40 inches or 3 feet 4 inches? Suggested formula gives me 3 feet 3 inches.

    If you want the answer in just inches, i.e. 40

    =A1*B1/2

    or if you want the answer as "3 feet 4 inches" try

    =INT(A1*B1/24)&" feet "&MOD(A1*B1/2,12)&" inches"

+ 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