Function RankSum(InRange, OutRange, RankRange, SegmentStartTime, SegmentMinutes)
For Each Cell In InRange
StartTime = Cell
FinishTime = Cell.Offset(0, OutRange.Column - InRange.Column)
If StartTime - (SegmentMinutes / (24 * 60)) < SegmentStartTime And FinishTime >= SegmentStartTime + (SegmentMinutes / (24 * 60)) - 0.0000000001 Then
RankSum = RankSum + Cell.Offset(0, RankRange.Column - InRange.Column)
End If
Next Cell
End Function
how would i get this module to do nothing if certain text is entered in the box
Bookmarks