Computer Learning Zone CLZ Access Excel Word Windows

Logic is the beginning of wisdom, not the end.

-Spock
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Excel Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Anniversary Date Recognition Formula
Brett 

16 years ago
I am using Excel 2007...and I have an excel spreadsheet with the hire dates in the format of dd/mm/yy under column C2.. when an employee hits the following anniversaries: 1 year, 5 year, 10 year, 15 year, 20 year, etc. I would like the field to be highlighted so it brings it to my attention and I can recognize them. Is there a way to do this?  I would appreciate any help you may provide.  Thank you for your time.


Answer from Richard Rost:

Here's a SIMPLE way that won't require any programming.

Lets say you have the date in column A. Make column B for your 1-year anniversary:

=IF(AND(MONTH(A1)=MONTH(TODAY()),DAY(A1)=DAY(TODAY()),YEAR(A1)=YEAR(TODAY())-1),TRUE,FALSE)

This compares the month, day, and year and if TODAY is the same month and day, but one year less (the -1) then put a TRUE here, otherwise a FALSE.

Now, you can substitute any values you want (even leave false BLANK with a "") and then just use some outrageous colors via CONDITIONAL FORMATING to make the true values stand out.

You can easily copy this formula for years 5, 10, 20, etc.

I hope this helps. It's the easiest non-programming solution I could think of. Anything else would involve a custom VBA function.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Excel Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/18/2026 10:57:05 AM. PLT: 1s