Nested If with dates & multiple day variables

Charger_R_T

New Member
Joined
Sep 8, 2023
Messages
20
Office Version
  1. 2016
Platform
  1. Windows
I'm looking to place this formula in the status colume. I'll use row A15 as my example.
If A15 is blank, C15=blank
IF A15 has text, but no dates entered through E15:AM15, AO:AP, and AR:AT "Incomplete"
If E15:AM15, AO:AP, and AR:AT has a date over 365 days prior to today or If AL15:AM15 and AR15:AS15, has a date over 1095 days prior to today, "Expired". Even if there are dates within this row that are current or expiring soon.
If E15:AM15, AO:AP, and AR:AT has a date between 335-365 days prior to today or If AL15:AM15 and AR15:AS15 has a date between 1065-1095 days prior to today, "Expires Soon". Even if there are dates within this row that are current.
IF E15:AM15, AO:AP, and AR:AT has all dates within 335 days prior to today and IF AL15:AM15 and AR15:AS15 has all dates within 1065, "Safety Qualified"

Row AN, AQ, AS will not be part of the formula.

1694458429976.png
 
try this
Excel Formula:
=IF(A15="","",IF(MAX(E15:AM15, AO15:AP15, AP15:AR15)=0,"incomplete",IF(OR(TODAY()-MIN(E15:AK15,AO15:AU15,AY15)>365,OR(TODAY()-AGGREGATE(5,6,AL15:AM15)>1095,IFERROR(TODAY()-AGGREGATE(5,6,MIN(IF(ISNUMBER(AW15),IF(AW15>0,AW15),"p")))>1095,FALSE))),"expired",IF(OR(AND(TODAY()-MIN(E15:AK15,AO15:AU15,AY15)<365,TODAY()-MIN(E15:AK15,AO15:AU15,AY15)>335),OR(IFERROR(AND(TODAY()-AGGREGATE(5,6,AL15:AM15)<1095,TODAY()-AGGREGATE(5,6,AL15:AM15)>1065),FALSE),OR(IFERROR(TODAY()-AGGREGATE(5,6,MIN(IF(ISNUMBER(AW15),IF(AW15>0,AW15),"p")))<1095,FALSE),IFERROR(TODAY()-AGGREGATE(5,6,MIN(IF(ISNUMBER(AW15),IF(AW15>0,AW15),"p")))>1065,FALSE)))),"expires soon","safety qualified"))))

When an employee meets the safety qualified criteria it is retuning expired. It appears to be for employees that do not have data in the 1095 day cells.

Machine Safety Qualification Tracker.xlsx
ABCDEFGHIJKLMPQRSTUVAAABACADALAMANAOAPAVAWAXAY
1CONVERTING MACHINESCORRUGATORSHIPPING/BalerPowered Industrial Truck Training
210955376 Martin FFG2402 United RDC2423 Ward RDC2432 Ward RDC5104 Ward FFG5164 Ward FFG5014 LMC FFG1502 2pc StitcherTransfer CartsWet End (RS 7-10 & Trolleys, SF, Splicers)Wet End (RS 3-6 & Trolleys, SF, Splicers)Wet End (RS 1&2 & Trolleys, Trible Stack, Glue Machine)Dry End (DB thru Knife)Dry End (Knife thru Stacker)Corrugator PalletizerStarch RoomPalletizerCentering DeviceStretch WrapperBaler-HoggerPIT Train the Trainer Certified (Expires every 3 years)Supervisor Class Room Training (Expires every 3 years)Operator Class Room Training, Test, & Practical Exercies (Does not expire as long as Annual Eval is completed every year)Fork Lift Annual EvaluationRoll Clamp Truck Annual EvaluationTruck Type CertificationsMEWP Train the Trainer Certified (Expires every 3 years)MEWP Class Room Training, Exam, & Practical EvaluationMEWP Annual Evaluation
3730 Qualified Machine Operators
4
5CONVERTING
6
7
8ONLY SAFETY QUALIFIED EMPLOYEES ARE ALLOWED TO WORK ON ASSIGNED MACHINES
9
10
11
12
13Remove employees by deleting the row. Add new employees at the bottom of the list.
14EE Last NameEE First NameStatusSupervisor
15AbholdDavidexpiredJaschob05/01/2311/08/22######10/01/20
16AbreschFredexpiredHalle######09/21/202/17/2023############Fork/Clamp
17BaehlerJeffreyexpires soonParkinson############
18BakerAndrewexpiredJaschob04/11/2301/04/23######
19Batterman-WoelfelShellyexpiredBuchholz7/7/202005/17/2305/17/23Fork/Clamp
20BaumannBrandonexpiredParkinson04/10/2301/06/23
21BaumgartnerMattexpiredParkinson11/17/22
22BehlingThorstenexpiredLaude############
23BensonCurtisincompleteLaude
24BienashJasonexpiredSmet08/14/23##################2/17/202305/16/23Fork
25BlauErikexpiredSmet12/12/22######12/12/2212/15/2022######Fork
26BoedeMikeexpiredYork05/18/2305/18/235/7/202105/17/23Fork5/19/202107/19/23
27BrooksJohnexpiredJaschob11/02/22
MSQ Tracker
Cell Formulas
RangeFormula
C15:C27C15=IF(A15="","",IF(MAX(E15:AM15, AO15:AP15, AP15:AR15)=0,"incomplete",IF(OR(TODAY()-MIN(E15:AK15,AO15:AU15,AY15)>365,OR(TODAY()-AGGREGATE(5,6,AL15:AM15)>1095,IFERROR(TODAY()-AGGREGATE(5,6,MIN(IF(ISNUMBER(AW15),IF(AW15>0,AW15),"p")))>1095,FALSE))),"expired",IF(OR(AND(TODAY()-MIN(E15:AK15,AO15:AU15,AY15)<365,TODAY()-MIN(E15:AK15,AO15:AU15,AY15)>335),OR(IFERROR(AND(TODAY()-AGGREGATE(5,6,AL15:AM15)<1095,TODAY()-AGGREGATE(5,6,AL15:AM15)>1065),FALSE),OR(IFERROR(TODAY()-AGGREGATE(5,6,MIN(IF(ISNUMBER(AW15),IF(AW15>0,AW15),"p")))<1095,FALSE),IFERROR(TODAY()-AGGREGATE(5,6,MIN(IF(ISNUMBER(AW15),IF(AW15>0,AW15),"p")))>1065,FALSE)))),"expires soon","safety qualified"))))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AL15:AM654,AW15:AW654Expression=ISBLANK(AL15)textNO
AL15:AM654,AW15:AW654Expression=AL15>TODAY()-$A$3textNO
AL15:AM654,AW15:AW654Expression=AL15<TODAY()-$A$2textNO
AL15:AM654,AW15:AW654Expression=AND(AL15<=TODAY()-$A$3)textNO
P15:Z654,AO15:AU654,AY15:AY654Expression=ISBLANK(P15)textNO
C15:C654Cell Valuecontains "Expires Soon"textNO
C15:C654Cell Valuecontains "Expired"textNO
C15:C654Cell Valuecontains "Safety Qualified"textNO
E15:O654,AA15:AK654Expression=ISBLANK(E15)textNO
E15:AK654,AO15:AU654,AY15:AY654Expression=E15>TODAY()-'Safety Qualificaton Elements'!$B$3textNO
E15:AK654,AO15:AU654,AY15:AY654Expression=E15<TODAY()-'Safety Qualificaton Elements'!$B$2textNO
E15:AK654,AO15:AU654,AY15:AY654Expression=AND(E15<=TODAY()-'Safety Qualificaton Elements'!$B$3,E15>=TODAY()-'Safety Qualificaton Elements'!$B$2)textNO
Cells with Data Validation
CellAllowCriteria
E15:AM27Date<='Safety Qualificaton Elements'!$B$4
AY15:AY27Date<='Safety Qualificaton Elements'!$B$4
AW15:AW27Date<='Safety Qualificaton Elements'!$B$4
AO15:AU27Date<='Safety Qualificaton Elements'!$B$4
 
Upvote 0

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
ok, found that issue...
Excel Formula:
=IF(A15="","",IF(MAX(E15:AM15, AO15:AP15, AP15:AR15)=0,"incomplete",IF(OR(TODAY()-MIN(E15:AK15,AO15:AU15,AY15)>365,OR(IFERROR(TODAY()-IF(ISNUMBER(AL15:AM15),IF(AL15:AM15>0,VALUE(AL15:AM15)),"p")>1095,FALSE),IFERROR(TODAY()-IF(ISNUMBER(AW15),IF(AW15>0,VALUE(AW15)),"p")>1095,FALSE))),"expired",IF(OR(AND(TODAY()-MIN(E15:AK15,AO15:AU15,AY15)<365,TODAY()-MIN(E15:AK15,AO15:AU15,AY15)>335),OR(IFERROR(AND(TODAY()-AGGREGATE(5,6,AL15:AM15)<1095,TODAY()-AGGREGATE(5,6,AL15:AM15)>1065),FALSE),OR(IFERROR(TODAY()-AGGREGATE(5,6,MIN(IF(ISNUMBER(AW15),IF(AW15>0,AW15),"p")))<1095,FALSE),IFERROR(TODAY()-IF(ISNUMBER(AW15),IF(AW15>0,VALUE(AW15)),"p")>1065,FALSE)))),"expires soon","safety qualified"))))
 
Upvote 0
ok, found that issue...
Excel Formula:
=IF(A15="","",IF(MAX(E15:AM15, AO15:AP15, AP15:AR15)=0,"incomplete",IF(OR(TODAY()-MIN(E15:AK15,AO15:AU15,AY15)>365,OR(IFERROR(TODAY()-IF(ISNUMBER(AL15:AM15),IF(AL15:AM15>0,VALUE(AL15:AM15)),"p")>1095,FALSE),IFERROR(TODAY()-IF(ISNUMBER(AW15),IF(AW15>0,VALUE(AW15)),"p")>1095,FALSE))),"expired",IF(OR(AND(TODAY()-MIN(E15:AK15,AO15:AU15,AY15)<365,TODAY()-MIN(E15:AK15,AO15:AU15,AY15)>335),OR(IFERROR(AND(TODAY()-AGGREGATE(5,6,AL15:AM15)<1095,TODAY()-AGGREGATE(5,6,AL15:AM15)>1065),FALSE),OR(IFERROR(TODAY()-AGGREGATE(5,6,MIN(IF(ISNUMBER(AW15),IF(AW15>0,AW15),"p")))<1095,FALSE),IFERROR(TODAY()-IF(ISNUMBER(AW15),IF(AW15>0,VALUE(AW15)),"p")>1065,FALSE)))),"expires soon","safety qualified"))))

Now it is not returning expired when it should be for the 1095 days. Everything else looks like it is working.

