ninjapaping
New Member
- Joined
- Aug 6, 2024
- Messages
- 11
- Office Version
- 365
- Platform
- Windows
Cell Formulas | ||
---|---|---|
Range | Formula | |
B2:B4 | B2 | = ((YEAR(TODAY())-YEAR(A2))-MOD(YEAR(TODAY())-YEAR(A2), 5))/5 |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
B2:B4 | Other Type | DataBar | NO |
Book1 | |||
---|---|---|---|
A | |||
2 | 03/06/2013 | ||
3 | 17/08/2009 | ||
4 | 14/06/2018 | ||
5 | 15/06/1999 | ||
6 | 16/06/2003 | ||
7 | 17/06/2018 | ||
Sheet1 |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
A2:A7 | Expression | =A2<=EDATE(TODAY(),-(12*25)) | text | YES |
A2:A7 | Expression | =A2<=EDATE(TODAY(),-(12*20)) | text | YES |
A2:A7 | Expression | =A2<=EDATE(TODAY(),-(12*15)) | text | YES |
A2:A7 | Expression | =A2<=EDATE(TODAY(),-(12*10)) | text | YES |
thanks for this input @MARK858Maybe something like...
Book1
A 2 03/06/2013 3 17/08/2009 4 14/06/2018 5 15/06/1999 6 16/06/2003 7 17/06/2018 Sheet1
Cells with Conditional Formatting Cell Condition Cell Format Stop If True A2:A7 Expression =A2<=EDATE(TODAY(),-(12*25)) text YES A2:A7 Expression =A2<=EDATE(TODAY(),-(12*20)) text YES A2:A7 Expression =A2<=EDATE(TODAY(),-(12*15)) text YES A2:A7 Expression =A2<=EDATE(TODAY(),-(12*10)) text YES
it worked, but it covers all days between 10th to 11th year. let me request more, let's just focus on the year. that is todays year is 2024, i want to format all employees hired in 2014, 2009, 2004 and so on. thanks for your patience.Formula for 10 years, change the 10 and 11 for each other category, format to suit.
Excel Formula:=AND(A2<=EDATE(TODAY(),-(12*10)),A2>EDATE(TODAY(),-(12*11)))
HAHA. I JUST FINISHED MODIFYING YOUR PREVIOUS FORMULA. AND I GOT WHAT I WANTActually you could probably use something like
and change the 10 for each categoryExcel Formula:=YEAR(A2)=YEAR(TODAY())-10