change decimal to feet and inches
On Fri, 22 Feb 2008 10:21:02 -0800, Eyde
wrote:
I need to know how to convert decimal numbers that could at eny given time be
zero decimal places up to three decimal places (ie 5, 3.5, 5.33, 12.713) to
feet and inches (ie 5'-0", 3'-6", 5'-4", 12'-8 1/2") this excel formula is
going to be linked with an AutoCad table can any one help me with this?
What kind of input does the AutoCad table require -- if it is in the same
format as you show, then:
=INT(A1)&"'--"&IF(INT(ROUND(MOD(A1,1)*12*4,0)/4)=
ROUND(MOD(A1,1)*12*4,0)/4,TEXT(ROUND(MOD(A1,1)*
12*4,0)/4,"#0\"""),TEXT(ROUND(MOD(A1,1)*12*4,0)/4,"# ?/?\"""))
will give you a result in the same format with the fractional inches rounded to
the nearest 1/4.
If you need a different rounding parameter, for instance, to the nearest 1/8 or
1/16, then change the all the 4's in the above to 8 or 16.
If you change to 16ths or smaller, be sure to change the ?/? to ?/?? also
--ron
|