[英]Excel VLOOKUP based on value of cell in named array
I have a basic VLOOKUP
that I need to expand. 我有一个需要扩展的基本
VLOOKUP
。
=VLOOKUP(A2,DVD,8,FALSE)
It currently does as expected and grabs the data from the named array. =VLOOKUP(A2,DVD,8,FALSE)
当前按预期执行,并从命名数组中获取数据。
I need the VLOOKUP
to return the value ONLY if the string/value in col 6 of the DVD array is "IMG" . 仅当DVD阵列的第6列中的字符串/值是“ IMG”时,我才需要
VLOOKUP
返回该值。 If not, do not return the value. 如果不是,则不返回该值。
Is this possible? 这可能吗?
Thanks in advance for any assistance! 在此先感谢您的协助!
=IF(VLOOKUP(A2,DVD,6,FALSE) = "IMG", VLOOKUP(A2,DVD,8,FALSE), "")
This will result in two searches for A2
, so you might want to use additional column to cache its position: 这将导致两次搜索
A2
,因此您可能想要使用其他列来缓存其位置:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.