Currently I am using this formula:
=INDEX(STP_Data!F70:G78, MATCH(7443, STP_Data!$G$70:$G$78, 0), 1)
I need to have it also look for 7664
if it does not find 7443
. I don't know how to approach including this into the formula. Do you guys have any idea? Thanks!
尝试一下,如果能解决问题请告诉我:
=IFERROR(INDEX(STP_Data!F70:G78, MATCH(7443, STP_Data!$G$70:$G$78, 0), 1), INDEX(STP_Data!F70:G78, MATCH(7664, STP_Data!$G$70:$G$78, 0), 1))
The IFERROR
function can pass processing to an alternate if the first attempt fails. Like Ralph 's solution above but uses IFERROR internally on the MATCH for a slightly shorter formula.
=INDEX(STP_Data!F70:F78, IFERROR(MATCH(7443, STP_Data!$G$70:$G$78, 0), MATCH(7664, STP_Data!$G$70:$G$78, 0)))
You don't need to specify the column in INDEX if you only reference column F.
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.