change feet/ inches to decimals

R

Roderick

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.
 
R

Rick Rothstein \(MVP - VB\)

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
 
Top