Hi all,
I need help. I work for a Police Dept and have to make a spreadsheet. I have an example below of the sheet.
I need to calculate the date of someone's parole ending and possible... a countdown from the current date to that date.
Unknown 64 bit
I need help. I work for a Police Dept and have to make a spreadsheet. I have an example below of the sheet.
I need to calculate the date of someone's parole ending and possible... a countdown from the current date to that date.
Unknown 64 bit
A | B | C | D | E | F | G | H | I | J | K | L | M | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | First Name | Middle Name | Last Name | Conviction Date | Parole Date | Time Incarcerated | Sentence End Date | Total Sentence | Charge 1 | Sentence | Charge 2 | Sentence | Notes |
2 | john | d | doe | 11/23/16 | 5/4/18 | =IF(DATEDIF(IF(E2<D2,E2,D2),IF(E2>D2,E2,D2),"y")=0,"",DATEDIF(IF(E2<D2,E2,D2),IF(E2>D2,E2,D2),"y")&IF(DATEDIF(IF(E2<D2,E2,D2),IF(E2>D2,E2,D2),"y")=1," year "," years ")&"")&IF(DATEDIF(IF(E2<D2,E2,D2),IF(E2>D2,E2,D2),"ym")=0,"",DATEDIF(IF(E2<D2,E2,D2),IF(E2>D2,E2,D2),"ym")&IF(DATEDIF(IF(E2<D2,E2,D2),IF(E2>D2,E2,D2),"ym")=1," month "," months ")&"")&IF(INT(DATEDIF(IF(E2<D2,E2,D2),IF(E2>D2,E2,D2),"md")/7)=0,"",INT(DATEDIF(IF(E2<D2,E2,D2),IF(E2>D2,E2,D2),"md")/7)&IF(INT(DATEDIF(IF(E2<D2,E2,D2),IF(E2>D2,E2,D2),"md")/7)=1," week "," weeks ")&"")&IF(MOD(DATEDIF(IF(E2<D2,E2,D2),IF(E2>D2,E2,D2),"md"),7)=0,"",MOD(DATEDIF(IF(E2<D2,E2,D2),IF(E2>D2,E2,D2),"md"),7)&IF(MOD(DATEDIF(IF(E2<D2,E2,D2),IF(E2>D2,E2,D2),"md"),7)=1," day "," days ")&"") | =DATE(YEAR(E2)+F2,MONTH(E2)+F2,DAY(E2)+F2) | =SUM($J2+$L2) & " Years" | Attmpt Burglary | 4 Years | Agg Assault | 4 Years | |
3 | Joseph | a | doe | 4/9/15 | 5/7/28 | =IF(DATEDIF(IF(E3<D3,E3,D3),IF(E3>D3,E3,D3),"y")=0,"",DATEDIF(IF(E3<D3,E3,D3),IF(E3>D3,E3,D3),"y")&IF(DATEDIF(IF(E3<D3,E3,D3),IF(E3>D3,E3,D3),"y")=1," year "," years ")&"")&IF(DATEDIF(IF(E3<D3,E3,D3),IF(E3>D3,E3,D3),"ym")=0,"",DATEDIF(IF(E3<D3,E3,D3),IF(E3>D3,E3,D3),"ym")&IF(DATEDIF(IF(E3<D3,E3,D3),IF(E3>D3,E3,D3),"ym")=1," month "," months ")&"")&IF(INT(DATEDIF(IF(E3<D3,E3,D3),IF(E3>D3,E3,D3),"md")/7)=0,"",INT(DATEDIF(IF(E3<D3,E3,D3),IF(E3>D3,E3,D3),"md")/7)&IF(INT(DATEDIF(IF(E3<D3,E3,D3),IF(E3>D3,E3,D3),"md")/7)=1," week "," weeks ")&"")&IF(MOD(DATEDIF(IF(E3<D3,E3,D3),IF(E3>D3,E3,D3),"md"),7)=0,"",MOD(DATEDIF(IF(E3<D3,E3,D3),IF(E3>D3,E3,D3),"md"),7)&IF(MOD(DATEDIF(IF(E3<D3,E3,D3),IF(E3>D3,E3,D3),"md"),7)=1," day "," days ")&"") | | | | 4 Years | | 4 Years | |
4 | jane | d | doe | 1/1/18 | 5/19/18 | =IF(DATEDIF(IF(E4<D4,E4,D4),IF(E4>D4,E4,D4),"y")=0,"",DATEDIF(IF(E4<D4,E4,D4),IF(E4>D4,E4,D4),"y")&IF(DATEDIF(IF(E4<D4,E4,D4),IF(E4>D4,E4,D4),"y")=1," year "," years ")&"")&IF(DATEDIF(IF(E4<D4,E4,D4),IF(E4>D4,E4,D4),"ym")=0,"",DATEDIF(IF(E4<D4,E4,D4),IF(E4>D4,E4,D4),"ym")&IF(DATEDIF(IF(E4<D4,E4,D4),IF(E4>D4,E4,D4),"ym")=1," month "," months ")&"")&IF(INT(DATEDIF(IF(E4<D4,E4,D4),IF(E4>D4,E4,D4),"md")/7)=0,"",INT(DATEDIF(IF(E4<D4,E4,D4),IF(E4>D4,E4,D4),"md")/7)&IF(INT(DATEDIF(IF(E4<D4,E4,D4),IF(E4>D4,E4,D4),"md")/7)=1," week "," weeks ")&"")&IF(MOD(DATEDIF(IF(E4<D4,E4,D4),IF(E4>D4,E4,D4),"md"),7)=0,"",MOD(DATEDIF(IF(E4<D4,E4,D4),IF(E4>D4,E4,D4),"md"),7)&IF(MOD(DATEDIF(IF(E4<D4,E4,D4),IF(E4>D4,E4,D4),"md"),7)=1," day "," days ")&"") | | =SUM(J4,L4) & " Years" | | 8 Years | | 2 Years |
Sheet: Parole List |