Hi,
I'm attempting to Calculate an Qualification Expiration Date. The Absolute Limit of a Handgun Qualification is 12 months from the initial Course of Fire.
My goal is to determine a Qualification Expiration Date based on multiple criteria. The Navy requires an annual weapons Live Fire qualification to include:
Date of NHQC (Naval Handgun Qualification Course), Date of HPWC (Handgun Practical Weapons Course) and Date of HLLC (Handgun Low-Light Course) if cells "C:F" then Cell "I" will reflect 8 months the latest date in cells "D:F". If the 2 Month Extension is has "Yes" then add two months to the Expiration Date in Cell "I". The Sustainment (Cell "H") can extend the Annual COF an additional 4 months but to a limit date of one year from the initial live Fire Qualification Course.
Column C = PQS
Column D = Date of NHQC
Column E = Date of HPWC
Column F = Date of HLLC
Column G = 2Mo Extension
Column H = Sustainment Fire (Extends the Qualification an additional 4 months to no more than 1 year from Full Course of Fire).
Column I = Date of Expiration
I'm using this formula ATM:
=IF(D3="","",MIN(MAX(EDATE(MAX(D3:F3),8+2*(G3="yes")),EDATE(H3,4)),EDATE(MAX(D3:F3),12)))
The formula fails to account for the Full 12 Months from the Dates entered in Cells D:F when the Sustainment date is entered. The final expiration date Calculates 4 Months from the Sustainment Date causing the Qual to Expire early.
Rows 1-10 contain different possible situations for the formula and Column J shows what the correct date should be.
Rows 14-17 are what I was my failed attempt to achieve a solution for my issue. I've tried to add a helper cell in the attached file thinking
The attached file includes sample data and some variables. Thank you for your time and attention in addressing this.
V/r,
Jim
I'm attempting to Calculate an Qualification Expiration Date. The Absolute Limit of a Handgun Qualification is 12 months from the initial Course of Fire.
My goal is to determine a Qualification Expiration Date based on multiple criteria. The Navy requires an annual weapons Live Fire qualification to include:
Date of NHQC (Naval Handgun Qualification Course), Date of HPWC (Handgun Practical Weapons Course) and Date of HLLC (Handgun Low-Light Course) if cells "C:F" then Cell "I" will reflect 8 months the latest date in cells "D:F". If the 2 Month Extension is has "Yes" then add two months to the Expiration Date in Cell "I". The Sustainment (Cell "H") can extend the Annual COF an additional 4 months but to a limit date of one year from the initial live Fire Qualification Course.
Column C = PQS
Column D = Date of NHQC
Column E = Date of HPWC
Column F = Date of HLLC
Column G = 2Mo Extension
Column H = Sustainment Fire (Extends the Qualification an additional 4 months to no more than 1 year from Full Course of Fire).
Column I = Date of Expiration
I'm using this formula ATM:
=IF(D3="","",MIN(MAX(EDATE(MAX(D3:F3),8+2*(G3="yes")),EDATE(H3,4)),EDATE(MAX(D3:F3),12)))
The formula fails to account for the Full 12 Months from the Dates entered in Cells D:F when the Sustainment date is entered. The final expiration date Calculates 4 Months from the Sustainment Date causing the Qual to Expire early.
Rows 1-10 contain different possible situations for the formula and Column J shows what the correct date should be.
Rows 14-17 are what I was my failed attempt to achieve a solution for my issue. I've tried to add a helper cell in the attached file thinking
The attached file includes sample data and some variables. Thank you for your time and attention in addressing this.
V/r,
Jim
Expiration Formula.xlsx | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | H | I | J | K | |||
2 | PQS | NHQC | HPWC | HLLC | 2 Month EXTENSION | SUSTAINMENT | QUALIFICATION EXPIRATION | Correct Expiration Date | ||||
3 | 9MM | Completed | 24-Jun-18 | 24-Jun-18 | 24-Jun-18 | YES | 14-Feb-19 | 14-Jun-19 | 24-Jun-19 | |||
4 | 9MM | Completed | 24-Jun-18 | 24-Jun-18 | 24-Jun-18 | NO | 14-Feb-19 | 14-Jun-19 | 24-Jun-19 | |||
5 | 9MM | Completed | 24-Jun-18 | 24-Jun-18 | 24-Jun-18 | YES | 24-Apr-19 | 24-Apr-19 | ||||
6 | 9MM | Completed | 24-Jun-18 | 24-Jun-18 | 24-Jun-18 | NO | 24-Feb-19 | 24-Feb-19 | ||||
7 | 9MM | Completed | 24-Jun-18 | 25-Jun-18 | 26-Jun-18 | YES | 14-Feb-19 | 14-Jun-19 | 26-Jun-19 | |||
8 | 9MM | Completed | 24-Jun-18 | 25-Jun-18 | 26-Jun-18 | NO | 14-Feb-19 | 14-Jun-19 | 26-Jun-19 | |||
9 | 9MM | Completed | 24-Jun-18 | 25-Jun-18 | 26-Jun-18 | YES | 26-Apr-19 | 26-Apr-19 | ||||
10 | 9MM | Completed | 24-Jun-18 | 25-Jun-18 | 26-Jun-18 | NO | 26-Feb-19 | 26-Feb-19 | ||||
11 | ||||||||||||
12 | ||||||||||||
13 | ||||||||||||
14 | Test | |||||||||||
15 | NHQC | HPWC | HLLC | 2 Month (HELPER Cell) | 2 Month EXTENSION | SUSTAINMENT (HELPER Cell) | SUSTAINMENT | QUALIFICATION EXPIRATION | Correct Expiration Date | |||
16 | 9MM | 24-Feb-19 | 24-Feb-19 | 24-Feb-19 | 1 | YES | Formula Here? | 24-Oct-19 | 24-Oct-19 | |||
17 | 9MM | 24-Feb-19 | 24-Feb-19 | 24-Feb-19 | 0 | NO | Formula Here? | 24-Oct-19 | 24-Oct-19 | |||
Sheet1 (2) |
Cell Formulas | ||
---|---|---|
Range | Formula | |
I3:I10 | I3 | =IF(D3="","",MIN(MAX(EDATE(MAX(D3:F3),8+2*(G3="yes")),EDATE(H3,4)),EDATE(MAX(D3:F3),12))) |
F16:F17 | F16 | =IF(G16="YES",1,"0") |
J16 | J16 | =IF(C16="","0",MIN(MAX(EDATE(MAX(C16:E16),8+2*(F16="1")),EDATE(I16,4)),EDATE(MAX(D16:F16),12))) |
J17 | J17 | =IF(C17="","0",MIN(MAX(EDATE(MAX(C17:E17),8+2*(G17="1")),EDATE(I17,4)),EDATE(MAX(D17:F17),12))) |