How to return a true/false based on an entire row of cells containing dates, looking for any date that is expired

christinacoleman79

New Member
Joined
Feb 29, 2024
Messages
8
Office Version
  1. 2021
Platform
  1. Windows
I am working on a training matrix to track an entire crew's marine certifications. Is it possible for me to have a column showing if they are in compliance or not according to all of their certification dates listed in a row of cells?
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
yes,
you can use conditional formatting and colour the cells - or in a new column - flag they are not in compliance with text
BUT, if you can provide
A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.
Then its possible to show you various formulas
there maybe be better ways to set out the data - but again I dont know how many certificates are needed

Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.
we can use today() to see todays date and then depending on how old , flag the cell - so if the certificate needs to be renewed say every year
=cell with date <= today-365
that will flag if less than 365 days - BUT we can use DATE(year(today())-1,month(today()),day(today()) )
to go back exactly 1 year - or go back x years or x months

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
 
Upvote 0
yes,
you can use conditional formatting and colour the cells - or in a new column - flag they are not in compliance with text
BUT, if you can provide
A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.
Then its possible to show you various formulas
there maybe be better ways to set out the data - but again I dont know how many certificates are needed

Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.
we can use today() to see todays date and then depending on how old , flag the cell - so if the certificate needs to be renewed say every year
=cell with date <= today-365
that will flag if less than 365 days - BUT we can use DATE(year(today())-1,month(today()),day(today()) )
to go back exactly 1 year - or go back x years or x months

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone

Please see link below for sample spreadsheet.

 
Upvote 0
ok, so you can see blanks using
=COUNTIF(H7:BA7,"")>0

and then the dates are less then today()
=COUNTIF(H7:BA7,"<"&TODAY())
BUT need to also make sure the ONCE is not counted
=COUNTIFS(H7:BA7,"<"&TODAY(),H$5:BA$5,"<>"&"once")
if the date in the "once" cell is blank - it will be flagged by the previous condition

so use an OR()

=OR( COUNTIF(H7:BA7,"")>0, COUNTIFS(H7:BA7,"<"&TODAY(),H$5:BA$5,"<>"&"once")>0 )

can be used in conditional formatting


then you will get TRUE or FALSE
or can be combined in an IF

a small extraction for XL2BB

Coleman_Practice Matrix-ETAF.xlsx
ABCDEFGHIJ
1Bloodborne PathogensHearing ConservationRespirator Trainning (All Employees) (Fit Test as needed)
2
3
4RBT-JANRBT-FEBRBT-FEB
52/29/24Monthly RBT Items Client Required ItemsTrackingSome Items are Position SpecificAnnualAnnualAnnual
6NameHire/Trans DateCrewPositionDepartmentEmp #In ComplianceBloodborne PathogensHearing ConservationRespirator Trainning (All Employees) (Fit Test as needed)
7Employee 1A1ToolpusherDrilling7623FALSE31-Dec-243-Feb-253-Feb-25
8Employee 2A1ToolpusherDrilling14605FALSE30-Dec-243-Feb-253-Feb-25
9Employee 3A1DrillerDrilling13311FALSE30-Dec-243-Feb-253-Feb-25
10Employee 4A1DrillerDrilling12132FALSE30-Dec-243-Feb-253-Feb-25
11Employee 5A1Driller TraineeDrilling10325TRUE30-Dec-243-Feb-253-Feb-25
NEW Matrix
Cell Formulas
RangeFormula
A5A5=TODAY()
H6:J6H6=H1
G7:G11G7=OR( COUNTIF(H7:BA7,"")>0, COUNTIFS(H7:BA7,"<"&TODAY(),H$5:BA$5,"<>"&"once")>0 )
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AP10:AQ10,H10,AE10:AN10,S10:T10,AC10,M10:O10,V10:AA10,K10Cell Valuebetween NOW() and NOW()+30textNO
AP10:AQ10,H10,AE10:AN10,S10:T10,AC10,M10:O10,V10:AA10,K10Cell Value<NOW()textNO
H7:H9Cell Valuebetween NOW() and NOW()+30textNO
H7:H9Cell Value<NOW()textNO
AY8,BA8,AY11:AY13,BA11:BA14,AY16,BA16,O33,AW8:AW9,I7:Q7,AE9:AS9,AD9:AD10,K11:K19,I8:K8,P8:Q19,S11:T19,M8:O9,M11:O19,L8:L19,M28:O32,M33,M34:O36,S7:T9,R7:R19,V7:AS8,V11:AS19,V9:AC9,U7:U19,AX17:BA20,K9,AU24:AZ24,H28:L36,P28:AS36,H11:H23,K20:AS23,AY21:AY23Cell Valuebetween NOW() and NOW()+30textNO
AY8,BA8,AY11:AY13,BA11:BA14,AY16,BA16,O33,AW8:AW9,I7:Q7,AE9:AS9,AD9:AD10,K11:K19,I8:K8,P8:Q19,S11:T19,M8:O9,M11:O19,L8:L19,M28:O32,M33,M34:O36,S7:T9,R7:R19,V7:AS8,V11:AS19,V9:AC9,U7:U19,AX17:BA20,K9,AU24:AZ24,H28:L36,P28:AS36,H11:H23,K20:AS23,AY21:AY23Cell Value<NOW()textNO


