Decimal to Fraction Within another Formula

JMax85

New Member
Joined
Aug 10, 2023
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Forgive me if the answer is posted somewhere else
I am working on a project for processing steel handrail
and to simplify things for the shop i have a formula that converts Inches In to feet
my issue is if a fraction is the input the output results in a decimal
EX: 100 1/2 comes out as 8' 4.5"
and I would like it to read 8' 4 1/2"
this is the formula i am using how can i modify it to display the fraction

=INT(H19/12)&"' "&MOD(H19,12)&""""

Thank You
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Probably
Excel Formula:
=INT(H19/12)&"' "&INT(MOD(H19,12))&TEXT(MOD(H19,1)," ?/?;;")&""""
 
Upvote 0
Solution
Probably
Excel Formula:
=INT(H19/12)&"' "&INT(MOD(H19,12))&TEXT(MOD(H19,1)," ?/?;;")&""""
Awesome Thank you so much
I don't have any sort of experience or training with excel other than a few 30 min basics Youtube videos
could you possible explain the addition you made and what it means
and any recommendations for where i can learn more about the Formulas/Functions and how to use them

Thank You Again
 
Upvote 0
So I added TEXT(MOD(H19,1)," ?/?;;"). You've already used the MOD() function so I'll just explain the TEXT() function. It's essentially cell formatting in a formula, and there are various cell formats for currencies, dates, percentages, and what was relevant here was fractions. the semi-colons are dividers for various cell formatting options, specifically what to show when a value is a positive number;negative number;zero;not a number. You may find a bit more of what the text function is capable of here.
 
Upvote 0
So I added TEXT(MOD(H19,1)," ?/?;;"). You've already used the MOD() function so I'll just explain the TEXT() function. It's essentially cell formatting in a formula, and there are various cell formats for currencies, dates, percentages, and what was relevant here was fractions. the semi-colons are dividers for various cell formatting options, specifically what to show when a value is a positive number;negative number;zero;not a number. You may find a bit more of what the text function is capable of here.
Awesome Thank You
 
Upvote 0

Forum statistics

Threads
1,223,714
Messages
6,174,052
Members
452,542
Latest member
Bricklin

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