ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Need formulas for adding feet, inches & fraction in one cell (https://www.excelbanter.com/excel-worksheet-functions/8805-need-formulas-adding-feet-inches-fraction-one-cell.html)

Wayne hof

Need formulas for adding feet, inches & fraction in one cell
 
If i have 12' 4" & 1/2" in cell A1 and 10' 4" &1/4" in cell A2 how do i add
or subtract them? Will excel do this or Is there a program/script or
something that will do this.
--
Wayne Hof

Biff

Hi!

This could be done in the format that you have:

12' 4" & 1/2"

but the resulting formula would be a real mess!

Suggestion: drop the fraction for a decimal and get rid of
the ampersand so that the entry looks like this:

12' 4.5"

Now, use this formula to convert the measure to inches:

=(LEFT(A1,FIND("'",A1)-1)*12+SUBSTITUTE(MID(A1,FIND(" ",A1)
+1,255),"""",""))

You can perform whatever math operations you need on the
converted values and then convert them back to feet inches
with this formula:

=ROUND(INT(B1)/12,0)&"' "&MOD(B1,12)&""""

Biff

-----Original Message-----
If i have 12' 4" & 1/2" in cell A1 and 10' 4" &1/4" in

cell A2 how do i add
or subtract them? Will excel do this or Is there a

program/script or
something that will do this.
--
Wayne Hof
.



All times are GMT +1. The time now is 06:18 AM.

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