ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Change Inches to feet and Inches (https://www.excelbanter.com/excel-programming/420086-change-inches-feet-inches.html)

Bob

Change Inches to feet and Inches
 
I have a column adding inches with fractions like this:

96
4 1/4

100 1/4

How can you format the cell with 100 1/4 to show 8' 4" 1/4

Thank you for your help.

Gary Keramidas

Change Inches to feet and Inches
 
you can try this, i just used a1:a7 as the range


=TEXT(INT(SUM(A1:A7)/12) & "' " &MOD(SUM(A1:A7),12) & """","0.00")
--


Gary

"Bob" wrote in message
...
I have a column adding inches with fractions like this:

96
4 1/4

100 1/4

How can you format the cell with 100 1/4 to show 8' 4" 1/4

Thank you for your help.




JE McGimpsey

Change Inches to feet and Inches
 
One way:

=INT(SUM(A1:A3)/12) & TEXT(MOD(SUM(A1:A3),12), "' 0\"" ?/?")

In article ,
Bob wrote:

I have a column adding inches with fractions like this:

96
4 1/4

100 1/4

How can you format the cell with 100 1/4 to show 8' 4" 1/4

Thank you for your help.


Bob

Change Inches to feet and Inches
 
This worked just right:
=INT(SUM(A1:A3)/12) & TEXT(MOD(SUM(A1:A3),12), "' 0\"" ?/?")the formula:

This formula leaves a decimal for the fraction.
=TEXT(INT(SUM(A1:A7)/12) & "' " &MOD(SUM(A1:A7),12) & """","0.00")

Thanks again for your help.

"JE McGimpsey" wrote:

One way:

=INT(SUM(A1:A3)/12) & TEXT(MOD(SUM(A1:A3),12), "' 0\"" ?/?")

In article ,
Bob wrote:

I have a column adding inches with fractions like this:

96
4 1/4

100 1/4

How can you format the cell with 100 1/4 to show 8' 4" 1/4

Thank you for your help.




All times are GMT +1. The time now is 01:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com