I have 4 Parole Agents that are assigned cases according to inmate numbers. The inmate numbers are always two letters followed by 4 numbers. For instance, PE1012.
Agent1 has inmate numbers ending in 1 and 2
Agent2 has inmate numbers ending in 3 and 4
Agent3 has inmate numbers ending in 5 and 6
Agent4 has inmate numbers ending in 7 and 8
If the inmate# ends in 0 or 9 then they are assigned by the preceding whole number. For instance, PE1099 would be Agent1’s case based off the 1. PE7930 would be Agent4’s case based off the 3 and so forth.
I’ve gotten this far:
=IF($C8<="","",IF($C8="","",CHOOSE(INT((RIGHT(SUBSTITUTE($C8,"0",""))-1)/2)+1,"Wright","Prenatt","Dzara","Mott")))
C8 is the inmate#.
I can account for the 0, but I’m not sure what to do with the 9.
Agent1 has inmate numbers ending in 1 and 2
Agent2 has inmate numbers ending in 3 and 4
Agent3 has inmate numbers ending in 5 and 6
Agent4 has inmate numbers ending in 7 and 8
If the inmate# ends in 0 or 9 then they are assigned by the preceding whole number. For instance, PE1099 would be Agent1’s case based off the 1. PE7930 would be Agent4’s case based off the 3 and so forth.
I’ve gotten this far:
=IF($C8<="","",IF($C8="","",CHOOSE(INT((RIGHT(SUBSTITUTE($C8,"0",""))-1)/2)+1,"Wright","Prenatt","Dzara","Mott")))
C8 is the inmate#.
I can account for the 0, but I’m not sure what to do with the 9.
Book1.xlsx | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | |||
7 | LOC | Parole Number | Inst Number | Offender Name | Minimum Date | Interview Type | Majority/Panel/ RRRI | RRRI | Reason Not Seen | AGENT | ||
8 | 929KK | PE1100 | ARMENTROUT-LOPEZ MARLIESSA | 08-01-2024 | E | R | Wright | |||||
9 | 508ID | PE0902 | BLAKELEY BRENDA L | 07-13-2022 | V | M | Wright | |||||
10 | 308KS | PE6925 | BOAS CODY BERNICE | 08-24-2024 | M | P | Dzara | |||||
11 | 122JK | PE6829 | DENNIS TIFFNAY | 06-23-2024 | M | P | #VALUE! | |||||
12 | 935KK | PC3813 | FENTON ANGEL LEE | 08-02-2024 | M | M | Prenatt | |||||
13 | 207KR | PE6812 | FULLEM LEAH | 11-09-2023 | E | R | Wright | |||||
14 | 365JF | PC1987 | GEELEN ELIZABETH | 01-19-2020 | V | P | Mott | |||||
15 | 015FN | PE6407 | GROGAN ERIKA MICHELE | 08-30-2024 | M | P | Mott | |||||
16 | 995JQ | PD6424 | HARRINGTON LATRICE MARIE | 08-25-2024 | M | P | Prenatt | |||||
17 | 812JW | PB2462 | HENCHELL ASHLEY | 08-15-2022 | R | M | Wright | |||||
18 | 808KU | PE7161 | HODOWANES ASHLEY L | 06-24-2024 | M | P | Wright | |||||
19 | 788KU | PE7157 | HOSSLER KATHARINE ALICE | 02-27-2024 | E | R | Mott | |||||
20 | 163JQ | PB4309 | KELLEY JOANNA | 08-26-2021 | V | P | #VALUE! | |||||
21 | 738HF | PE5538 | LAMP DESIREA MARIE | 07-09-2023 | R | P | Mott | |||||
22 | 852GV | PA5936 | LEHMAN ANGELA | 08-01-2024 | M | P | Dzara | |||||
23 | 858KE | PB0451 | MCLAUGHLIN CHAUNITA | 08-30-2023 | R | M | Wright | |||||
24 | 369KU | PE7116 | MERK KRISTEN AMBER | 05-30-2024 | J | R | Dzara | |||||
25 | 2001I | PE6820 | MILLER ALICE | 08-11-2024 | J | R | Wright | |||||
26 | 238KS | PE6923 | MORGAN KAREN LEE | 08-25-2024 | J | P | Prenatt | |||||
27 | 779KU | PE7152 | MORGAN KIMBERLY A | 06-11-2024 | M | M | Wright | |||||
28 | 409KJ | PE6383 | NAVARRO ARIEL | 06-25-2023 | R | M | Prenatt | |||||
29 | 274KH | PE6240 | NYIRI MEDINA | 08-08-2024 | J | P | Prenatt | |||||
30 | 940KS | PE6986 | OZMORE SHERRY DAWN | 08-09-2024 | M | P | Dzara | |||||
31 | 281KE | PE5951 | PIERCE BRANDY SUE | 11-24-2023 | R | M | Wright | |||||
32 | 363KR | PE3972 | POLISKY DIANE | 08-05-2024 | E | R | Wright | |||||
33 | 235JH | PC9835 | PRITTS BRENDA ROSE | 08-27-2024 | M | M | Dzara | |||||
34 | 187KT | PE7010 | REBMAN CARLY E | 08-16-2024 | E | R | Wright | |||||
35 | 950IL | OY9658 | RUSH CRYSTAL LASHEA | 09-09-2018 | S | M | Mott | |||||
36 | 961IW | OZ5316 | SHAFFER CHRISTINA RUTH | 02-08-2019 | V | P | Dzara | |||||
37 | 549GL | PE6981 | SMITH PATRICIA M | 08-12-2024 | M | P | Wright | |||||
38 | 861KE | PD2275 | STRICKLAND TIARAH | 08-01-2023 | R | P | Dzara | |||||
39 | 713IA | PC8788 | WILLIAMS LISA MARIE | 03-26-2020 | S | P | Mott | |||||
40 | 288JX | OX9592 | WOODHOUSE SHADE | 09-24-2022 | R | M | Wright | |||||
41 | 416KF | PE6050 | WOOLF DASIA A. | 10-25-2023 | R | M | Dzara | |||||
42 | 981KE | PE6002 | YOUNG SHAVON | 08-25-2023 | R | M | Wright | |||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
J8:J42 | J8 | =IF($C8<="","",IF($C8="","",CHOOSE(INT((RIGHT(SUBSTITUTE($C8,"0",""))-1)/2)+1,"Wright","Prenatt","Dzara","Mott"))) |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
A8:I42 | Expression | =$A8="O" | text | YES |
A8:I42 | Expression | =$A8="X" | text | YES |
G8:G42 | Expression | =$H8="Y" | text | NO |
G8:G42 | Cell Value | contains "N" | text | NO |