Hello Mr. Excel users!
-above code is working and giving me each ROW # in immediate window through debug.print
-i know there is a "MODE", but how would i incorporate it in this function?
-i want this function just to give me the most frequent row number, so I can use that as my target in other codes.
result should be an integer row # only.
in above case the most frequent row # appeared is 1, so i want the result to be just # 1.
thank you!
Code:
Function abce(mySheet As String, mySELEC As Range) As StringApplication.Volatile
Dim x As Range
For Each x In mySELEC
Debug.Print Sheets(mySheet).Cells.Find(what:=x.Value, MatchCase:=True, LookAt:=xlWhole).Row
Next x
End Function
-above code is working and giving me each ROW # in immediate window through debug.print
-i know there is a "MODE", but how would i incorporate it in this function?
-i want this function just to give me the most frequent row number, so I can use that as my target in other codes.
result should be an integer row # only.
Code:
1
1
1
2
in above case the most frequent row # appeared is 1, so i want the result to be just # 1.
thank you!
Last edited: