Hi,
I have a large data table of sporting events that I am trying to extract details of the top 10 events based on number of viewers.
Here is a simplified version of the formula I have tried. For the purposes of the below, I am trying to deliver the value in column A (event name) that corresponds to the largest value in column D (number of viewers) that satisfies the two if statements, B (sport) and C (date).
{=INDEX(A10:A20,MATCH(LARGE(IF(B10:B20=$A$1,IF(C10:C20=$B$,(D10:D20))),1),D10:D20,0))}
{=INDEX(A10:A20,MATCH(LARGE(IF(B10:B20=$A$1,IF(C10:C20=$B$,(D10:D20))),2),D10:D20,0))}
{=INDEX(A10:A20,MATCH(LARGE(IF(B10:B20=$A$1,IF(C10:C20=$B$,(D10:D20))),3),D10:D20,0))}
etc.
The values that are returned seem to only satisfy one of the criteria, i.e. either the sport or the data. For example, when A1=Tennis, it is still returning Football events.
Can anyone shed any light on where I am going wrong with this?
Thanks in advance
Bookmarks