Function NumSign(num) If (IsNumeric(num)) Then If (num = 0) Then NumSign = "Zero" ElseIf (num < 0) Then NumSign = "Negative" Else NumSign = "Positive" End If Else NumSign = "Not A Number" End If End Function
Function TopAvg(data, num) Sum = 0 For i = 1 To num Sum = Sum + WorksheetFunction.Large(data, i) Next i TopAvg = Sum / num End Function
Function ExtractElement(txt, n, separator) ExtractElement = Split(Application.Trim(txt), separator)(n - 1) End Function Function ElementCount(txt, sep) ElementCount = UBound(Split(Application.Trim(txt), sep)) + 1 End Function
Function AlphaCat(data As Range) rowSize = data.Columns.Count Dim words() As Variant ReDim words(0 To rowSize - 1) i = 0 For Each cell In data words(i) = cell.Value i = i + 1 Next cell word = "" For i = 0 To rowSize - 1 word = word & words(i) Next i AlphaCat = word End Function