Machine Safety Qualification Tracker.xlsx
ABCDEFGHIJKLMPQRSTUVAAABACADALAMANAOAPAVAWAXAY
1CONVERTING MACHINESCORRUGATORSHIPPING/BalerPowered Industrial Truck Training
210955376 Martin FFG2402 United RDC2423 Ward RDC2432 Ward RDC5104 Ward FFG5164 Ward FFG5014 LMC FFG1502 2pc StitcherTransfer CartsWet End (RS 7-10 & Trolleys, SF, Splicers)Wet End (RS 3-6 & Trolleys, SF, Splicers)Wet End (RS 1&2 & Trolleys, Trible Stack, Glue Machine)Dry End (DB thru Knife)Dry End (Knife thru Stacker)Corrugator PalletizerStarch RoomPalletizerCentering DeviceStretch WrapperBaler-HoggerPIT Train the Trainer Certified (Expires every 3 years)Supervisor Class Room Training (Expires every 3 years)Operator Class Room Training, Test, & Practical Exercies (Does not expire as long as Annual Eval is completed every year)Fork Lift Annual EvaluationRoll Clamp Truck Annual EvaluationTruck Type CertificationsMEWP Train the Trainer Certified (Expires every 3 years)MEWP Class Room Training, Exam, & Practical EvaluationMEWP Annual Evaluation
3730 Qualified Machine Operators
4
5CONVERTING
6
7
8ONLY SAFETY QUALIFIED EMPLOYEES ARE ALLOWED TO WORK ON ASSIGNED MACHINES
9
10
11
12
13Remove employees by deleting the row. Add new employees at the bottom of the list.
14EE Last NameEE First NameStatusSupervisor
15AbholdDavidsafety qualifiedJaschob05/01/2311/08/2209/23/21
16AbreschFredsafety qualifiedHalle02/02/2309/21/202/17/202305/04/2305/04/23Fork/Clamp
17BaehlerJeffreyexpires soonParkinson06/20/2309/30/20
18BakerAndrewsafety qualifiedJaschob04/11/2301/04/2308/29/23
19Batterman-WoelfelShellysafety qualifiedBuchholz7/7/202005/17/2305/17/23Fork/Clamp
20BaumannBrandonsafety qualifiedParkinson04/10/2301/06/23
21BaumgartnerMattsafety qualifiedParkinson11/17/22
22BehlingThorstensafety qualifiedLaude04/06/2303/06/23
23BensonCurtisincompleteLaude
24BienashJasonsafety qualifiedSmet08/14/2302/24/2302/24/2308/29/232/17/202305/16/23Fork
25BlauEriksafety qualifiedSmet12/12/2203/06/2312/12/2212/15/202204/27/23Fork
26BoedeMikesafety qualifiedYork05/18/2305/18/235/7/202105/17/23Fork5/19/202107/19/23
27BrooksJohnsafety qualifiedJaschob11/02/22
28BruniDanexpires soonSmet10/26/2210/26/223/13/202005/31/23Fork
29BrzezinskiDavidexpires soonJaschob08/17/2310/27/22
30BuchholzAaronsafety qualifiedFLL05/18/2305/18/2306/09/2205/10/2305/10/23Fork/Clamp
31DrewBensafety qualifiedParkinson04/10/2306/13/23
32DuncanNakitaexpiredSmet11/02/2209/18/2309/18/239/7/202309/07/22Fork
33FlynnDavidsafety qualifiedParkinson12/15/22
34GedamkeMarksafety qualifiedYork05/18/2305/18/233/23/201905/19/23Fork11/6/201907/19/23
35GentzSamuelSafety QualifiedBuchholz11/01/2211/01/2211/01/2211/01/2211/01/2211/01/2211/01/22
36GilgenbachRickSafety QualifiedFLL05/18/2305/18/23
37GradyBarryExpiredSmet10/26/2208/29/231/31/202205/31/2309/21/22Fork/Clamp
38GrafAshleySafety QualifiedSmet06/08/2307/25/2307/25/2311/16/202109/08/23Fork
MSQ Tracker
Cell Formulas
RangeFormula
C15:C34C15=IF(A15="","",IF(MAX(E15:AM15, AO15:AP15, AP15:AR15)=0,"incomplete",IF(OR(TODAY()-MIN(E15:AK15,AO15:AU15,AY15)>365,OR(IFERROR(TODAY()-IF(ISNUMBER(AL15:AM15),IF(AL15:AM15>0,VALUE(AL15:AM15)),"p")>1095,FALSE),IFERROR(TODAY()-IF(ISNUMBER(AW15),IF(AW15>0,VALUE(AW15)),"p")>1095,FALSE))),"expired",IF(OR(AND(TODAY()-MIN(E15:AK15,AO15:AU15,AY15)<365,TODAY()-MIN(E15:AK15,AO15:AU15,AY15)>335),OR(IFERROR(AND(TODAY()-AGGREGATE(5,6,AL15:AM15)<1095,TODAY()-AGGREGATE(5,6,AL15:AM15)>1065),FALSE),OR(IFERROR(TODAY()-AGGREGATE(5,6,MIN(IF(ISNUMBER(AW15),IF(AW15>0,AW15),"p")))<1095,FALSE),IFERROR(TODAY()-IF(ISNUMBER(AW15),IF(AW15>0,VALUE(AW15)),"p")>1065,FALSE)))),"expires soon","safety qualified"))))
C35:C38C35=IF(A35="","",IF(MAX(E35:AM35, AO35:AP35, AP35:AR35)=0,"Incomplete", IF(OR(TODAY()-MIN(E35:AK35,AO35:AU35,AY35)>365,IFERROR(OR(TODAY()-AGGREGATE(15,6,AL35:AM35)>1095,TODAY()-AGGREGATE(15,6,AW35)>1095),FALSE)),"Expired", IF(OR( AND(TODAY()-MIN(E35:AK35,AO35:AU35,AY35)<365,TODAY()-MIN(E35:AK35,AO35:AU35,AY35)>335), AND(IFERROR(OR(TODAY()-AGGREGATE(15,6,AL35:AM35)<1095,TODAY()-AGGREGATE(15,6,AL35:AM35)>1065),FALSE),OR(TODAY()-AW35<1095,TODAY()-AW35>1065))),"Expires Soon", "Safety Qualified"))))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AL15:AM647,AW15:AW647Expression=ISBLANK(AL15)textNO
AL15:AM647,AW15:AW647Expression=AL15>TODAY()-$A$3textNO
AL15:AM647,AW15:AW647Expression=AL15<TODAY()-$A$2textNO
AL15:AM647,AW15:AW647Expression=AND(AL15<=TODAY()-$A$3)textNO
P15:Z647,AO15:AU647,AY15:AY647Expression=ISBLANK(P15)textNO
C15:C647Cell Valuecontains "Expires Soon"textNO
C15:C647Cell Valuecontains "Expired"textNO
C15:C647Cell Valuecontains "Safety Qualified"textNO
E15:O647,AA15:AK647Expression=ISBLANK(E15)textNO
E15:AK647,AO15:AU647,AY15:AY647Expression=E15>TODAY()-'Safety Qualificaton Elements'!$B$3textNO
E15:AK647,AO15:AU647,AY15:AY647Expression=E15<TODAY()-'Safety Qualificaton Elements'!$B$2textNO
E15:AK647,AO15:AU647,AY15:AY647Expression=AND(E15<=TODAY()-'Safety Qualificaton Elements'!$B$3,E15>=TODAY()-'Safety Qualificaton Elements'!$B$2)textNO
Cells with Data Validation
CellAllowCriteria
AO15:AU38Date<='Safety Qualificaton Elements'!$B$4
AW15:AW38Date<='Safety Qualificaton Elements'!$B$4
AY15:AY38Date<='Safety Qualificaton Elements'!$B$4
E15:AM38Date<='Safety Qualificaton Elements'!$B$4
 
