What is an efficient VBA solution to doing this?
I have a worksheet with values in row A, B and C.
Variable recordic = 31286
This value can be found anywhere from once to hundreds in column A.
Column B holds numbers.
I need code that will find the largest value from column B (max) for the values in A that equal recordid.
In other words, if I were to filter column A for the value of recordid, I would need to find the largest number in column B of the filtered data. If I filter the data, and apply max to column B of the filtered data, I don't get the right answer.
Bookmarks