简体   繁体   中英

Find excel value based on multiple criteria

Hello I'm trying to find a value (id) in an excel csv file but based on two different criteria. This value can have multiple references therefore I need to obtain the ID based on other two fields, I tried using xlookup and index-match functions but since these values are mixed in the CSV I'm getting an incorrect result.

In the below image example the correct ID I need to get is the one in green. If I use the xlookup function looking for the vaccine3 ID I'll get the first appearance, but this is link to product A5 and not to A7, which is the correct one.

Thanks for the help.

在此处输入图像描述

如果你在C4中输入这个公式,那么它应该返回正确的 id

=INDEX($D$2:$D$10,MATCH(B4&A4,$E$2:$E$10&$F$2:$F$10,0))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM