'Get cell value but skip row if wrong

I have two tables:

enter image description here

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?



Solution 1:[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)),"")

Have a look at this screenshot

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Luuklag