Professional Documents
Culture Documents
2 Criteria VLOOKUP in Excel
2 Criteria VLOOKUP in Excel
This custom function can use the 1st 2 Columns of a table as matching criteria and return the nth
''WRITTEN BY OZGRID.COM
With WorksheetFunction
bFound = True
Exit For
End If
Next lLoop
End With
Else
Two_Con_Vlookup = "#N/A"
End If
End Function
OR
''WRITTEN BY OZGRID.COM
With WorksheetFunction
bFound = True
Exit For
End If
Next lLoop
End With
Else
Two_Con_Vlookup = "#N/A"
End If
End Function
Use like;
=Two_Con_Vlookup($A$1:$H$20,6,"Apr",4)