I wonder if anyone can fix this formula for me:
I want to list (in the right hand column F of the below table) all entries from that meet two conditions: 1) a "set" name given in column B and determined in column E and 2) affirmative answer to whether the value "a" is given in column D. I want the list to be populated from the values in column C (NAME) and I do not want the list to contain blanks.
I have got quite far by using two formulas:
First of all, Cell F1 counts rows that contain an "a" in column D: =COUNTIF($D$2:$D$54,"a")
Secondly, the list (array) formula itself: {=IF(ROWS($A$2:$A2)>$F$1,"",INDEX($C$2:$C$54,SMALL(IF($B$2:$B$54=$E$1,IF($D$2:$D$18="a",ROW($D$2:$D$54)-ROW($D$2))+1,"1"),ROWS($A$2:$A2))))}
As you can see from the table below, the formula above is listing one entry multiple times and return #NUM! for blanks. Any ideas where I'm going wrong? Help greatly appreciated.
Blank SET NAME a/e SetA 10
SetA Dave a Dave
SetA John Dave
SetA Anthony a Dave
SetA Terry Anthony
SetA Jude a Jude
SetB Rudy a #NUM!
SetB Carl #NUM!
SetB Gemma a #NUM!
SetB Christy a #NUM!
SetB Paul #NUM!
SetB India a
SetC Reg a
SetC Bobby
SetC Felicity a
SetC Trey
SetC Connor a
SetC Dan
Bookmarks