We help IT Professionals succeed at work.
Troubleshooting Question

# Excel Vlookup using max

on
34 Views
Hi, I am trying to write logic in Excel to look at a column of value based on another value and find the max value in a third column.  I don't know how to incorporate the max function into Vlookup or maybe I should be using a different formula?

Here's my current formula:
`=IF(ISNA(VLOOKUP(N2,\$L\$1:\$M\$500,2,FALSE)), "Not Found", VLOOKUP(N2,\$L\$1:\$M\$500,2,FALSE))`

Here's an example of data below.  My current formula returns what's in column O but I want the results to return the values in P (I hard-coded these values for this example).  The value in cell P2 should be 4 because, of the 3 rows with Section "Material Characterization" under col L, the number 4 is the highest value in col M.

For each of the 6 section name values (col N), I want to find the highest Hidden Residual Risk # value from col M where the section in L matches the section in N.

Comment
Watch Question
Mechanical Engineer
CERTIFIED EXPERT
Distinguished Expert 2020
Commented:
This problem has been solved!
###### Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

Deciding to stick with EE.

Mohamed Asif

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant