View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
covdbrdg covdbrdg is offline
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"