Upvote 0
Excel Formula:
=IF(A15="","",IF(MAX(E15:AM15, AO15:AP15, AP15:AR15)=0,"incomplete",
IF(OR(TODAY()-MIN(E15:AK15,AO15:AU15,AY15)>365,
OR(
IFERROR(TODAY()-IF(ISNUMBER(AL15),IF(AL15>0,VALUE(AL15)),"p")>1095,FALSE),
IFERROR(TODAY()-IF(ISNUMBER(AM15),IF(AM15>0,VALUE(AM15)),"p")>1095,FALSE),
IFERROR(TODAY()-IF(ISNUMBER(AW15),IF(AW15>0,VALUE(AW15)),"p")>1095,FALSE))),"expired",
IF(OR(
AND(TODAY()-MIN(E15:AK15,AO15:AU15,AY15)<365,TODAY()-MIN(E15:AK15,AO15:AU15,AY15)>335),
OR(
AND(IFERROR(TODAY()-AGGREGATE(5,6,MIN(IF(ISNUMBER(AL15),IF(AL15>0,AL15),"p")))<1095,FALSE),IFERROR(TODAY()-IF(ISNUMBER(AL15),IF(AL15>0,VALUE(AL15)),"p")>1065,FALSE)),
AND(IFERROR(TODAY()-AGGREGATE(5,6,MIN(IF(ISNUMBER(AM15),IF(AM15>0,AM15),"p")))<1095,FALSE),IFERROR(TODAY()-IF(ISNUMBER(AM15),IF(AM15>0,VALUE(AM15)),"p")>1065,FALSE)),
AND(IFERROR(TODAY()-AGGREGATE(5,6,MIN(IF(ISNUMBER(AW15),IF(AW15>0,AW15),"p")))<1095,FALSE),IFERROR(TODAY()-IF(ISNUMBER(AW15),IF(AW15>0,VALUE(AW15)),"p")>1065,FALSE))
)),"expires soon","safety qualified"))))
 
