+ Reply to Thread
Results 1 to 15 of 15

Length conversion from cms to feet and inches

  1. #1
    Registered User
    Join Date
    11-05-2016
    Location
    London, ENgland
    MS-Off Ver
    Excel 2013
    Posts
    9

    Length conversion from cms to feet and inches

    Please can somebody provide me with an Excel function that will convert cms into feet and inches? For example, I am looking to take 167.64 cms and convert it into the result 5’ 6”. It is straight forward to convert 167.64 cms to feet by multiplying by 0.0328084 to arrive at 5.5000001’ and then to take the fraction 0.5000001 and convert it to 6”. However, I would like to post the resultant conversion of 167.64, which is 5’ 6” into the next door cell as shown below.

    Cell A1 Cell B1
    167.64 cms 5’ 6”

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Length conversion from cms to feet and inches

    Hey William,

    First you need to know there are 2.54 cm = 1 inch. if you use this and make a fraction out of it you can say that 2.54cm / 1 inch is equal to ONE!! Now this is important because anything times ONE is what you started with...... Ponder that awhile.....

    So you start with 167.65cm and it is really 167.65cm/1 (yes divided by 1 so it is a fraction). Then you multiply it by ONE so it looks like:

    1.67.65cm/1 TIMES 1 inch / 2.54 cm

    If you remember pre algebra you can cancel stuff on the top that is the same as on the bottom. YOU CROSS OUT the "cm" and you are left with 167.54/2.54 INCHES.

    This gives 66 inches. Then look at my workbook where you divide by 12 to get feet and do a Mod( , 12) to get inches.

    Convert cm to Feet and inches.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Length conversion from cms to feet and inches

    Hi
    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    where cm2feet is 0.032808399

    167,64 5' 6,0''

  4. #4
    Registered User
    Join Date
    11-05-2016
    Location
    London, ENgland
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: Length conversion from cms to feet and inches

    Thanks Marvin for the mathematical tuition. However, there remains a further conundrum, is it possible to do everything you have shown in a single function that displays the result of converting 167.64 cms from say cell A1 straight into cell B, next door, showing as 5' 6"?

    BTW, I see you're from Seattle, Washington and I wondered what you made of the bombshell result of Trump as your successor President.

    Best of British,
    Just William

  5. #5
    Registered User
    Join Date
    11-05-2016
    Location
    London, ENgland
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: Length conversion from cms to feet and inches

    Hi Jose,

    You're a genius. Many thanks to Portugal!

    Best of British,
    Just William

  6. #6
    Registered User
    Join Date
    11-05-2016
    Location
    London, ENgland
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: Length conversion from cms to feet and inches

    Hi again Marvin,

    Jose Augusto, posted the following solution, which works a treat!

    =INT(B4*J7) &"'" & TEXT(MOD(B4*J7,1)*12," 0''"), where B4 is my A1 (167.64 cms) and J7 is the conversion factor from cms to feet being 0.032808399.

    Thanks though for your prompt response.

    Bless you,
    William ;-)

  7. #7
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Length conversion from cms to feet and inches

    Of course, you could just use:
    =B4/2.54/12 or =B4/30.48
    there being 12 inches per foot and 2.54cm per inch, with a fraction format (# ??/12) for the output...
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  8. #8
    Registered User
    Join Date
    11-05-2016
    Location
    London, ENgland
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: Length conversion from cms to feet and inches

    Thanks Macropod,

    Your suggestion gives the answer to the conversion of 167.64 cms to feet and inches as 5.5, which is correct but I wanted to display that as 5' 6". As you may have noticed, Jose Augusto, posted the following solution, which works a treat!

    =INT(B4*J7) &"'" & TEXT(MOD(B4*J7,1)*12," 0''"), where B4 is my A1 (167.64 cms) and J7 is the conversion factor from cms to feet being 0.032808399.

    Thanks all the same for your suggestion.

    Best wishes,
    Just William ;-)

  9. #9
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Length conversion from cms to feet and inches

    The solution I posted would display 5 6/12, not just 5.5. More to the point, though, 0.032808399 is not an exact conversion factor from cm to ft.

  10. #10
    Registered User
    Join Date
    11-05-2016
    Location
    London, ENgland
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: Length conversion from cms to feet and inches

    Hi Macropod,

    I'm sorry but I don't see how either of your solutions produce 5 6/12ths. Whichever I deploy in my spreadsheet the result is always 5.5. However, as I previously explained, I would like to display the result in a single cell as precisely 5' 6". The function =INT(A1*cms2feet) &"'" & TEXT(MOD(A1*cms2feet ,1)*12," 0''"), where A1 is 167.64 cms and cms2feet is the conversion factor 0.032808399.

    I take your point about 0.032808399 not being an accurate conversion factor. I presume you would agree 3937/1200/100 giving 0.032808333 is more acceptable?

    Thanks again for your much appreciated assistance.

  11. #11
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Length conversion from cms to feet and inches

    Hi
    Define Name cm2feet as

    =1/30.48

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,421

    Re: Length conversion from cms to feet and inches

    How about this?

    =CONVERT(A1,"cm","ft")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  13. #13
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Length conversion from cms to feet and inches

    Quote Originally Posted by AliGW View Post
    How about this?

    =CONVERT(A1,"cm","ft")
    Hi @AliGW
    The problem is not accuracy or formula. Is format: not 5.5, not 5 6/12 but 5' 6''

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,421

    Re: Length conversion from cms to feet and inches

    OK - then this:

    =INT(CONVERT(A1,"cm","ft"))&"' "&ROUNDUP(MOD(CONVERT(A1,"cm","ft"),1)*12/10,1)*10&""""

  15. #15
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Length conversion from cms to feet and inches

    Quote Originally Posted by JustWilliam View Post
    I'm sorry but I don't see how either of your solutions produce 5 6/12ths. Whichever I deploy in my spreadsheet the result is always 5.5.
    That's only because you ignored:
    Quote Originally Posted by macropod View Post
    a fraction format (# ??/12) for the output
    Quote Originally Posted by JustWilliam View Post
    I take your point about 0.032808399 not being an accurate conversion factor. I presume you would agree 3937/1200/100 giving 0.032808333 is more acceptable?
    No. That's even less accurate and, in any event, I can't see why you'd choose one inaccurate constant over another when an exact one is readily available. There are precisely 25.4mm/in and 304.8mm/ft. Either of those (or the cm:ft equivalent) is the constant you should be using. If you're wedded to an output in the form of #' #", the formula could be:
    =INT(B4/J7) &"'" & TEXT(MOD(B4/J7,1)*12," 0''")
    where J7 contains 30.48

    FWIW, (to 32 decimal places) 1mm is 0.03937007874015748031496062992126in, or 0.00328083989501312335958005249344ft.

+ 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. 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
  2. [SOLVED] Convert feet, inches, fractions to inches and decimals
    By bjohnsonac in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-03-2021, 12:08 PM
  3. Convert feet and inches to decimal feet
    By hrg in forum Excel General
    Replies: 12
    Last Post: 04-11-2016, 05:19 PM
  4. Feet and Inches Conversion and Addition
    By eshman in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-22-2015, 03:48 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. Inches to Feet conversion
    By Beeler in forum Excel General
    Replies: 5
    Last Post: 04-24-2007, 12:39 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