Need VBA code for number of values equal to MAX of a column
Can this be done in code, I need to get the max value and count the number of times it is in column B, it would also be nice if I could also get the address of the cell(s) that contain the max values, something like the code below, this is for excel 2003 and the numbers in column B are formulas if that matters.
Thanks Jim
Can this be done in code, I need to get the max value and count the number of times it is in column B, it would also be nice if I could also get the address of the cell(s) that contain the max values, something like the code below, this is for excel 2003 and the numbers in column B are formulas if that matters.
Thanks Jim
Code:
Sub GetMax()
MsgBox "The Max value in column B is " & maxvalue & " it is there " & numberoftimes & _
" time(s) at cell(s) " & theaddress
End Sub