also added the full spreadsheet to dropbox as a share , but only on share for a few days

BUT if you want to flag that somethign is due to run out
you could change today()
to maybe a week before or a month before
today()-7

if that does not work , please explain why and give expected results
 
Upvote 0
Solution
ok, so you can see blanks using
=COUNTIF(H7:BA7,"")>0

and then the dates are less then today()
=COUNTIF(H7:BA7,"<"&TODAY())
BUT need to also make sure the ONCE is not counted
=COUNTIFS(H7:BA7,"<"&TODAY(),H$5:BA$5,"<>"&"once")
if the date in the "once" cell is blank - it will be flagged by the previous condition

so use an OR()

=OR( COUNTIF(H7:BA7,"")>0, COUNTIFS(H7:BA7,"<"&TODAY(),H$5:BA$5,"<>"&"once")>0 )

can be used in conditional formatting


then you will get TRUE or FALSE
or can be combined in an IF

a small extraction for XL2BB

Coleman_Practice Matrix-ETAF.xlsx
ABCDEFGHIJ
1Bloodborne PathogensHearing ConservationRespirator Trainning (All Employees) (Fit Test as needed)
2
3
4RBT-JANRBT-FEBRBT-FEB
52/29/24Monthly RBT Items Client Required ItemsTrackingSome Items are Position SpecificAnnualAnnualAnnual
6NameHire/Trans DateCrewPositionDepartmentEmp #In ComplianceBloodborne PathogensHearing ConservationRespirator Trainning (All Employees) (Fit Test as needed)
7Employee 1A1ToolpusherDrilling7623FALSE31-Dec-243-Feb-253-Feb-25
8Employee 2A1ToolpusherDrilling14605FALSE30-Dec-243-Feb-253-Feb-25
9Employee 3A1DrillerDrilling13311FALSE30-Dec-243-Feb-253-Feb-25
10Employee 4A1DrillerDrilling12132FALSE30-Dec-243-Feb-253-Feb-25
11Employee 5A1Driller TraineeDrilling10325TRUE30-Dec-243-Feb-253-Feb-25
NEW Matrix
Cell Formulas
RangeFormula
A5A5=TODAY()
H6:J6H6=H1
G7:G11G7=OR( COUNTIF(H7:BA7,"")>0, COUNTIFS(H7:BA7,"<"&TODAY(),H$5:BA$5,"<>"&"once")>0 )
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AP10:AQ10,H10,AE10:AN10,S10:T10,AC10,M10:O10,V10:AA10,K10Cell Valuebetween NOW() and NOW()+30textNO
AP10:AQ10,H10,AE10:AN10,S10:T10,AC10,M10:O10,V10:AA10,K10Cell Value<NOW()textNO
H7:H9Cell Valuebetween NOW() and NOW()+30textNO
H7:H9Cell Value<NOW()textNO
AY8,BA8,AY11:AY13,BA11:BA14,AY16,BA16,O33,AW8:AW9,I7:Q7,AE9:AS9,AD9:AD10,K11:K19,I8:K8,P8:Q19,S11:T19,M8:O9,M11:O19,L8:L19,M28:O32,M33,M34:O36,S7:T9,R7:R19,V7:AS8,V11:AS19,V9:AC9,U7:U19,AX17:BA20,K9,AU24:AZ24,H28:L36,P28:AS36,H11:H23,K20:AS23,AY21:AY23Cell Valuebetween NOW() and NOW()+30textNO
AY8,BA8,AY11:AY13,BA11:BA14,AY16,BA16,O33,AW8:AW9,I7:Q7,AE9:AS9,AD9:AD10,K11:K19,I8:K8,P8:Q19,S11:T19,M8:O9,M11:O19,L8:L19,M28:O32,M33,M34:O36,S7:T9,R7:R19,V7:AS8,V11:AS19,V9:AC9,U7:U19,AX17:BA20,K9,AU24:AZ24,H28:L36,P28:AS36,H11:H23,K20:AS23,AY21:AY23Cell Value<NOW()textNO


