+ Reply to Thread
Results 1 to 7 of 7

Formula to convert height from feet to inches

  1. #1
    Registered User
    Join Date
    10-24-2012
    Location
    NYC
    MS-Off Ver
    Excel 2003
    Posts
    3

    Question Formula to convert height from feet to inches

    I've been trying to do this conversion by using the following expression:
    Expr1: (Left([Height],InStr([Height]," ' ")-1)*12+(Right([Height],Len([Height])-InStr([Height],"'"))))
    But it gives me an error message.
    I need to develop an expression to calculate BMI, any suggestions?
    Thanks

  2. #2
    Forum Contributor
    Join Date
    09-13-2012
    Location
    Atlanta, USA
    MS-Off Ver
    Office 2003, 2010
    Posts
    230

    Re: Formula to convert height from feet to inches

    Could you give us some indication about what your data looks like, how it is formatted, or what the expression to calculate BMI is outside of excel?

    If you could upload a sample sheet that would allow us to help you more.

  3. #3
    Registered User
    Join Date
    10-24-2012
    Location
    NYC
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Formula to convert height from feet to inches

    The data is collected by entering the height in feet and inches (5' 5") and the formula to calculate
    BMI = ( Weight in Pounds / ( Height in inches x Height in inches ) ) x 703
    I'm trying to build this expression in Access.

    I've used the following expression in Excel to do the conversion (F2 the cell where the height is located)

    =LEFT(F2,FIND("'",F2)-1)*12+((MID(F2,FIND("'",F2)+1,LEN(F2)-FIND("'",F2)-1)))

  4. #4
    Forum Contributor
    Join Date
    09-13-2012
    Location
    Atlanta, USA
    MS-Off Ver
    Office 2003, 2010
    Posts
    230

    Re: Formula to convert height from feet to inches

    Are you building this form from scratch, or has this data already been collected?

    Edit*

    Also, are you using access 2010/2007 or an earlier version?
    Last edited by jake.masters; 11-01-2012 at 02:00 PM.

  5. #5
    Registered User
    Join Date
    10-24-2012
    Location
    NYC
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Formula to convert height from feet to inches

    The height and weight data are already collected in the database. I'm using a query to build that expression to create a report

  6. #6
    Forum Contributor
    Join Date
    09-13-2012
    Location
    Atlanta, USA
    MS-Off Ver
    Office 2003, 2010
    Posts
    230

    Re: Formula to convert height from feet to inches

    I am not as familiar with the expression builder in Access as I am in Excel, and I do not want to steer you in the wrong direction. You may get more help if you reposted this in the Access Help forum. There is a guy in there named Alan who is great with Access, and he is usually online replying to people.

    If you go to the main page, it is past the first box of threads. Sorry I could not be more help.

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,950

    Re: Formula to convert height from feet to inches

    Look at the attached and advise if this is what you are looking for.
    Alan
    Attached Files Attached Files
    Last edited by alansidman; 11-01-2012 at 03:21 PM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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