Get cell value but skip row if wrong

北城余情 提交于 2021-01-25 07:57:20

问题


I have two tables:

I want to get all names from Table 1 that have status "Denied". I tried using IF formula but it returns blank/other false value. Expected result is Table 3.

Is there any other formula that can solve this?


回答1:


Use this formula in Table 3 Column 1
=IFERROR(SMALL(IF(($B$2:$B$15="Denied"),$A$2:$A$15,""),ROW()-2),"")

Note: Press CTRL+SHIFT+ENTER after putting in the formula (As it is an array formula) No need for a second table

Use this formula in Table 3 Column 2
=IFERROR(INDEX($B$3:$B$11,MATCH(E3,$A$3:$A$11,0)),"")

Use this formula in Table 3 Column 3
=IFERROR(INDEX($C$3:$C$11,MATCH(E3,$A$3:$A$11,0)),"")



来源:https://stackoverflow.com/questions/33471645/get-cell-value-but-skip-row-if-wrong

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!