also added the full spreadsheet to dropbox as a share , but only on share for a few days

BUT if you want to flag that somethign is due to run out
you could change today()
to maybe a week before or a month before
today()-7

if that does not work , please explain why and give expected results
Thank you so much for your assistance.
 
Upvote 0
is there a way to ignore the "N/A" and still return a true or false based on the blanks or dates? I have to use "N/A" or "X" for those that do not pertain to certain positions.
 
Upvote 0
X and N/A should be ignored , and so still a FALSE as its NOT a Blank , nor is it a DATE

can you give an example of where this is returning a TRUE ????

I have changed row7 to a X and a N/A and you can see still FALSE

Coleman_Practice Matrix-ETAF.xlsx
FGHIJ
1Bloodborne PathogensHearing ConservationRespirator Trainning (All Employees) (Fit Test as needed)
2
3
4RBT-JANRBT-FEBRBT-FEB
5Some Items are Position SpecificAnnualAnnualAnnual
6Emp #In ComplianceBloodborne PathogensHearing ConservationRespirator Trainning (All Employees) (Fit Test as needed)
77623FALSExN/A3-Feb-25
814605FALSE30-Dec-243-Feb-253-Feb-25
913311FALSE30-Dec-243-Feb-253-Feb-25
1012132FALSE30-Dec-243-Feb-253-Feb-25
NEW Matrix
Cell Formulas
RangeFormula
H6:J6H6=H1
G7:G10G7=OR( COUNTIF(H7:BA7,"")>0, COUNTIFS(H7:BA7,"<"&TODAY(),H$5:BA$5,"<>"&"once")>0 )
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AP10:AQ10,H10,AE10:AN10,S10:T10,AC10,M10:O10,V10:AA10,K10Cell Valuebetween NOW() and NOW()+30textNO
AP10:AQ10,H10,AE10:AN10,S10:T10,AC10,M10:O10,V10:AA10,K10Cell Value<NOW()textNO
H7:H9Cell Valuebetween NOW() and NOW()+30textNO
H7:H9Cell Value<NOW()textNO
AY8,BA8,AY11:AY13,BA11:BA14,AY16,BA16,O33,AW8:AW9,I7:Q7,AE9:AS9,AD9:AD10,K11:K19,I8:K8,P8:Q19,S11:T19,M8:O9,M11:O19,L8:L19,M28:O32,M33,M34:O36,S7:T9,R7:R19,V7:AS8,V11:AS19,V9:AC9,U7:U19,AX17:BA20,K9,AU24:AZ24,H28:L36,P28:AS36,H11:H23,K20:AS23,AY21:AY23Cell Valuebetween NOW() and NOW()+30textNO
AY8,BA8,AY11:AY13,BA11:BA14,AY16,BA16,O33,AW8:AW9,I7:Q7,AE9:AS9,AD9:AD10,K11:K19,I8:K8,P8:Q19,S11:T19,M8:O9,M11:O19,L8:L19,M28:O32,M33,M34:O36,S7:T9,R7:R19,V7:AS8,V11:AS19,V9:AC9,U7:U19,AX17:BA20,K9,AU24:AZ24,H28:L36,P28:AS36,H11:H23,K20:AS23,AY21:AY23Cell Value<NOW()textNO
 
Upvote 0
What about counting the number of missing or expired of each certificate in the columns? I don't mean to ask but I am self-taught with what I do know, and I have never used some of these formulas.
 
Upvote 0
can you explain, not sure what you mean here exactly
What about counting the number of missing or expired of each certificate in the columns?

I don't mean to ask but I am self-taught with what I do know, and I have never used some of these formulas.

more than happy to explain as best i can - or point to a website , which can explain better
mrexcel also has a youtube channel
 
Upvote 0

Forum statistics

Threads
1,216,221
Messages
6,129,585
Members
449,520
Latest member
TBFrieds

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