Upvote 0
Excel Formula:
=IF(A15="","",IF(MAX(E15:AM15, AO15:AP15, AP15:AR15)=0,"incomplete",
IF(OR(TODAY()-MIN(E15:AK15,AO15:AU15,AY15)>365,
OR(
IFERROR(TODAY()-IF(ISNUMBER(AL15),IF(AL15>0,VALUE(AL15)),"p")>1095,FALSE),
IFERROR(TODAY()-IF(ISNUMBER(AM15),IF(AM15>0,VALUE(AM15)),"p")>1095,FALSE),
IFERROR(TODAY()-IF(ISNUMBER(AW15),IF(AW15>0,VALUE(AW15)),"p")>1095,FALSE))),"expired",
IF(OR(
AND(TODAY()-MIN(E15:AK15,AO15:AU15,AY15)<365,TODAY()-MIN(E15:AK15,AO15:AU15,AY15)>335),
OR(
AND(IFERROR(TODAY()-AGGREGATE(5,6,MIN(IF(ISNUMBER(AL15),IF(AL15>0,AL15),"p")))<1095,FALSE),IFERROR(TODAY()-IF(ISNUMBER(AL15),IF(AL15>0,VALUE(AL15)),"p")>1065,FALSE)),
AND(IFERROR(TODAY()-AGGREGATE(5,6,MIN(IF(ISNUMBER(AM15),IF(AM15>0,AM15),"p")))<1095,FALSE),IFERROR(TODAY()-IF(ISNUMBER(AM15),IF(AM15>0,VALUE(AM15)),"p")>1065,FALSE)),
AND(IFERROR(TODAY()-AGGREGATE(5,6,MIN(IF(ISNUMBER(AW15),IF(AW15>0,AW15),"p")))<1095,FALSE),IFERROR(TODAY()-IF(ISNUMBER(AW15),IF(AW15>0,VALUE(AW15)),"p")>1065,FALSE))
)),"expires soon","safety qualified"))))


Looks like it is not accounting for 1095-1065 expires soon. See cell AM17

