ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   change feet/ inches to decimals (https://www.excelbanter.com/excel-discussion-misc-queries/173541-change-feet-inches-decimals.html)

Roderick

change feet/ inches to decimals
 
I want to insert into a cell just like shown 10'-4 3/8" and have it to change
to a deciamls (10.3645) in another cell. Please help.
--
Estimator

Gord Dibben

change feet/ inches to decimals
 
See Chip Pearson's site for instructions.

http://www.cpearson.com/excel/FeetInches.htm


Gord Dibben MS Excel MVP

On Thu, 17 Jan 2008 18:01:02 -0800, Roderick
wrote:

I want to insert into a cell just like shown 10'-4 3/8" and have it to change
to a deciamls (10.3645) in another cell. Please help.



Rick Rothstein \(MVP - VB\)

change feet/ inches to decimals
 
As an alternative to Chip's macro solution, here is a one-liner version that will also work...

Function ConvertFeetInches(S As Variant) As Variant
ConvertFeetInches = Evaluate(Replace(Replace(Replace(S, "'-", "+("), " ", "+"), """", ")/12"))
End Function

Rick


"Gord Dibben" <gorddibbATshawDOTca wrote in message ...
See Chip Pearson's site for instructions.

http://www.cpearson.com/excel/FeetInches.htm


Gord Dibben MS Excel MVP

On Thu, 17 Jan 2008 18:01:02 -0800, Roderick
wrote:

I want to insert into a cell just like shown 10'-4 3/8" and have it to change
to a deciamls (10.3645) in another cell. Please help.




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

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