I'm try to perform a look up and cross reference an exclusion list, and would appreciate any help. I want to return the smallest number that who's lookup value is NOT in the exclusion list.
List:
<tbody>
</tbody>
Exclusion List:
<tbody>
</tbody>
Output:
<tbody>
</tbody>
This was my attempt through using arrays(although it doesn't work maybe it can be of some inspiration?):
=VLOOKUP(SMALL(IF(IF(M2=INDEX(list,,3,1),INDEX(list,,2,1),"")=exclusion,MAX(INDEX(list,,1,1))+1,INDEX(list,,1,1)),1),list,2,FALSE)
The above formula is using the named ranges for the tables listed above.
Any help would be greatly appreciated!
Thanks!
Ghrain22
List:
# | type | fruit |
1 | nectarine | orange |
5 | naval | orange |
4 | tangerine | orange |
2 | clementine | orange |
3 | mcintosh | apple |
7 | fuji | apple |
6 | honey crisp | apple |
9 | gold and delicious | apple |
10 | honeydew | melon |
8 | water melon | melon |
4 | canteloup | melon |
<tbody>
</tbody>
Exclusion List:
type |
nectarine |
mcintosh |
water melon |
<tbody>
</tbody>
Output:
fruit | output | should return | |
apple | {formula} |
<tbody> </tbody> | |
melon | {formula} |
<tbody> </tbody> | |
orange | {formula} |
<tbody> </tbody> |
<tbody>
</tbody>
This was my attempt through using arrays(although it doesn't work maybe it can be of some inspiration?):
=VLOOKUP(SMALL(IF(IF(M2=INDEX(list,,3,1),INDEX(list,,2,1),"")=exclusion,MAX(INDEX(list,,1,1))+1,INDEX(list,,1,1)),1),list,2,FALSE)
The above formula is using the named ranges for the tables listed above.
Any help would be greatly appreciated!
Thanks!
Ghrain22