PC Review


Reply
Thread Tools Rate Thread

convert decimal inches into feet and inches

 
 
Jason Stripling
Guest
Posts: n/a
 
      22nd Apr 2009
I am using the following formula to convert decimal inches into feet and
inches. The problem I have is that the formula is not reducing the fractions.
For instance, when the figure is 35.625 it converts it to 2'-11 10/16"
instead of 2'-11 5/8". I need to keep the inches in 16th's but want the
formula to reduce the fraction when needed. Any suggestions on how to make
this happen?

=INT(F5/12)&"'-"&TEXT(MOD(F5,12),"# ??/16")&""""
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      22nd Apr 2009
I'd start at David McRitchie's site
http://mvps.org/dmcritchie/excel/fractex1.htm

From work done by Bernie Deitrick.

Jason Stripling wrote:
>
> I am using the following formula to convert decimal inches into feet and
> inches. The problem I have is that the formula is not reducing the fractions.
> For instance, when the figure is 35.625 it converts it to 2'-11 10/16"
> instead of 2'-11 5/8". I need to keep the inches in 16th's but want the
> formula to reduce the fraction when needed. Any suggestions on how to make
> this happen?
>
> =INT(F5/12)&"'-"&TEXT(MOD(F5,12),"# ??/16")&""""


--

Dave Peterson
 
Reply With Quote
 
Jason Stripling
Guest
Posts: n/a
 
      23rd Apr 2009
I actual dug a little deeper yesterday and found out how to do it. The
formula is shown below.
=INT(F5/12)&"'-"&TEXT(MOD(F5,12),"# ??/??")&""""
The only issue I have with this one is that it has extra spaces in the final
numbers when you don't have four numbers for the fraction. For instance,
2'-11 5/8" is actually 2'-11 5/8 ". It replaces the missing ?, from the
formula, with a space. This is close enough for me. If anyone knows how to
fix it though, let me know.

"Dave Peterson" wrote:

> I'd start at David McRitchie's site
> http://mvps.org/dmcritchie/excel/fractex1.htm
>
> From work done by Bernie Deitrick.
>
> Jason Stripling wrote:
> >
> > I am using the following formula to convert decimal inches into feet and
> > inches. The problem I have is that the formula is not reducing the fractions.
> > For instance, when the figure is 35.625 it converts it to 2'-11 10/16"
> > instead of 2'-11 5/8". I need to keep the inches in 16th's but want the
> > formula to reduce the fraction when needed. Any suggestions on how to make
> > this happen?
> >
> > =INT(F5/12)&"'-"&TEXT(MOD(F5,12),"# ??/16")&""""

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Decimal to Feet and Inches RyanH Microsoft Excel Programming 2 10th Nov 2008 08:20 PM
How do I convert decimal to feet and inches =?Utf-8?B?RXJpaw==?= Microsoft Excel Worksheet Functions 5 25th Oct 2007 11:54 PM
Converting from feet, inches and fractions to inches and decimal p =?Utf-8?B?RGVl?= Microsoft Excel Setup 5 18th Sep 2007 04:18 PM
Convert feet/inches to decimal =?Utf-8?B?ZGluZ3kxMDE=?= Microsoft Excel Worksheet Functions 16 21st Feb 2006 10:18 PM
how to convert feet-inches-fractions to feet (or inches) in Excel =?Utf-8?B?Sm9obiBCYXRlcw==?= Microsoft Excel Worksheet Functions 1 23rd Sep 2004 08:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:34 PM.