Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Conditional Formatting Based on Time Stamp

Avatar of mrherndon
mrherndon asked on
ProgrammingMicrosoft ExcelVB Script
5 Comments1 Solution544 ViewsLast Modified:
Attached is a spreadsheet set up to record barcode scans and assign time stamps for inventory checkout.

A badge number is scanned or input in column A, the timestamp automatically appears in Column B, and then the PPE equipment barcode is scanned for column C.  And then the cursor advances to the next row.

I would like some help in modifying so that when a particular PPE equipment value is entered in column C, it will check if the same value was already assigned to the column A badge value within a certain time period.

For instance, the value in C might be "FREEZER".  From the first time a particular badge value in A is tied to that value in C, that entry should not repeat for a year.  If the entry falls within less than a year from the timestamp of the first badge-equipment combo, then it should be highlighted in bold and red.

So, if a record was Badge 1, Freezer on 8/28...and then Badge 1 tried to be associated with Freezer again on 10/10, the entry would come back in bold red.

Possible values for C and their time limits before repeat follow:

FREEZER - 1 YEAR
THAW - 1 YEAR
LABEL - 6 MONTHS
QC - 6 MONTHS
5TRASH - 12 HOURS
10TRASH - 12 HOURS
BOOTS - 6 MONTHS
SAFEGLASSES - 3 MONTHS
SAFEVEST - 3 MONTHS
BUMPCAP - 6 MONTHS
FREEZERGLOVES - 1 WEEK
RUBBERGLOVES - 1 WEEK
SANITATION - 6 MONTHS
RETORT - 6 MONTHS
PACKING - 6 MONTHS

Can someone help?
ASKER CERTIFIED SOLUTION
Avatar of Rgonzo1971
Commented:
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answers