mgilbertson
Technical User
I have the following formula to turn a decimal number into feet-inches-16ths. My only problem is I would like to have the leading zero not appear if it is only inches-16th.
Formula: =IF(SIGN(D3)=-1,"- ","")&INT(ROUND(ABS(D3)*16,0)/16/12)&"'-"&TEXT((MOD(ROUND(ABS(D3)*16,0)/16,12)),"# #/##")&""""
Example:
3.5 = 0'-3 1/2" I would rather see 3 1/2"
Example:
13.5 = 1'-1 1/2" This would be the only time the first integer would be required, if it is larger than 0
Can the above formula be modified to drop the first integer if it is 0?
Thank you very much.
Formula: =IF(SIGN(D3)=-1,"- ","")&INT(ROUND(ABS(D3)*16,0)/16/12)&"'-"&TEXT((MOD(ROUND(ABS(D3)*16,0)/16,12)),"# #/##")&""""
Example:
3.5 = 0'-3 1/2" I would rather see 3 1/2"
Example:
13.5 = 1'-1 1/2" This would be the only time the first integer would be required, if it is larger than 0
Can the above formula be modified to drop the first integer if it is 0?
Thank you very much.