I have a cell containing a measurement in meters, and I need to display this in feet and inches. I came up with this formula, which seems awfully convoluted to me. Is there an easier way to do this? (Height in meters is in $K$2)
=((100*$K$2/2.54)-MOD((100*$K$2/2.54),12))/12&" ft "&ROUND(MOD((100*$K$2/2.54),12),1)&" in"
Display measurement in feet and inches
-
- Administrator
- Posts: 12633
- Joined: 16 Jan 2010, 15:49
- Location: London, Europe
-
- gamma jay
- Posts: 25455
- Joined: 17 Mar 2010, 17:33
- Location: Cape Town
Re: Display measurement in feet and inches
Not much of a lenth improvement, but the CONVERT() function makes it easier to read...
=INT(CONVERT($K$2,"m","in")/12)&" ft "&ROUND(MOD(CONVERT($K$2,"m","in"),12),1)&" in"
=INT(CONVERT($K$2,"m","in")/12)&" ft "&ROUND(MOD(CONVERT($K$2,"m","in"),12),1)&" in"
Regards,
Rudi
If your absence does not affect them, your presence didn't matter.
Rudi
If your absence does not affect them, your presence didn't matter.
-
- Administrator
- Posts: 78674
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Display measurement in feet and inches
A variation on Rudi's formula, converting to feet for the first part:
=INT(CONVERT($K$2,"m","ft"))&" ft "&ROUND(MOD(CONVERT($K$2,"m","in"),12),1)&" in"
=INT(CONVERT($K$2,"m","ft"))&" ft "&ROUND(MOD(CONVERT($K$2,"m","in"),12),1)&" in"
Best wishes,
Hans
Hans
-
- gamma jay
- Posts: 25455
- Joined: 17 Mar 2010, 17:33
- Location: Cape Town
Re: Display measurement in feet and inches
What a dumbo oversight was that?!
TX.
TX.
Regards,
Rudi
If your absence does not affect them, your presence didn't matter.
Rudi
If your absence does not affect them, your presence didn't matter.
-
- Administrator
- Posts: 78674
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Display measurement in feet and inches
Not dumbo at all - your formula works fine too!
Best wishes,
Hans
Hans
-
- Administrator
- Posts: 12633
- Joined: 16 Jan 2010, 15:49
- Location: London, Europe
Re: Display measurement in feet and inches
Now I've learned about Convert, I never knew that existed. Thank you both.
StuartR