Hello!
I have a spreadsheet that tracks attendance and I need to create a list of outstanding instances. I already have an array that pulls the list of advisors that have a specific text (example 1), and now i need to pull a list of names that have less than 2 occurances.
'Attendance' Table Example
Name - Type - Date
John Smith - 1Tardy - 1/1/15
John Smith - 2Tardy - 1/2/15
John Smith - Absence - 1/3/15
Scott Jones - 1Tardy - 1/4/15
John Smith - 3Tardy - 1/6/15
John Smith - 4Tardy - 2/5/15
EXAMPLE 1:
The first array i have is: (O2 = "3Tardy")
{=IFERROR(INDEX(Attendance!A$2:A$3000,SMALL(IF(Attendance!$B$2:$B$3000=$O$2,ROW(Attendance!A$2:A$3000)-ROW(Attendance!A$2)+1),ROWS(Attendance!A$2:Attendance!A2))),"")}
So based on the above table it would only display John Smith.
Now, what I'm trying to do is list the names of those that only have less than or equal to 2 instances in ColumnB with "*Tardy". Then, to make it more complicated, only display the name if the date range is in January. (start and end dates for each month are listed in another cell to refrence - N1 & O1). So, based on the above example it should only display Scott Jones in January and both John Smith and Scott Jones for February.
Ive tried this:
{=IFERROR(INDEX(Attendance!A$2:A$3000,SMALL(IF(COUNTIFS(Attendance!B2:B3000,"*Tardy",Attendance!C2:C3000,">="&N1,Attendance!C2:C3000,"<="&O1)<=2,ROW(Attendance!A$2:A$3000)-ROW(Attendance!A$2)+1),ROWS(Attendance!A$2:Attendance!A2))),"")}
but it returns any name listed, even if they have more than 2 Tardies listed in the Attendance sheet.
Any suggestions on how I can make this work like the first formula? what am I missing? and thank you in advance for any assistance!
Bookmarks