Machine Safety Qualification Tracker.xlsx
ABCDEFGHIJKLMPQRSTUVAAABACADALAMANAOAPAVAWAXAY
1CONVERTING MACHINESCORRUGATORSHIPPING/BalerPowered Industrial Truck Training
210955376 Martin FFG2402 United RDC2423 Ward RDC2432 Ward RDC5104 Ward FFG5164 Ward FFG5014 LMC FFG1502 2pc StitcherTransfer CartsWet End (RS 7-10 & Trolleys, SF, Splicers)Wet End (RS 3-6 & Trolleys, SF, Splicers)Wet End (RS 1&2 & Trolleys, Trible Stack, Glue Machine)Dry End (DB thru Knife)Dry End (Knife thru Stacker)Corrugator PalletizerStarch RoomPalletizerCentering DeviceStretch WrapperBaler-HoggerPIT Train the Trainer Certified (Expires every 3 years)Supervisor Class Room Training (Expires every 3 years)Operator Class Room Training, Test, & Practical Exercies (Does not expire as long as Annual Eval is completed every year)Fork Lift Annual EvaluationRoll Clamp Truck Annual EvaluationTruck Type CertificationsMEWP Train the Trainer Certified (Expires every 3 years)MEWP Class Room Training, Exam, & Practical EvaluationMEWP Annual Evaluation
3730 Qualified Machine Operators
4
5CONVERTING
6
7
8ONLY SAFETY QUALIFIED EMPLOYEES ARE ALLOWED TO WORK ON ASSIGNED MACHINES
9
10
11
12
13Remove employees by deleting the row. Add new employees at the bottom of the list.
14EE Last NameEE First NameStatusSupervisor
15AbholdDavidexpiredJaschob05/01/2311/08/2209/23/2009/23/21
16AbreschFredexpiredHalle02/02/2309/21/202/17/202305/04/2305/04/23Fork/Clamp
17BaehlerJeffreysafety qualifiedParkinson06/20/2310/04/20
18BakerAndrewsafety qualifiedJaschob04/11/2301/04/2308/29/23
19Batterman-WoelfelShellysafety qualifiedBuchholz7/7/202005/17/2305/17/23Fork/Clamp
20BaumannBrandonsafety qualifiedParkinson04/10/2301/06/23
21BaumgartnerMattsafety qualifiedParkinson11/17/22
22BehlingThorstensafety qualifiedLaude04/06/2303/06/23
23BensonCurtisincompleteLaude
24BienashJasonsafety qualifiedSmet08/14/2302/24/2302/24/2308/29/232/17/202305/16/23Fork
25BlauEriksafety qualifiedSmet12/12/2203/06/2312/12/2212/15/202204/27/23Fork
26BoedeMikesafety qualifiedYork05/18/2305/18/235/7/202105/17/23Fork5/19/202107/19/23
27BrooksJohnsafety qualifiedJaschob11/02/22
28BruniDanexpires soonSmet10/26/2210/26/223/13/202005/31/23Fork
29BrzezinskiDavidexpires soonJaschob08/17/2310/27/22
30BuchholzAaronsafety qualifiedFLL05/18/2305/18/2306/09/2205/10/2305/10/23Fork/Clamp
31BuchholzJacqueSafety QualifiedParkinson10/31/22
MSQ Tracker
Cell Formulas
RangeFormula
C15:C30C15=IF(A15="","",IF(MAX(E15:AM15, AO15:AP15, AP15:AR15)=0,"incomplete", IF(OR(TODAY()-MIN(E15:AK15,AO15:AU15,AY15)>365, OR( IFERROR(TODAY()-IF(ISNUMBER(AL15),IF(AL15>0,VALUE(AL15)),"p")>1095,FALSE), IFERROR(TODAY()-IF(ISNUMBER(AM15),IF(AM15>0,VALUE(AM15)),"p")>1095,FALSE), IFERROR(TODAY()-IF(ISNUMBER(AW15),IF(AW15>0,VALUE(AW15)),"p")>1095,FALSE))),"expired", IF(OR( AND(TODAY()-MIN(E15:AK15,AO15:AU15,AY15)<365,TODAY()-MIN(E15:AK15,AO15:AU15,AY15)>335), OR( AND(IFERROR(TODAY()-AGGREGATE(5,6,MIN(IF(ISNUMBER(AL15),IF(AL15>0,AL15),"p")))<1095,FALSE),IFERROR(TODAY()-IF(ISNUMBER(AL15),IF(AL15>0,VALUE(AL15)),"p")>1065,FALSE)), AND(IFERROR(TODAY()-AGGREGATE(5,6,MIN(IF(ISNUMBER(AM15),IF(AM15>0,AM15),"p")))<1095,FALSE),IFERROR(TODAY()-IF(ISNUMBER(AM15),IF(AM15>0,VALUE(AM15)),"p")>1065,FALSE)), AND(IFERROR(TODAY()-AGGREGATE(5,6,MIN(IF(ISNUMBER(AW15),IF(AW15>0,AW15),"p")))<1095,FALSE),IFERROR(TODAY()-IF(ISNUMBER(AW15),IF(AW15>0,VALUE(AW15)),"p")>1065,FALSE)) )),"expires soon","safety qualified"))))
C31C31=IF(A31="","",IF(MAX(E31:AM31, AO31:AP31, AP31:AR31)=0,"Incomplete", IF(OR(TODAY()-MIN(E31:AK31,AO31:AU31,AY31)>365,IFERROR(OR(TODAY()-AGGREGATE(15,6,AL31:AM31)>1095,TODAY()-AGGREGATE(15,6,AW31)>1095),FALSE)),"Expired", IF(OR( AND(TODAY()-MIN(E31:AK31,AO31:AU31,AY31)<365,TODAY()-MIN(E31:AK31,AO31:AU31,AY31)>335), AND(IFERROR(OR(TODAY()-AGGREGATE(15,6,AL31:AM31)<1095,TODAY()-AGGREGATE(15,6,AL31:AM31)>1065),FALSE),OR(TODAY()-AW31<1095,TODAY()-AW31>1065))),"Expires Soon", "Safety Qualified"))))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AL15:AM654,AW15:AW654Expression=ISBLANK(AL15)textNO
AL15:AM654,AW15:AW654Expression=AL15>TODAY()-$A$3textNO
AL15:AM654,AW15:AW654Expression=AL15<TODAY()-$A$2textNO
AL15:AM654,AW15:AW654Expression=AND(AL15<=TODAY()-$A$3)textNO
P15:Z654,AO15:AU654,AY15:AY654Expression=ISBLANK(P15)textNO
C15:C654Cell Valuecontains "Expires Soon"textNO
C15:C654Cell Valuecontains "Expired"textNO
C15:C654Cell Valuecontains "Safety Qualified"textNO
E15:O654,AA15:AK654Expression=ISBLANK(E15)textNO
E15:AK654,AO15:AU654,AY15:AY654Expression=E15>TODAY()-'Safety Qualificaton Elements'!$B$3textNO
E15:AK654,AO15:AU654,AY15:AY654Expression=E15<TODAY()-'Safety Qualificaton Elements'!$B$2textNO
E15:AK654,AO15:AU654,AY15:AY654Expression=AND(E15<=TODAY()-'Safety Qualificaton Elements'!$B$3,E15>=TODAY()-'Safety Qualificaton Elements'!$B$2)textNO
Cells with Data Validation
CellAllowCriteria
E15:AM31Date<='Safety Qualificaton Elements'!$B$4
AY15:AY31Date<='Safety Qualificaton Elements'!$B$4
AW15:AW31Date<='Safety Qualificaton Elements'!$B$4
AO15:AU31Date<='Safety Qualificaton Elements'!$B$4
 
