Hello, and thanks in advance for your help!
I have a workbook with many worksheets. Some worksheets have 25-30 columns and up to 45,000 rows of data. My dilemma follows...
In column "I" on the ENTRIES worksheet, I have a VLOOKUP formula I use, but I doesn't work properly if there is more than one occurrence of the data I'm comparing against. For example, the following array in I4 to retrieve text from P4 in "ALL" works, but only if the text in P is in the first row that the ID number occurs: =IFERROR(VLOOKUP($A4,ALL!$D:$Z,13,0),""). In other words, the array I have works just fine unless there are multiple occurrences of the ID# (column D in "Entries"). In other words, the formula captures what's in the P column only for the first occurrence of the matching ID#. If, for example, RFHO, is in column P of the eighth occurrence of the ID#, the corresponding cell in the I column in the "Entries" column will be blank. I need a formula that will look through column P in its entirety for the selected ID# (A4) and if there is an instance of text in P (RFHO, CCRE, EXCL), add it to corresponding row in Entries, in column I.
I don't see where I can upload anything so I'm including below a portion of each of the two worksheets: ENTRIES and ALL. The personally identifiable information of the individuals has been changed. Thank you in advance for your help!
A sample of the ALL worksheet
<tbody>
</tbody><colgroup><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;" span="2"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"></colgroup>
A sample of the ENTRIES worksheet
<tbody>
</tbody><colgroup><col><col><col><col><col><col><col><col><col><col span="3"></colgroup>
I have a workbook with many worksheets. Some worksheets have 25-30 columns and up to 45,000 rows of data. My dilemma follows...
In column "I" on the ENTRIES worksheet, I have a VLOOKUP formula I use, but I doesn't work properly if there is more than one occurrence of the data I'm comparing against. For example, the following array in I4 to retrieve text from P4 in "ALL" works, but only if the text in P is in the first row that the ID number occurs: =IFERROR(VLOOKUP($A4,ALL!$D:$Z,13,0),""). In other words, the array I have works just fine unless there are multiple occurrences of the ID# (column D in "Entries"). In other words, the formula captures what's in the P column only for the first occurrence of the matching ID#. If, for example, RFHO, is in column P of the eighth occurrence of the ID#, the corresponding cell in the I column in the "Entries" column will be blank. I need a formula that will look through column P in its entirety for the selected ID# (A4) and if there is an instance of text in P (RFHO, CCRE, EXCL), add it to corresponding row in Entries, in column I.
I don't see where I can upload anything so I'm including below a portion of each of the two worksheets: ENTRIES and ALL. The personally identifiable information of the individuals has been changed. Thank you in advance for your help!
A sample of the ALL worksheet
A Lev | B SchID | C SchName | D ID | E FName | F LName | G Grade | H Gender | I Ethnic | J Elig | K GT_Stat | L ELPLvl | M RefDate | N IncDate | O IncCode | P HOCase | Q DaysOSS | R DaysISSP | S HrsAIA | T PriOff | U SecOff1 | V SecOff2 | W PriDispo | X SecDispo | Y Interven | Z PriDispo & Interven |
xxx | 100 | Sleepy Hollow High | 1671977 | Guillermo | Guillermo | 11 | M | White | 1 | 09/07/16 | 09/07/16 | 411429 | GA1 | PARN | PARN | ||||||||||
xxx | 100 | Sleepy Hollow High | 1378674 | Dylan | dylan | 09 | M | Asian | 10 | 09/13/16 | 09/13/16 | 411542 | DC3 | CSRV | CSRV | ||||||||||
xxx | 100 | Sleepy Hollow High | 1629869 | Pragna | Pragna | 12 | F | Asian | 10 | 09/20/16 | 09/20/16 | 411881 | CF1 | CONF | CONF | ||||||||||
xxx | 100 | Sleepy Hollow High | 1685014 | Marlon | Marlon | 10 | M | Hispanic/ Latino | 2 | 09/30/16 | 09/30/16 | 412777 | DC5 | DC8 | WARN | WARN | |||||||||
xxx | 100 | Sleepy Hollow High | 1685014 | Marlon | Marlon | 10 | M | Hispanic/ Latino | 2 | 10/12/16 | 10/12/16 | 414207 | 1 | AT5 | AT2 | ISSP | ISSP | ||||||||
xxx | 100 | Sleepy Hollow High | 1711170 | Luis | Luis-Luis | 10 | M | Hispanic/ Latino | 1 | 10/17/16 | 10/16/16 | 414251 | 3 | DC1 | DC2 | AIA | AIA | ||||||||
xxx | 100 | Sleepy Hollow High | 1685014 | Marlon | Marlon | 10 | M | Hispanic/ Latino | 2 | 10/27/16 | 10/26/16 | 415600 | 2 | AT5 | AT2 | ISSP | ISSP | ||||||||
xxx | 100 | Sleepy Hollow High | 1711170 | Luis | Luis-Luis | 10 | M | Hispanic/ Latino | 1 | 10/26/16 | 10/26/16 | 416004 | 2 | DC1 | DC5 | AIA | AIA | ||||||||
xxx | 100 | Sleepy Hollow High | 1405381 | Luis | Luis | 09 | M | Black/ African American | 6d | 10/28/16 | 10/28/16 | 415626 | 1 | DC2 | AT2 | AT3 | ISSP | ISSP | |||||||
xxx | 100 | Sleepy Hollow High | 1630478 | Fritz Nicole | Fritz Nicole | 09 | F | Black/ African American | 11/01/16 | 11/01/16 | 416063 | SC5 | PARN | PARN | |||||||||||
xxx | 100 | Sleepy Hollow High | 1711170 | Luis | Luis-Luis | 10 | M | Hispanic/ Latino | 1 | 11/15/16 | 11/15/16 | 417523 | 3 | DC1 | DC2 | DC5 | AIA | AIA | |||||||
xxx | 100 | Sleepy Hollow High | 1711170 | Luis | Luis-Luis | 10 | M | Hispanic/ Latino | 1 | 11/21/16 | 11/21/16 | 418200 | 1 | SC1 | ISSP | ISSP | |||||||||
xxx | 100 | Sleepy Hollow High | 1549105 | Ariel | Ariel | 09 | M | Asian | LD | 3 | 11/29/16 | 11/29/16 | 418765 | 2 | 1 | DC2 | DC5 | AT2 | ISSP | AIA | ISSP | ||||
xxx | 100 | Sleepy Hollow High | 1685014 | Marlon | Marlon | 10 | M | Hispanic/ Latino | 2 | 11/29/16 | 11/29/16 | 418890 | DC8 | WARN | WARN | ||||||||||
xxx | 100 | Sleepy Hollow High | 1685014 | Marlon | Marlon | 10 | M | Hispanic/ Latino | 2 | 12/02/16 | 12/02/16 | 419590 | 2 | TI2 | ISSP | ISSP | |||||||||
xxx | 100 | Sleepy Hollow High | 1685014 | Marlon | Marlon | 10 | M | Hispanic/ Latino | 2 | 12/05/16 | 12/02/16 | 419755 | DC9 | PARN | WARN | PARN | |||||||||
xxx | 100 | Sleepy Hollow High | 1405381 | Luis | Luis | 09 | M | Black/ African American | 6d | 12/09/16 | 12/09/16 | 421213 | 2 | AT2 | AT3 | ISSP | ISSP | ||||||||
xxx | 100 | Sleepy Hollow High | 1405381 | Luis | Luis | 09 | M | Black/ African American | 6d | 12/09/16 | 12/09/16 | 421216 | 2 | DC2 | DC3 | SUST | SUST | ||||||||
xxx | 100 | Sleepy Hollow High | 1702234 | Denis | Denis | 10 | M | Black/ African American | 1 | 12/09/16 | 12/09/16 | 420989 | 2 | TI2 | DC2 | SUST | SUST | ||||||||
xxx | 100 | Sleepy Hollow High | 1405381 | Luis | Luis | 09 | M | Black/ African American | 6d | 12/15/16 | 12/13/16 | 421679 | RFHO | 11 | BA7 | WP5 | SUST | SUST | |||||||
xxx | 100 | Sleepy Hollow High | 1549105 | Ariel | Ariel | 09 | M | Asian | LD | 3 | 12/15/16 | 12/13/16 | 421679 | RFHO | 13 | BA7 | SUST | SUST | |||||||
xxx | 100 | Sleepy Hollow High | 1378674 | Dylan | dylan | 09 | M | Asian | 10 | 12/14/16 | 12/14/16 | 421343 | RFHO | 9 | BA6 | ISSP | PARN | ISSP | |||||||
xxx | 100 | Sleepy Hollow High | 1422469 | Maria | Maria | 10 | F | Native Hawaiian/ Other Pacific Islander | LD | 3 | 12/14/16 | 12/14/16 | 421386 | 1 | DC3 | DC6 | ISSP | ISSP | |||||||
xxx | 100 | Sleepy Hollow High | 1711170 | Luis | Luis-Luis | 10 | M | Hispanic/ Latino | 1 | 01/04/17 | 01/04/17 | 421773 | DC5 | WARN | WARN | ||||||||||
xxx | 100 | Sleepy Hollow High | 1711170 | Luis | Luis-Luis | 10 | M | Hispanic/ Latino | 1 | 01/10/17 | 01/09/17 | 422324 | 2 | DC2 | DC5 | ISSP | ISSP | ||||||||
xxx | 100 | Sleepy Hollow High | 1685014 | Marlon | Marlon | 10 | M | Hispanic/ Latino | 2 | 01/10/17 | 01/10/17 | 422318 | GA1 | SC1 | WARN | WARN | |||||||||
xxx | 100 | Sleepy Hollow High | 1422469 | Maria | Maria | 10 | F | Native Hawaiian/ Other Pacific Islander | LD | 3 | 01/12/17 | 01/12/17 | 422775 | 3 | DC1 | DC2 | DC5 | AIA | AIA | ||||||
xxx | 100 | Sleepy Hollow High | 1702234 | Denis | Denis | 10 | M | Black/ African American | 1 | 01/24/17 | 01/24/17 | 423697 | RFHO | 7 | DR8 | DP1 | TB2 | ISSP | ISSP | ||||||
xxx | 100 | Sleepy Hollow High | 1711170 | Luis | Luis-Luis | 10 | M | Hispanic/ Latino | 1 | 01/25/17 | 01/25/17 | 423851 | 2 | DC5 | AT5 | AIA | AIA | ||||||||
xxx | 100 | Sleepy Hollow High | 1711170 | Luis | Luis-Luis | 10 | M | Hispanic/ Latino | 1 | 01/25/17 | 01/25/17 | 423853 | AT5 | DETN | DETN | ||||||||||
xxx | 100 | Sleepy Hollow High | 1228770 | William | William | 12 | M | White | ID | 01/30/17 | 01/30/17 | 424785 | 1 | SX0 | ISSP | ISSP | |||||||||
xxx | 100 | Sleepy Hollow High | 1685014 | Marlon | Marlon | 10 | M | Hispanic/ Latino | 2 | 02/02/17 | 02/01/17 | 424973 | RFHO | 12 | BA7 | TI2 | GA1 | SUST | SUST | ||||||
xxx | 100 | Sleepy Hollow High | 1702234 | Denis | Denis | 10 | M | Black/ African American | 1 | 02/08/17 | 02/08/17 | 425364 | AT1 | AT3 | PARN | WARN | PARN | ||||||||
xxx | 100 | Sleepy Hollow High | 1685014 | Marlon | Marlon | 10 | M | Hispanic/ Latino | 2 | 02/09/17 | 02/09/17 | 425498 | TR1 | POLN | PARN | POLN | |||||||||
xxx | 100 | Sleepy Hollow High | 1531904 | Lex | Lex | 12 | M | White | 6a | 02/14/17 | 02/10/17 | 426330 | 1 | TR1 | AT5 | AT2 | ISSP | ISSP | |||||||
xxx | 100 | Sleepy Hollow High | 1422469 | Maria | Maria | 10 | F | Native Hawaiian/ Other Pacific Islander | LD | 3 | 02/14/17 | 02/14/17 | 426050 | 1 | 1 | DC1 | DC5 | CO2 | ISSP | AIA | ISSP | ||||
xxx | 100 | Sleepy Hollow High | 1405381 | Luis | Luis | 09 | M | Black/ African American | 6d | 01/25/17 | 02/15/17 | 426150 | CCRE | 0 | CIC | SUST | SUST | ||||||||
xxx | 100 | Sleepy Hollow High | 1711170 | Luis | Luis-Luis | 10 | M | Hispanic/ Latino | 1 | 02/22/17 | 02/22/17 | 426910 | 1 | DC1 | DC2 | DC6 | ISSP | ISSP | |||||||
xxx | 100 | Sleepy Hollow High | 1447387 | Ricardo | Ricardo | 09 | M | Black/ African American | 3 | 03/03/17 | 03/03/17 | 428515 | 1 | AT3 | ISSP | ISSP | |||||||||
xxx | 100 | Sleepy Hollow High | 1711170 | Luis | Luis-Luis | 10 | M | Hispanic/ Latino | 1 | 03/07/17 | 03/03/17 | 428913 | 1 | DC5 | SUST | SUST | |||||||||
xxx | 100 | Sleepy Hollow High | 1721462 | Julian | Julian | 10 | M | Black/ African American | 03/08/17 | 03/07/17 | 428987 | 12 | AT2 | ISSP | ISSP | ||||||||||
xxx | 100 | Sleepy Hollow High | 1422469 | Maria | Maria | 10 | F | Native Hawaiian/ Other Pacific Islander | LD | 3 | 03/09/17 | 03/09/17 | 429354 | 3 | DC3 | AIA | AIA | ||||||||
xxx | 100 | Sleepy Hollow High | 1431231 | Najely | Najely | 09 | F | Two or More Races | 4 | 03/03/17 | 03/13/17 | 429678 | CIC | 0 | |||||||||||
xxx | 100 | Sleepy Hollow High | 1711170 | Luis | Luis-Luis | 10 | M | Hispanic/ Latino | 1 | 03/16/17 | 03/16/17 | 430136 | 1 | DC5 | SUST | SUST | |||||||||
xxx | 100 | Sleepy Hollow High | 1721462 | Julian | Julian | 10 | M | Black/ African American | 03/21/17 | 03/21/17 | 430726 | RFHO | 8 | DR8 | DP1 | ISSP | SEM | ISSP | |||||||
xxx | 100 | Sleepy Hollow High | 1711170 | Luis | Luis-Luis | 10 | M | Hispanic/ Latino | 1 | 03/22/17 | 03/22/17 | 431038 | SC5 | PARN | PARN | ||||||||||
xxx | 100 | Sleepy Hollow High | 1391366 | Rosa | Ricardo | 11 | F | Hispanic/ Latino | 10 | 03/23/17 | 03/23/17 | 431044 | 1 | AT5 | ISSP | ISSP | |||||||||
xxx | 100 | Sleepy Hollow High | 1447387 | Ricardo | Ricardo | 09 | M | Black/ African American | 3 | 03/23/17 | 03/23/17 | 431050 | 2 | DC5 | AT2 | ISSP | ISSP | ||||||||
xxx | 100 | Sleepy Hollow High | 1422469 | Maria | Maria | 10 | F | Native Hawaiian/ Other Pacific Islander | LD | 3 | 03/30/17 | 03/30/17 | 432155 | 1 | DC1 | DC6 | ISSP | ISSP | |||||||
xxx | 100 | Sleepy Hollow High | 1711170 | Luis | Luis-Luis | 10 | M | Hispanic/ Latino | 1 | 03/29/17 | 03/30/17 | 431943 | 3 | DC3 | DC5 | ISSP | ISSP | ||||||||
xxx | 100 | Sleepy Hollow High | 1711170 | Luis | Luis-Luis | 10 | M | Hispanic/ Latino | 1 | 04/18/17 | 04/18/17 | 433395 | 1 | 4 | DC5 | DC6 | SUST | ISSP | SUST | ||||||
xxx | 100 | Sleepy Hollow High | 1447387 | Ricardo | Ricardo | 09 | M | Black/ African American | 3 | 04/20/17 | 04/20/17 | 433620 | AT1 | AT2 | DETN | DETN |
<tbody>
</tbody><colgroup><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;" span="2"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"></colgroup>
A sample of the ENTRIES worksheet
A ID# | B # of Entries | C LName | D FName | E Gr | F Ethnicity | G EL Lev | H SpecEd | I HO? | J Days ISS | K Days OSS | L Total ISS & OSS |
1711170 | 14 | Luis-Luis | Luis | 10 | White | 1 | 0 | 11 | 3 | 14 | |
1685014 | 9 | Marlon | Marlon | 10 | Black/ African American | 2 | 0 | 5 | 12 | 17 | |
1405381 | 5 | Luis | Luis | 09 | Asian | 6d | 0 | 3 | 13 | 16 | |
1422469 | 5 | Maria | Maria | 10 | Native Hawaiian/ Other Pacific Islander | 3 | LD | 0 | 3 | 0 | 3 |
1702234 | 3 | Denis | Denis | 10 | American Indian/ Alaska Native | 1 | 0 | 7 | 2 | 9 | |
1447387 | 3 | Ricardo | Ricardo | 09 | Hispanic/ Latino | 3 | 0 | 3 | 0 | 3 | |
1549105 | 2 | Ariel | Ariel | 09 | Hispanic/ Latino | 3 | LD | 0 | 2 | 13 | 15 |
1378674 | 2 | dylan | Dylan | 09 | White | 10 | 0 | 9 | 0 | 9 | |
1721462 | 2 | Julian | Julian | 10 | Native Hawaiian/ Other Pacific Islander | 0 | 20 | 0 | 20 | ||
1630478 | 1 | Fritz Nicole | Fritz Nicole | 09 | Black/ African American | 0 | 0 | 0 | 0 | ||
1671977 | 1 | Guillermo | Guillermo | 11 | Black/ African American | 1 | 0 | 0 | 0 | 0 | |
1531904 | 1 | Lex | Lex | 12 | White | 6a | 0 | 1 | 0 | 1 | |
1431231 | 1 | Najely | Najely | 09 | Asian | 4 | 0 | 0 | 0 | 0 | |
1629869 | 1 | Pragna | Pragna | 12 | Asian | 10 | 0 | 0 | 0 | 0 | |
1391366 | 1 | Ricardo | Rosa | 11 | Two or More Races | 10 | 0 | 1 | 0 | 1 | |
1228770 | 1 | William | William | 12 | Two or More Races | ID | 0 | 1 | 0 | 1 |
<tbody>
</tbody><colgroup><col><col><col><col><col><col><col><col><col><col span="3"></colgroup>