How to find the maximum value based on another column?

Viewed 590

I am trying to find the maximum value based on another column. This is what I have tried.

=MAX(IF(Sheet3!$B$2:$B$5491=Sheet4!A3,Sheet3!$E$2:$E$5491))

How I am reading this code is that if the criteria in sheet 3 in column B is equivalent to the cell in A3 in sheet 4, then return the maximum value that would be in column E from sheet 3. I found this code online and have tried variations but all it is doing is returning 0. Is there another way I could go about finding the max value?

Thanks,

GCC

1 Answers
Related