Hi there!
I'm calculating some basketball data and want to easily return whether a team has played the night before or not. Here is a sample of my data:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]date[/TD]
[TD]home team[/TD]
[TD]away team[/TD]
[TD]home team rest[/TD]
[TD]away team rest[/TD]
[/TR]
[TR]
[TD]4/1[/TD]
[TD]bulls[/TD]
[TD]bucks[/TD]
[TD]y[/TD]
[TD]y[/TD]
[/TR]
[TR]
[TD]4/1[/TD]
[TD]nets[/TD]
[TD]knicks[/TD]
[TD]y[/TD]
[TD]y[/TD]
[/TR]
[TR]
[TD]4/2[/TD]
[TD]warriors[/TD]
[TD]bucks[/TD]
[TD]y[/TD]
[TD]n[/TD]
[/TR]
[TR]
[TD]4/2[/TD]
[TD]nets[/TD]
[TD]celtics[/TD]
[TD]n[/TD]
[TD]y[/TD]
[/TR]
[TR]
[TD]4/3[/TD]
[TD]knicks[/TD]
[TD]bulls[/TD]
[TD]y[/TD]
[TD]y[/TD]
[/TR]
[TR]
[TD]4/3[/TD]
[TD]celtics[/TD]
[TD]warriors[/TD]
[TD]n[/TD]
[TD]n[/TD]
[/TR]
</tbody>[/TABLE]
So I'm trying to create a formula for the two right columns. I want to lookup when the last occurrence of column B & column C was and return a "y" if the date was more than 1 day before column A, and a "n" if the date was the day before. This is also a bit tricky being that my data is a sorted by date and not in a team order.
Any help would be greatly appreciated!
Thank you.
I'm calculating some basketball data and want to easily return whether a team has played the night before or not. Here is a sample of my data:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]date[/TD]
[TD]home team[/TD]
[TD]away team[/TD]
[TD]home team rest[/TD]
[TD]away team rest[/TD]
[/TR]
[TR]
[TD]4/1[/TD]
[TD]bulls[/TD]
[TD]bucks[/TD]
[TD]y[/TD]
[TD]y[/TD]
[/TR]
[TR]
[TD]4/1[/TD]
[TD]nets[/TD]
[TD]knicks[/TD]
[TD]y[/TD]
[TD]y[/TD]
[/TR]
[TR]
[TD]4/2[/TD]
[TD]warriors[/TD]
[TD]bucks[/TD]
[TD]y[/TD]
[TD]n[/TD]
[/TR]
[TR]
[TD]4/2[/TD]
[TD]nets[/TD]
[TD]celtics[/TD]
[TD]n[/TD]
[TD]y[/TD]
[/TR]
[TR]
[TD]4/3[/TD]
[TD]knicks[/TD]
[TD]bulls[/TD]
[TD]y[/TD]
[TD]y[/TD]
[/TR]
[TR]
[TD]4/3[/TD]
[TD]celtics[/TD]
[TD]warriors[/TD]
[TD]n[/TD]
[TD]n[/TD]
[/TR]
</tbody>[/TABLE]
So I'm trying to create a formula for the two right columns. I want to lookup when the last occurrence of column B & column C was and return a "y" if the date was more than 1 day before column A, and a "n" if the date was the day before. This is also a bit tricky being that my data is a sorted by date and not in a team order.
Any help would be greatly appreciated!
Thank you.