L
laingds
how do you convert room dimensions 13' 8" X 9' 2" to square feet. Can
you put 13' 8" in the same cell ?
Dale
you put 13' 8" in the same cell ?
Dale
how do you convert room dimensions 13' 8" X 9' 2" to
square feet. Can you put 13' 8" in the same cell ?
The first is a clever (too clever?) use of DOLLARDE and DOLLARFR functions
Function SquareFeet(rng1 As Range, rng2 As Range) As Double
x = Split(rng1, "'")
inches1 = CDbl(Application.Substitute(x(1), """", ""))
feet1 = CDbl(x(0))
x2 = Split(rng2, "'")
inches2 = CDbl(Application.Substitute(x(1), """", ""))
feet2 = CDbl(x(0))
SquareFeet = ((feet1 + (inches1 / 12)) * (feet2 + (inches2 / 12)))
End Function
hi Dale,
this doesn't exist in the native functionality of Excel,
i suggest you a custom function
with provided that data is always enter in that form (0'1") or (10'12")
=SquareFeet(A1,B1)
Code:Function SquareFeet(rng1 As Range, rng2 As Range) As Double x = Split(rng1, "'") inches1 = CDbl(Application.Substitute(x(1), """", "")) feet1 = CDbl(x(0)) x2 = Split(rng2, "'") inches2 = CDbl(Application.Substitute(x(1), """", "")) feet2 = CDbl(x(0)) SquareFeet = ((feet1 + (inches1 / 12)) * (feet2 + (inches2 / 12))) End Function