Excel LOOKUP with multiple outcomes
Currently I am using the formula: =LOOKUP("Pending", DK6, A6)
So if the cell contents of DK6 says “Pending” it displays the value from cell A6.
I need to add some more clauses and would appreciate some help on how to construct the formula. The logic I am looking for is as follows…
LOOKUP("Pending", DK6, A6) > ?ELSEIF? > LOOKUP(“Delegated”, DK6, leave cell blank) > ?ELSEIF? > LOOKUP(“Rejected”, DK6, leave cell blank) > ?ELSEIF? > LOOKUP(blank cell, DK6, leave cell blank)
If you want
ELSEIF
formulas, you need to nestIF
formulas, for example:The logic you gave could be simplified because there's leave cell blank in last three cases, so you could just use:
=IF(DK6="Pending",A6,"")
To get lists of multiple matching rows you can apply SMALLL() to pick up the first, second, third, etc. value.
The formula in DL2 is,
To gather cells in column A where column DK is blank is a little different.
These formulas seem to be a better fit than the array formulas provided in another thread. The values in column A are by nature unique so that does not have to be compensated for.