Excel large function -


i want find x recent results given tennis player in table fields player name (column a), date (column b) , result ("w" or "l" in column c).

i've tried using large function date field in different ways nothing seems work. e.g.

=countifs($a$2:$a$30,"andy murray",$b$2:$b$30,large($b$2:$b$30,{1,2,3,4,5}),$c$2:$c$30,"w")  =and($a$2:$a$30="andy murray",$b$2:$b$30=large($b$2:$b$30,1),$c$2:$c$30="w") 

repeating last 1 when k=2, k=3 etc.

any appreciated.

picture comments

you can this:

=max(if((a2:a18="andy murray")*(c2:c18="w"), b2:b18)) 

or

=max(if(a2:a18="andy murray", b2:b18)) 

note: after putting in formula have hit shift + ctrl + enter on pc or command + enter on mac. important.

the top 1 gives recent win, bottom 1 gives recent game played.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -