ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   convert to feet and inches (https://www.excelbanter.com/excel-discussion-misc-queries/131098-convert-feet-inches.html)

sjl

convert to feet and inches
 
if i have a value such as 1.9878 and want to show it to the nearest feet and
inches how would i do it?



macropod

convert to feet and inches
 
Hi,

Depends on what you're trying to convert. Nautical miles, yards, metres, leagues?

I suspect metres, in which case you could use:
=INT(A1/0.3048)&"ft "&ROUND((A1/0.3048-INT(A1/0.3048))*12,0)&"in"

Cheers

--
macropod
[MVP - Microsoft Word]


"sjl" wrote in message ...
| if i have a value such as 1.9878 and want to show it to the nearest feet and
| inches how would i do it?
|
|



Bernard Liengme

convert to feet and inches
 
But if 1.9878 is in feet, then format the sell with custom format # ??/12 to
see 2
And 15.56 shows as 15 7/12


If 1.9878 is metres and is in A1 then =A1/0.038 with the same custom format
show 52 4/12

In all cases, the values are numeric and you can do math on them.

best wishes

--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"sjl" wrote in message
...
if i have a value such as 1.9878 and want to show it to the nearest feet
and
inches how would i do it?





daddylonglegs

convert to feet and inches
 
Hello macropod, in some circumstances, e.g. when A1 = 1.82 the result of your
suggested formula will be "5ft 12in". To always get "6ft 0in" try

=INT(ROUND(A1/0.0254,0)/12)&"ft "&MOD(ROUND(A1/0.0254,0),12)&"in"

"macropod" wrote:

Hi,

Depends on what you're trying to convert. Nautical miles, yards, metres, leagues?

I suspect metres, in which case you could use:
=INT(A1/0.3048)&"ft "&ROUND((A1/0.3048-INT(A1/0.3048))*12,0)&"in"

Cheers

--
macropod
[MVP - Microsoft Word]


"sjl" wrote in message ...
| if i have a value such as 1.9878 and want to show it to the nearest feet and
| inches how would i do it?
|
|





All times are GMT +1. The time now is 07:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com