Forum Discussion
conditional formula excel
Hi
I have a question and need help find 3 items
1) How use conditional formula and highlight the month based on the DOB
2) How to use conditional formula to highlight in the month turn first 60 based on the birth month (eg the last row should highlight Jan - 60)
Thank you
Birth date | Dec 23 | Jan 24 | Feb 24 | Mar 24 | Apr 24 | May 24 | Jun 24 | Jul 24 | Aug 24 | Sep 24 | Oct 24 | Nov 24 | Dec 24 |
3/23/1948 | 75 | 75 | 75 | 76 | 76 | 76 | 76 | 76 | 76 | 76 | 76 | 76 | 76 |
2/5/1956 | 67 | 67 | 68 | 68 | 68 | 68 | 68 | 68 | 68 | 68 | 68 | 68 | 68 |
1/31/1964 | 59 | 60 | 60 | 60 | 60 | 60 | 60 | 60 | 60 | 60 | 60 | 60 | 60 |
2 Replies
- BA_MaxIron Contributor
1) You can use MONTH within conditional formatting - i.e.,
MONTH(A1) = 2
2) This would be easier done if you just used full dates within the top row rather than "Jan 24". You can use formatting to make it appear as Jan 24 after the fact. Doing it this way, you can simply do EDATE and MOD to check if the multiple is of 12 then minus one from the other and round down to see if it's 60.
=( (MOD(EDATE(A1,B1),12) = 0) * ((B1 - A1) > 60) )
I believe something like that should work but I've not tested it - hopefully the idea carries in the formula.