Average If - 3 most recent dates

ExcelRaceRatings

New Member
Joined
Jan 9, 2016
Messages
25
Office Version
  1. 2016
Platform
  1. Windows
Hello,

I have a Horse Racing example (please refer to picture) where i would love some advice on how to average a horses rating using criteria based on it's 3 most recent performances.

1) In H4 i would like to obtain an average of the horses rating (Column F) based on it's last 3 most recent starts (Column A) at the NCLE track (Column C)
2) In I4 i would like to do the above except i would like an average of the horses last 3 ratings over 1100m.
3) In J4 an average of the horses rating based on it's 3 most recent starts on a "Soft6" track
4) In K4 like all of the above the same thing expect this time an average of the horses last 3 most recent ratings when carrying 57kg.

I'd be highly grateful if anyone could provide me the most suitable formulas to return the above?

Cheers
 

Attachments

  • Ratings.PNG
    Ratings.PNG
    31.7 KB · Views: 13

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi, next time you post you might want to consider using XL2BB to post your example data rather than post an image. This enables your potential helpers to copy the data into Excel for testing without having to manually re-typing it.

Also, when posting example data, it helps if you show what your expected results are in relation to that example data as this gives your potential helpers a way of checking they are on the right track.

With all that said - perhaps you can try these.

Book2
ABCDEFGHIJK
1
2dateDistTrackWeightCondratingTrackDistCondWeight
326/03/20211000mother55.5s749.4NCLE1100ms657
412/02/20221000mother55.5s541.238.13333339.238.3537.533333
514/04/20211100mother55.5g340.8
619/02/20211000mother55.5s740.4
701/01/2022900mother55g440.1
807/08/2021900mNCLE59g439.7
905/03/20211100mNCLE55s539
1022/01/20211000mother56.5g438.8
1112/01/20221100mother56.5s638.8
1226/02/20221100mother57h1038
1312/02/20211100mother56.5s537.8
1415/01/2021900mother55.5g437.6
1502/02/20221000mother57s637.9
1628/05/20201100mother57h836.7
1713/12/2020900mother54.5g436.4
1812/05/20201000mother55.5g435.9
1919/12/20191000mother56.5g435.7
2018/12/2021900mNCLE58g435.7
2129/12/20201000mother56.5h535.1
Sheet1
Cell Formulas
RangeFormula
H4H4=AVERAGEIFS($F$3:$F$21,$A$3:$A$21,">="&AGGREGATE(14,6,$A$3:$A$21/($C$3:$C$21=H3),MIN(3,COUNTIFS($C$3:$C$21,H3))),$C$3:$C$21,H3)
I4I4=AVERAGEIFS($F$3:$F$21,$A$3:$A$21,">="&AGGREGATE(14,6,$A$3:$A$21/($B$3:$B$21=I3),MIN(3,COUNTIFS($B$3:$B$21,I3))),$B$3:$B$21,I3)
J4J4=AVERAGEIFS($F$3:$F$21,$A$3:$A$21,">="&AGGREGATE(14,6,$A$3:$A$21/($E$3:$E$21=J3),MIN(3,COUNTIFS($E$3:$E$21,J3))),$E$3:$E$21,J3)
K4K4=AVERAGEIFS($F$3:$F$21,$A$3:$A$21,">="&AGGREGATE(14,6,$A$3:$A$21/($D$3:$D$21=K3),MIN(3,COUNTIFS($D$3:$D$21,K3))),$D$3:$D$21,K3)
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,981
Members
448,934
Latest member
audette89

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