Problem: AVERAGEIFS of last x rows matching specific criteria

azairvine

New Member
Joined
Nov 17, 2018
Messages
17
Hi,

I am trying to create a formula that will return the average of specific columns from the last x rows *matching* specific criteria. For example:

https://i.imgur.com/MR2BSbL.jpg

The formula would need to return the average WR (column I) for the last x entries for Deck (column D) - "Meta Spell Hunter" and "Zoo Warlock" for instance.

Here on the statistics tab you can see that I already have the formula for filtering the results for specific Decks (column D), but I'm unable to figure out whether I can nest an INDEX or OFFSET command into this formula?

https://i.imgur.com/kczdv4T.jpg

The goal is to quickly access a trend of the last x games played with a specific deck (this is for Hearthstone if anyone has heard of it) so I can track my recent results - similar to L10 in professional sports.

Here's another one of the existing formulae:
<bdo dir="ltr">=IFERROR(COUNTIFS(Standard!$D$2:$D,B$1,Standard!$J$2:$J,"Win"))/(COUNTIFS(Standard!$D$2:$D,B$1))</bdo>

Somehow in there I want to add the condition to just count the last x entries.

Thank you in advance!
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,223,893
Messages
6,175,241
Members
452,622
Latest member
Laura_PinksBTHFT

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