View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Rick Rothstein \(MVP - VB\) Rick Rothstein \(MVP - VB\) is offline
external usenet poster
 
Posts: 2,202
Default 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.