Upvote 0
ok, i changed up the logic on it some. hoping this should do it.
if not, could you please give me the expected results along with the dates so i can test more before posting here?
Excel Formula:
=IF(A15="","",IF(MAX(E15:AM15,AO15:AP15,AP15:AR15)=0,"incomplete",
IF(OR(TODAY()-MIN(E15:AK15,AO15:AU15,AY15)>365,
OR(
IFERROR(TODAY()-IF(ISNUMBER(AL15),IF(AL15>0,VALUE(AL15)),"p")>1095,FALSE),
IFERROR(TODAY()-IF(ISNUMBER(AM15),IF(AM15>0,VALUE(AM15)),"p")>1095,FALSE),
IFERROR(TODAY()-IF(ISNUMBER(AW15),IF(AW15>0,VALUE(AW15)),"p")>1095,FALSE))),"expired",
IF(OR(
TODAY()-MIN(E15:AK15,AO15:AU15,AY15)>335,
OR(
IFERROR(TODAY()-IF(ISNUMBER(AL15),IF(AL15>0,VALUE(AL15)),"p")>1065,FALSE),
IFERROR(TODAY()-IF(ISNUMBER(AM15),IF(AM15>0,VALUE(AM15)),"p")>1065,FALSE),
IFERROR(TODAY()-IF(ISNUMBER(AW15),IF(AW15>0,VALUE(AW15)),"p")>1065,FALSE)
)),"expires soon","safety qualified"))))
 
Upvote 0
Solution
ok, i changed up the logic on it some. hoping this should do it.
if not, could you please give me the expected results along with the dates so i can test more before posting here?
Excel Formula:
=IF(A15="","",IF(MAX(E15:AM15,AO15:AP15,AP15:AR15)=0,"incomplete",
IF(OR(TODAY()-MIN(E15:AK15,AO15:AU15,AY15)>365,
OR(
IFERROR(TODAY()-IF(ISNUMBER(AL15),IF(AL15>0,VALUE(AL15)),"p")>1095,FALSE),
IFERROR(TODAY()-IF(ISNUMBER(AM15),IF(AM15>0,VALUE(AM15)),"p")>1095,FALSE),
IFERROR(TODAY()-IF(ISNUMBER(AW15),IF(AW15>0,VALUE(AW15)),"p")>1095,FALSE))),"expired",
IF(OR(
TODAY()-MIN(E15:AK15,AO15:AU15,AY15)>335,
OR(
IFERROR(TODAY()-IF(ISNUMBER(AL15),IF(AL15>0,VALUE(AL15)),"p")>1065,FALSE),
IFERROR(TODAY()-IF(ISNUMBER(AM15),IF(AM15>0,VALUE(AM15)),"p")>1065,FALSE),
IFERROR(TODAY()-IF(ISNUMBER(AW15),IF(AW15>0,VALUE(AW15)),"p")>1065,FALSE)
)),"expires soon","safety qualified"))))


Just looking at it quick i think that is it!! I appreciate the work you put into this! thank you!
 
Upvote 0
awesome, glad was able to get it to work for you.
happy to help
 
Upvote 0

Forum statistics

Threads
1,215,330
Messages
6,124,310
Members
449,152
Latest member
PressEscape

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top