Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default display number as feet and inch in single cell

How can I display a number as feet and inch in single cell, ie. 8.5 to
display 8'-6"
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 222
Default display number as feet and inch in single cell

You could do it with a user defined function e.g.

Function d_to_fi(numberarg As Double)
feet = Int(numberarg)
inches = Format((numberarg - Int(numberarg)) * 12, "#0")
d_to_fi = feet & " ' - " & inches & """"
End Function



"covdbrdg" wrote:

How can I display a number as feet and inch in single cell, ie. 8.5 to
display 8'-6"

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 427
Default display number as feet and inch in single cell

It can be done with a formula:
=INT(A1)&CHAR(39)&"-"&MOD(A1,INT(A1))*12&CHAR(34)
....but I don't know if there is a way to create a custom format to do
it.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 222
Default display number as feet and inch in single cell

Or you could use a formula:-

=(TEXT(INT(A1),"0")&"' "&TEXT((A1-INT(A1))*12,"0")&"""")

"covdbrdg" wrote:

How can I display a number as feet and inch in single cell, ie. 8.5 to
display 8'-6"

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default display number as feet and inch in single cell

Thanks, but, How do I create a user defined function?


"bigwheel" wrote:

You could do it with a user defined function e.g.

Function d_to_fi(numberarg As Double)
feet = Int(numberarg)
inches = Format((numberarg - Int(numberarg)) * 12, "#0")
d_to_fi = feet & " ' - " & inches & """"
End Function



"covdbrdg" wrote:

How can I display a number as feet and inch in single cell, ie. 8.5 to
display 8'-6"



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default display number as feet and inch in single cell

I GOT IT FROM ANOTHER POST... I need to be able to do this in a singlt cell,
like formatting.

"covdbrdg" wrote:

Thanks, but, How do I create a user defined function?


"bigwheel" wrote:

You could do it with a user defined function e.g.

Function d_to_fi(numberarg As Double)
feet = Int(numberarg)
inches = Format((numberarg - Int(numberarg)) * 12, "#0")
d_to_fi = feet & " ' - " & inches & """"
End Function



"covdbrdg" wrote:

How can I display a number as feet and inch in single cell, ie. 8.5 to
display 8'-6"

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
formula to convert decimal feet to feet inch sixteenths tv Excel Discussion (Misc queries) 24 May 3rd 23 11:41 AM
Suggestion for new cell formats for Feet and Inch Joe Dunfee Excel Discussion (Misc queries) 2 November 20th 07 02:22 AM
display feet and inches jkrager Excel Discussion (Misc queries) 2 April 21st 06 05:13 PM
Format numberformat Single BenCoo Excel Worksheet Functions 1 March 17th 06 06:17 PM
HOW CAN I SHOW OUTPUT IN FEET INCH FORMAT rich New Users to Excel 2 May 8th 05 06:01 AM


All times are GMT +1. The time now is 12:42 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"