VLOOKUP and a condition
The animated picture above shows you how the array formula removes specific records in the the table_array argument.
Array formula in C4:
=VLOOKUP(C2,IF(B8:B17=C3,A8:E17,""),3,FALSE)
becomes
=VLOOKUP("A",{"", "", "", "", "";"", "", "", "", "";"", "", "", "", "";"", "", "", "", "";"A", "South America", "The New Firm", "Tory", "Byrnes";"", "", "", "", "";"", "", "", "", "";"", "", "", "", "";"", "", "", "", "";"F", "South America", "Trans United Airways", "Ervin", "Hennessey"},3,FALSE)
and returns "The New Firm"
How to create an array formula
- Select cell C4
- Type the array formula
- Press and hold Ctrl + Shift
- Press Enter

No comments:
Post a Comment