I have been working on a spreadsheet on excel 2010 tracking the number of items a student can acquire. One student can have multiple teachers (uID). Items can be tested once or multiple times in a day. From columns A to E lists the raw data while column G contains filtered data of unique items while column H (=COUNTIF($B$2:$B$27,$G2)) is the number of times the item was tested for.
Now here is the really hard part. In order to be considered Completed (Column I), there are two options:
1. If an item is tested and acquired ("Yes" result on column E) by the student three times and on three different but consecutive dates (ex. 1/26 - 1/27 - 1/28 or 1/26 - 1/29/ - 2/5) and the testing is done by at least 2 different uIDs then the item is listed as Completed (column I).
2. If an item is acquired 5 times in the same day and tested the same uID, then the item is listed as Completed.
On DateMastered (Column J), it will only indicate the day the item was acquired based on the two conditions above.
Here are the IF statements I've been working on: I2 (=IF($E2="Yes","Yes",(IF($B2=$G2,"Yes","No")))) and J2 (=IF($I2="Yes",$C2,""))[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]ID[/TD]
[TD]Item[/TD]
[TD]Date[/TD]
[TD]uID[/TD]
[TD]Acquired[/TD]
[TD][/TD]
[TD]Item[/TD]
[TD]NumofInstances[/TD]
[TD]Completed[/TD]
[TD]DateMastered[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1[/TD]
[TD]lightbulb[/TD]
[TD]1/26/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD]lightbulb[/TD]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]2[/TD]
[TD]lightbulb[/TD]
[TD]1/27/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD]lamp[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]3[/TD]
[TD]lamp[/TD]
[TD]1/27/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD]ball[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]4[/TD]
[TD]ball[/TD]
[TD]1/27/2013[/TD]
[TD]u0001[/TD]
[TD]No[/TD]
[TD][/TD]
[TD]hockeypuck[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]5[/TD]
[TD]hockeypuck[/TD]
[TD]1/27/2013[/TD]
[TD]u0001[/TD]
[TD]No[/TD]
[TD][/TD]
[TD]card[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]6[/TD]
[TD]card[/TD]
[TD]1/27/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD]soccerball[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]7[/TD]
[TD]soccerball[/TD]
[TD]1/28/2013[/TD]
[TD]u0002[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD]laptop[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]8[/TD]
[TD]lightbulb[/TD]
[TD]1/29/2013[/TD]
[TD]u0002[/TD]
[TD]No[/TD]
[TD][/TD]
[TD]pc[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]9[/TD]
[TD]lightbulb[/TD]
[TD]1/29/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD]pc1[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]10[/TD]
[TD]lightbulb[/TD]
[TD]1/29/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD]mirror[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]11[/TD]
[TD]lightbulb[/TD]
[TD]1/29/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]12[/TD]
[TD]laptop[/TD]
[TD]1/29/2013[/TD]
[TD]u0001[/TD]
[TD]No[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]13[/TD]
[TD]pc[/TD]
[TD]1/30/2013[/TD]
[TD]u0002[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]14[/TD]
[TD]pc1[/TD]
[TD]1/30/2013[/TD]
[TD]u0002[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]15[/TD]
[TD]lamp[/TD]
[TD]1/30/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]17[/TD]
[TD]16[/TD]
[TD]lamp[/TD]
[TD]1/30/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]17[/TD]
[TD]ball[/TD]
[TD]1/31/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]18[/TD]
[TD]ball[/TD]
[TD]2/1/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD]19[/TD]
[TD]card[/TD]
[TD]2/2/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]21[/TD]
[TD]20[/TD]
[TD]card[/TD]
[TD]2/3/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]22[/TD]
[TD]21[/TD]
[TD]hockeypuck[/TD]
[TD]2/3/2013[/TD]
[TD]u0002[/TD]
[TD]No[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]23[/TD]
[TD]22[/TD]
[TD]mirror[/TD]
[TD]2/4/2013[/TD]
[TD]u0002[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]24[/TD]
[TD]23[/TD]
[TD]mirror[/TD]
[TD]2/4/2013[/TD]
[TD]u0002[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]25[/TD]
[TD]24[/TD]
[TD]mirror[/TD]
[TD]2/4/2013[/TD]
[TD]u0002[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]26[/TD]
[TD]25[/TD]
[TD]mirror[/TD]
[TD]2/4/2013[/TD]
[TD]u0002[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]27[/TD]
[TD]26[/TD]
[TD]mirror[/TD]
[TD]2/4/2013[/TD]
[TD]u0002[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
. The results that I'm getting are not correct but I think this is the right direction. I appreciate any help or advice.
Now here is the really hard part. In order to be considered Completed (Column I), there are two options:
1. If an item is tested and acquired ("Yes" result on column E) by the student three times and on three different but consecutive dates (ex. 1/26 - 1/27 - 1/28 or 1/26 - 1/29/ - 2/5) and the testing is done by at least 2 different uIDs then the item is listed as Completed (column I).
2. If an item is acquired 5 times in the same day and tested the same uID, then the item is listed as Completed.
On DateMastered (Column J), it will only indicate the day the item was acquired based on the two conditions above.
Here are the IF statements I've been working on: I2 (=IF($E2="Yes","Yes",(IF($B2=$G2,"Yes","No")))) and J2 (=IF($I2="Yes",$C2,""))[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]ID[/TD]
[TD]Item[/TD]
[TD]Date[/TD]
[TD]uID[/TD]
[TD]Acquired[/TD]
[TD][/TD]
[TD]Item[/TD]
[TD]NumofInstances[/TD]
[TD]Completed[/TD]
[TD]DateMastered[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1[/TD]
[TD]lightbulb[/TD]
[TD]1/26/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD]lightbulb[/TD]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]2[/TD]
[TD]lightbulb[/TD]
[TD]1/27/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD]lamp[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]3[/TD]
[TD]lamp[/TD]
[TD]1/27/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD]ball[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]4[/TD]
[TD]ball[/TD]
[TD]1/27/2013[/TD]
[TD]u0001[/TD]
[TD]No[/TD]
[TD][/TD]
[TD]hockeypuck[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]5[/TD]
[TD]hockeypuck[/TD]
[TD]1/27/2013[/TD]
[TD]u0001[/TD]
[TD]No[/TD]
[TD][/TD]
[TD]card[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]6[/TD]
[TD]card[/TD]
[TD]1/27/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD]soccerball[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]7[/TD]
[TD]soccerball[/TD]
[TD]1/28/2013[/TD]
[TD]u0002[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD]laptop[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]8[/TD]
[TD]lightbulb[/TD]
[TD]1/29/2013[/TD]
[TD]u0002[/TD]
[TD]No[/TD]
[TD][/TD]
[TD]pc[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]9[/TD]
[TD]lightbulb[/TD]
[TD]1/29/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD]pc1[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]10[/TD]
[TD]lightbulb[/TD]
[TD]1/29/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD]mirror[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]11[/TD]
[TD]lightbulb[/TD]
[TD]1/29/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]12[/TD]
[TD]laptop[/TD]
[TD]1/29/2013[/TD]
[TD]u0001[/TD]
[TD]No[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]13[/TD]
[TD]pc[/TD]
[TD]1/30/2013[/TD]
[TD]u0002[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]14[/TD]
[TD]pc1[/TD]
[TD]1/30/2013[/TD]
[TD]u0002[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]15[/TD]
[TD]lamp[/TD]
[TD]1/30/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]17[/TD]
[TD]16[/TD]
[TD]lamp[/TD]
[TD]1/30/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]17[/TD]
[TD]ball[/TD]
[TD]1/31/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]18[/TD]
[TD]ball[/TD]
[TD]2/1/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD]19[/TD]
[TD]card[/TD]
[TD]2/2/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]21[/TD]
[TD]20[/TD]
[TD]card[/TD]
[TD]2/3/2013[/TD]
[TD]u0001[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]22[/TD]
[TD]21[/TD]
[TD]hockeypuck[/TD]
[TD]2/3/2013[/TD]
[TD]u0002[/TD]
[TD]No[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]23[/TD]
[TD]22[/TD]
[TD]mirror[/TD]
[TD]2/4/2013[/TD]
[TD]u0002[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]24[/TD]
[TD]23[/TD]
[TD]mirror[/TD]
[TD]2/4/2013[/TD]
[TD]u0002[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]25[/TD]
[TD]24[/TD]
[TD]mirror[/TD]
[TD]2/4/2013[/TD]
[TD]u0002[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]26[/TD]
[TD]25[/TD]
[TD]mirror[/TD]
[TD]2/4/2013[/TD]
[TD]u0002[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]27[/TD]
[TD]26[/TD]
[TD]mirror[/TD]
[TD]2/4/2013[/TD]
[TD]u0002[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
. The results that I'm getting are not correct but I think this is the right direction. I appreciate any help or advice.