Find most recent data entry and input values in that row

Jzfbkr

New Member
Joined
Aug 4, 2014
Messages
29
I'm looking to find the 5 last data entries that meet a criteria. In this case its the name of a team.

So when the team name is: TEAM A

Return the last 5 fixture dates and corresponding information. DATA,FIXTURE,SCORELINE

My table is presented as such:


[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Fixture[/TD]
[TD]Team[/TD]
[TD]Home Score[/TD]
[TD]Away Score[/TD]
[/TR]
[TR]
[TD]13/09/2014[/TD]
[TD]TEAM A V TEAM B[/TD]
[TD]TEAM A[/TD]
[TD]3[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]13/09/2014[/TD]
[TD]TEAM A V TEAM B[/TD]
[TD]TEAM B[/TD]
[TD]1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]20/09/2014[/TD]
[TD]TEAM C V TEAM A[/TD]
[TD]TEAM C[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]20/09/2014[/TD]
[TD]TEAM C V TEAM A[/TD]
[TD]TEAM A[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]









with in the given example the formula must recognise the 5 most recent dates and return the date, fixture, scoreline and teams for each.

Any help on this would be massively appreciated
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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