Here I'm converting the value in A1 from meters to feet using 3.2808399 feet
per meter. The first part truncates the decimal protion and adds, "feet" and
the second part truncates the integer portion and convert it to inches and
adds "inches"
Assume the # of meters is in A1:
To get feet, put this in B1:
=INT(CONVERT(A1,"m","ft"))
To get inches, put this in C1:
=ROUND(MOD(CONVERT(A13,"m","ft"),1)*12,1)
Put it together:
=B1&" feet and "&C1&" inches"
--JP
=INT(CONVERT(A1,"m","ft")) & " feet, " &
TEXT(MOD(CONVERT(A1,"m","in"), 12), "0 ""inches""")
In article <90A44ED2-6313-4656...@microsoft.com>,
Isn't =TRUNC(A1/0.3048)&" feet "&ROUND(MOD(A1/0.3048,1)*12,0)&" inches" a
bit easier than
=ROUND(A1*3.2808399-0.5,0)&" feet
"&ROUND((A1*3.2808399-ROUND(A1*3.2808399-0.5,0))*12,0)&" inches" ?
--
David Biddulph
"sb1920alk" <no...@spambad.com> wrote in message
news:37CEE131-5FDA-4672...@microsoft.com...
"David Biddulph" <groups [at] biddulph.org.uk> wrote in message
news:JPydnXQjHsFhlNrV...@bt.com...
"David Biddulph" <groups [at] biddulph.org.uk> wrote in message
news:dPmdnRoxotA...@bt.com...
How often to you have a negative distance?
=TRUNC(A1/0.3048)&" feet "&ROUND(MOD(ABS(A1)/0.3048,1)*12,0)&" inches"
Rick
"David Biddulph" <groups [at] biddulph.org.uk> wrote in message
news:dPmdnRoxotA...@bt.com...
If a pole vault bar is raised to 3.2 meters it equals 10' 6" like your
formula produces. But if the bar is raised to 3.35 meters the formula
produces 10' 12" ... is there a way to have the formula produce 11' instead?
Thank you. :)
You want 3.2 meters, which converts to 10 feet 5.98 inches to return 10 feet 6
inches.
You also want 3.35 meters, which converts to 10 feet 11.89 inches to return 10
feet 11 inches.
Under "normal" rounding rules, you would want 3.35 meters to result in 11 feet 0
inches. If that is what you really want, try this:
=INT(ROUND(CONVERT(A1,"m","in"),0)/12)&" feet "&
MOD(ROUND(CONVERT(A1,"m","in"),0),12)&" inches"
I will leave someone else to simplify it as Rick did for my previous effort.
--
David Biddulph
"TheBlueShadow" <TheBlu...@discussions.microsoft.com> wrote in message
news:6A05ECD1-75B2-4650...@microsoft.com...
I would like 12.35 meters to come out as 40' 6.25"
I'd even like to have the ' and " instead of feet/inches. Is all that a
possibility?
Thanks for help.
Bill
>One problem that I have while doing this is that I'd like the results to be
>more precise.
>
>I would like 12.35 meters to come out as 40' 6.25"
>
>I'd even like to have the ' and " instead of feet/inches. Is all that a
>possibility?
>
>Thanks for help.
=INT(CONVERT(A1,"m","ft"))&"' " &
ROUND(MOD(CONVERT(A1,"m","in"),12)*4,0)/4 & """"
--ron
Not ideal, but a slightly different method might be the following.
If you can live with the leading zero on the inches...
40.' 06.22 ''
=TEXT(DOLLARFR(CONVERT(A1,"m", "ft"),12),"0.' 00\.00 ''")
or just use the formula, and make it a custom cell format.
= = = =
Dana DeLouis
On 2/15/2010 1:06 PM, matt wrote:
> One problem that I have while doing this is that I'd like the results to be
> more precise.
>
> I would like 12.35 meters to come out as 40' 6.25"
>
> I'd even like to have the ' and " instead of feet/inches. Is all that a
> possibility?
>
> Thanks for help.
>
> "sb1920alk" wrote:
>
>> =CONVERT(VALUE(SUBSTITUTE(A1," feet",""))+VALUE(SUBSTITUTE(B1,"
>> inches",""))/12,"ft","m")
>>
>> "Ann" wrote:
>>
>>> and if i was to reverse this formula? from feet and inches back to meters?
>>> if feet is in a1 and inches is in b1
>>> thanks guys
>>>
>>> "JE McGimpsey" wrote:
>>>
>>>> One way:
>>>>
>>>> =INT(CONVERT(A1,"m","ft"))& " feet, "&