I have 4 columns:
Last name, first name, department, shift
List of 93 names with 9 different departments and two shifts (day, night)
I want to list the names of each team on a separate sheet.
=(INDEX($A$2:$D$93,SMALL(IF(($C$2:$C$93="SALES")*($D$2:$D$93="DAY"),ROW($A$2:$A$93)-MIN(ROW($A$2:$A$93)+1)),2)))
I get #REF! error.
Solved by K. L. in 19 mins