简体   繁体   中英

Get value from range if cells match in Excel

Excuse me for the messy title, hope I would explain the problem below clearer.

This is an example what table I do have: https://i.stack.imgur.com/X9JSj.png

This is formula I use: =INDEX($G:$G, MATCH(B$1,$F:$F,0))

The task is: if types id and idnum match, and column name (A, B and C) matches value in type -> put value of the cell from value to the A, B or C column. I tried to search how to do this as well as trying out to do this with =IF and Index, Match, Match, but nothing worked out.

Any help is very appreciated!

Try this Formula in B2 cell

=IFERROR(INDEX($G$2:$G$15,MATCH(1,($E$2:$E$15=$A2)*($F$2:$F$15=B$1),0)),"")

After click F2 and Ctrl + Shift + Enter

在此处输入图片说明

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