Formula for defining range based on criteria

JSweet

New Member
Joined
Feb 1, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I am creating a football sports model in Excel. I have a list of the "home" teams in column A and the "away" teams in column B (each row depicts one match between 2 teams). Because this is an entire season, there are obviously several duplicates of the teams in the columns (as a team plays more than once in a season). This also means that all teams will appear more than once in both columns. I am looking for a formula to define the range of a team's last 5 games in the season, so that when I add more matches, it adjusts. Thank you in advance to anyone that can help!!
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
More specifically, the question I'm trying to answer with this formula is "what is the range of *team*'s last 5 matches.
 
Upvote 0

Forum statistics

Threads
1,214,963
Messages
6,122,484
Members
449,088
Latest member
Melvetica

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top