Decimal to Feet / Inch Converstion

savv37

New Member
Joined
Mar 20, 2018
Messages
7
Hello, I'm trying to convert decimals into feet and inches. I have this formula, =INT(D5) & " ft " & TEXT(MOD(D5,1)*12, "0, #/##") & " in", however, the results are often in fractions that are not common like the 1/32", 1/64", 1/8", 1/4" & 1/2" fractions. Is there a way I can modify this formula so that the fractions are presented in more common construction fractional units?

Regrettably, I'm unable to use the XL2BB. It seems that Excel is preventing the macro from functioning, as the functions are grayed out and cannot be used.

Thanks for taking the time to review & I appreciate all your assistance. Thanks in advance.
 

Attachments

  • DECIMAL to FEET FRACTION IMAGE.jpg
    DECIMAL to FEET FRACTION IMAGE.jpg
    95.8 KB · Views: 55

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
I think you will have to use a VLookup table as suggested here
 
Upvote 0
Don't use "INT" function if you plan to convert negative number to feet-inches, use "ROUNDDOWN" instead.
"ROUNDDOWN" with "MROUND" round the number to 1/64 (or 1/2, 1/4, 1/16, 1/32 etc.), so "TEXT" can
properly formating imperial fraction part (the denominator).

Your original formula has problem with convert negative numbers when using INT(), try this:

Excel Formula:
=ROUNDDOWN(D5,0) & " ft " & TEXT(MROUND(MOD(ABS(D5),1)*12,1/64), "0 #/##") & " in"

Phh
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,177
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top