Hi Brad,
It won't surprise me if someone comes up with a method of doing this with
formulas directly on the worksheet. However, as you asked for code, here is
an example.
Sub FrequencyOfStr()
Dim rngColumn As Range
Dim strSave As String
Dim lngCount As Long
Dim lngSave As Long
Dim c As Range
'Edit "Sheet1" in following line to your sheet
With Sheets("Sheet1")
'Edit "E" in thefollowing code to your column Id
Set rngColumn = Range(.Cells(1, "E"), _
.Cells(.Rows.Count, "E").End(xlUp))
End With
For Each c In rngColumn
lngCount = WorksheetFunction. _
CountIf(rngColumn, c.Value)
If lngCount > lngSave Then
lngSave = lngCount
strSave = c.Value
End If
Next c
MsgBox "Most frequent string = " & strSave & Chr(13) & _
"Number of occurrences = " & lngSave
End Sub