Thread: durations
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student Gary''s Student is offline
external usenet poster
 
Posts: 11,058
Default durations

First install this tiny UDF:

Function duration(s As String) As Integer
t = Split(s, "-")
duration = DateValue(t(1)) - DateValue(t(0))
End Function

Then, with your data in A1 thru C1, in D1 enter:
=duration(A1)+duration(B1)+duration(C1)

to see 12



--
Gary''s Student - gsnu200725