View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Glenn Glenn is offline
external usenet poster
 
Posts: 1,240
Default Display a number in feet inches and fractions of and inch

Michael Peace wrote:
I have a list of measurements in decimal inches and I want to display them in
feet, inches, and fractions of an inch. I.E. 75.522" would be displayed as
6'-3 1/2"

Is this even possible?


Ron Rosenfeld posted this a while back:

=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,")","")