Extract last 6 results for a specific football team

Crafted06

New Member
Joined
Feb 21, 2019
Messages
3
[FONT=&quot]Hello.[/FONT]
[FONT=&quot]I have on the 1st sheet the entire results of the Premier league 2018-2019 fixtures.
They are set up as a table, from column A to D.
Column A = Home team
Column B = Home team score
Column C = Away team score
Column D = Away team
This table has the purpose to be dynamic, as i periodically add at the bottom, the new fixture results.

[/FONT]
[FONT=&quot]I want to extract them on the 2nd sheet in the exact form, but in 3 different tables (for a specific team):
Last 6 results at Home
Last 6 results away
Last 6 results overall
This also needs to be dynamic. As i only want to input data on the 1st sheet.

[/FONT]
[FONT=&quot]I've tried different formulas to extract this, but I didn't manage to do it .
I need help on what formulas should i use and how?[/FONT]
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Put a team name in say cell G2 then these:

Home:

=IFERROR(INDEX(A$2:A$1000,LARGE(IF($A$2:$A$1000=$G$2,ROW($A$2:$A$1000)-ROW($A$2)+1),ROWS($A$1:A1))),"")

Away:

=IFERROR(INDEX(A$2:A$1000,LARGE(IF($D$2:$D$1000=$G$2,ROW($D$2:$D$1000)-ROW($D$2)+1),ROWS($A$1:A1))),"")

Either:

=IFERROR(INDEX(A$2:A$1000,LARGE(IF(($A$2:$A$1000=$G$2)+($D$2:$D$1000=$G$2),ROW($D$2:$D$1000)-ROW($D$2)+1),ROWS($A$1:A1))),"")

All need entry via CTRL-SHIFT-ENTER not just enter or they wont work. Drag across and down. It assumes the scores start in A2 and ive used row 1000 as the last row to test. If you have more data than that change it to a larger more appropriate number.
 
Upvote 0

Forum statistics

Threads
1,216,113
Messages
6,128,905
Members
449,477
Latest member
panjongshing

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