Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Is it possible to display feet and inches in one cell ?

Microsoft Excell 2007 - I am trying to convert a number to feet and inches.
As far as I can tell it will only show feet or inches but not both such as
1ft 5in.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default Is it possible to display feet and inches in one cell ?

Hi, try
=MROUND(CONVERT(F11,"m","ft"),1/32)

"Tereena" wrote:

Microsoft Excell 2007 - I am trying to convert a number to feet and inches.
As far as I can tell it will only show feet or inches but not both such as
1ft 5in.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Is it possible to display feet and inches in one cell ?

There are several possible approaches
1) http://www.cpearson.com/excel/FeetInches.htm
2) http://archive.baarns.com/excel/faq/xd_dtyp1.asp#6
3) Type a value such as 4.5 in a cell and give the cell the format # ??/12
to display 4 6/12
4) With 4.5 in A1, in B1 use =INT(A1)&" ft "&MOD(A1,1)*10&" in" to see 4 ft
5 in. You will not be able to use B1 in any calculation
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Tereena" wrote in message
...
Microsoft Excell 2007 - I am trying to convert a number to feet and
inches.
As far as I can tell it will only show feet or inches but not both such as
1ft 5in.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Is it possible to display feet and inches in one cell ?

Make that: =INT(A4)&" ft "&TEXT(MOD(A4,1)*12,"#")&" in"
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Tereena" wrote in message
...
Microsoft Excell 2007 - I am trying to convert a number to feet and
inches.
As far as I can tell it will only show feet or inches but not both such as
1ft 5in.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Is it possible to display feet and inches in one cell ?

On Thu, 4 Dec 2008 08:50:35 -0800, Tereena
wrote:

Microsoft Excell 2007 - I am trying to convert a number to feet and inches.
As far as I can tell it will only show feet or inches but not both such as
1ft 5in.


Is this only for display purposes, or do you want to use the value in
subsequent formulas.

If only for display purposes, then, with rounding to the nearest 1/16th inch,
and with decimal inches in A1, try:

=IF(ABS(A1)=MROUND(ABS(A1),1/16),"","~")&IF(A1<0,"(","")&IF(
INT(ABS(A1/12))=1,INT(ABS(A1/12))&"' ","")&TRIM(TEXT(
MROUND(MOD(ABS(A1),12),1/16),"#-#/##\"""))&IF(A1<0,")","")

1. This requires the Analysis tool Pak to be installed, or the use of Excel
2007. If it is not installed (see Excel HELP for how to do that), then the
MROUND function calls should be replaced with:

ROUND(num*16,0)/16

so:

=IF(ABS(A1)=ROUND(ABS(A1)*16,0)/16,"","~")&IF(A1<0,"(","")&IF(
INT(ABS(A1/12))=1,INT(ABS(A1/12))&"' ","")&TRIM(TEXT(
ROUND(MOD(ABS(A1),12)*16,0)/16,"#-#/##\"""))&IF(A1<0,")","")

IF you want to round to some other factor, change the "16's" to whatever factor
you wish. (DON't change the 12's).

If you need to use the value in subsequent calculations, this approach will not
work. You will have to retain the original value someplace, and use the above
formula only for display.
--ron
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display feet inches and fraction Homer Excel Discussion (Misc queries) 12 March 3rd 21 04:18 PM
Convert inches & display as Feet Inches and Fractions -- BUG FREE Mark Main Excel Worksheet Functions 12 November 26th 08 08:50 PM
Converting from feet, inches and fractions to inches and decimal p Dee Setting up and Configuration of Excel 5 September 18th 07 04:18 PM
display feet and inches jkrager Excel Discussion (Misc queries) 2 April 21st 06 05:13 PM
Special format for feet - inches in a cell Bothell John Excel Discussion (Misc queries) 1 September 8th 05 12:28 AM


All times are GMT +1. The time now is 11:50 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"