An Excel conversion question
An Excel conversion question
(OP)
Does anybody know if it is possible to covert meters to feet-fractional inches in excel?
I could not find anything on this.
Thanks
I could not find anything on this.
Thanks
RE: An Excel conversion question
TTFN

FAQ731-376: Eng-Tips.com Forum Policies
Need help writing a question or understanding a reply? forum1529: Translation Assistance for Engineers
RE: An Excel conversion question
Over the past few months, I have posted a bunch of things to the PTC Mathcad boards, including a feet-inches-fractions calculator. Included in that particular post is an Excel spreadsheet to do F-I-F calculations. My spreadsheet does NOT include metric to F-I-F, but I think you should be able to use my spreadsheet as a way to shorten your task. You can find it here: http://communities.ptc.com/docs/DOC-5190
Fred
==========
"Is it the only lesson of history that mankind is unteachable?"
--Winston S. Churchill
RE: An Excel conversion question
Feet, in B1: =INT(CONVERT($A1,"m","ft"))
Inches, in C1, format as fraction: =((CONVERT($A1,"m","ft")-B1)*12)
The problems with this are that you probably won't like the numbers they choose for the fraction, and the value is now split over two cells, so you can't use it as a value in further calculations.
A UDF should be pretty easy, I'll have a look.
Also for a general purpose unit converter, have a look at: http://newtonexcelbach.wordpress.com/2012/08/28/un...
Doug Jenkins
Interactive Design Services
http://newtonexcelbach.wordpress.com/
RE: An Excel conversion question
=m2ftin(10) returns 34' 5.39"
=m2ftin(10, 16) returns 34' 5 6/16"
CODE --> VBA
Doug Jenkins
Interactive Design Services
http://newtonexcelbach.wordpress.com/
RE: An Excel conversion question
Also the second "ft = Int(inch1 / 12)" in the code is redundant.
Doug Jenkins
Interactive Design Services
http://newtonexcelbach.wordpress.com/
RE: An Excel conversion question
http://excel-formulas.blogspot.com.au/2009/07/disp...
If you have the dimension in feet in A2 then:
=INT(A2)&"' "&TEXT(12*(A2-INT(A2)),"# #/#")&CHAR(34)
will give feet and inches with fractions.
If you want to convert from m to feet and inches all in the one cell it would be (with metres in A1) :
=INT(CONVERT(A1,"m","ft"))&"' "&TEXT(12*(CONVERT(A1,"m","ft")-INT(CONVERT(A1,"m","ft"))),"# #/#")&CHAR(34)
If you have decimal inches as a value in a cell you can format it to display as eighths, sixteenths, etc, but I don't know how to do that in a text formula.
Doug Jenkins
Interactive Design Services
http://newtonexcelbach.wordpress.com/
RE: An Excel conversion question
Thank you very much for all the replies, incredibly helpful
RE: An Excel conversion question
=INT(A2)&"' "&TEXT(12*(A2-INT(A2)),"# #/16")&CHAR(34)
see:
http://newtonexcelbach.wordpress.com/2014/05/28/py...
for more details, and download of UDFs providing conversion in both directions, and unit conversion spreadsheet.
Doug Jenkins
Interactive Design Services
http://newtonexcelbach.wordpress.com/
RE: An Excel conversion question
https://newtonexcelbach.wordpress.com/2014/05/31/f...
Doug Jenkins
Interactive Design Services
http://newtonexcelbach.wordpress.com/