4
I have two sheets:
- Users in their respective groups and
- A compilation of those same users with an expiration date.
I'd like to highlight any cell in the the first sheet if their respective date is less than the current day.
EDIT
Using tylyn's formula, I'm trying to add a secondary rule that compares today's date and the date listed in the table and if that number is less than 30 days, format a different color.
Here is what I tried: =VLOOKUP(A1,'Sheet name 2'!$A$1:$B$1000,2,FALSE)>TODAY()*TODAY()-VLOOKUP(A1,'Sheet Name 2'!$A$1:$B$1000,2,FALSE)<30
Also tried: =DATEIF(TODAY(),VLOOKUP(A1,'Sheet name 2'!$A$1:$B$1000,2,FALSE),"D")<30
FINAL EDIT
If I had used DATEDIF instead of DATEIF, it would have worked
Wow, I had it, except that I used DATEIF, instead of DATEDIF. Changing that fixed the issue. In your last screenshot yaer should be red (since the date has passed) but I have a theory on that. You mention yadyr was an incorrect date, why? Is it because out of 11/15/2014, you took 15 to be the month instead of the day? Just curious if Excel has regional differences (I am aware that day/month/year is common outside of America). – dzampino – 2014-05-28T19:02:55.517
@MattSteelblade Ah... I'm from UK, so I am in the format dd/mm/yyyy. I didn't think about outside UK. So all you need to do is format your cells in the format mm/dd/yyyy. Go to format cells > Date > change the format (I'm not on my windows computer now, so I don't know if those are exactly the steps, but you'll be able to figure it out! Strangely, I didn't even see your 'ALSO TRIED', I only saw the first edit, and I don't even know what you did there, so I added my own answer... But yes, all you needed to do was say
DIF
notIF
. Please +1 if you found my answer helpful :) – ᔕᖺᘎᕊ – 2014-05-28T19:23:54.827