Reputation: 35
I am trying to match products in two different tables by their product name and date/time. I'm looking to find a match between column A & K if the date in column C occurred 24 hours BEFORE column L.
I have attached a picture of the matches I'm looking for & highlighted the ones that should result in a match.
thank you in advance for your help - this is far more advance than my knowledge of excel unfortunately, so I really appreciate the assistance.
Upvotes: 2
Views: 110
Reputation: 50008
This can be accomplished with COUNTIFS
.
=IF(COUNTIFS($K$2:$K$8,A2,$L$2:$L$8,">="&C2,$L$2:$L$8,"<="&C2+1)>0,A2,"")
Upvotes: 3