I have a formula:
IF(AND(COUNTIFS(A:A,A1,B:B,"Bob")+COUNTIFS(A:A,A1,C:C,17)>=2,C1=17),B1,"")
that does the following:
- If "Bob" is in Col B AND there is a "17" in Col C while still having a1 in Col A
- Then retrieve data from Col B on same row as "17", in this case B2.
So for the series of rows that have a2 in Col A, the conditions are true again because there is a "Bob" in Col B associated with a2, and a "17" in Col C associated with a2, so "Mike" is retrieved in Col D.
For the series of rows that have a3 in Col A, conditions are not true, as there is no "17" in Col C, so Col D remains empty.
For the series of rows that have a4 in Col A, conditions are not true, as there is no "Bob" in Col B, so Col D remains empty.
Now, I would like to change "Bob" (text string) for a Named Range.
However, though COUNTIF
works with Named Ranges, it does not with COUNTIFS
.
Is there a way to do this?