Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel formulas

I want to find the X most recent results for a given tennis player in a table like the one in this link: https://www.flickr.com/photos/134075.../shares/SM921b

So the desired result would be e.g. 'of Andy Murray's 10 most recent games, 6 were wins and 4 were losses'.

I've tried using the large function with the date field in different ways but nothing seems to 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 this last one when k=2, k=3 etc.

Everything I've tried has returned either error messages or incorrect results. Any help would be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 99
Default Excel formulas

hi,

the formula is an array formula to insert with CTRL+Shift+Enter
=SUMPRODUCT(($A$2:$A$30="andy
murray")*($C$2:$C$30="W")*($B$2:$B$30=LARGE(IF(A2 :A30="andy murray",B2:B30),10)))

isabelle

Le 2015-06-17 23:16, echounlucky a écrit :
I want to find the X most recent results for a given tennis player in a table like the one in this link:

https://www.flickr.com/photos/134075.../shares/SM921b

So the desired result would be e.g. 'of Andy Murray's 10 most recent games, 6 were wins and 4 were losses'.

I've tried using the large function with the date field in different ways but nothing seems to 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 this last one when k=2, k=3 etc.

Everything I've tried has returned either error messages or incorrect results. Any help would be greatly appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 99
Default Excel formulas

in cases where there would be less than 10 results

=SUMPRODUCT(($A$2:$A$30="andy
murray")*($C$2:$C$30="W")*($B$2:$B$30=LARGE(IF(A2 :A30="andy
murray",B2:B30),MIN(COUNTIF(A2:A20,"andy murray"),10))))

isabelle

Le 2015-06-18 09:26, isabelle a écrit :
hi,

the formula is an array formula to insert with CTRL+Shift+Enter
=SUMPRODUCT(($A$2:$A$30="andy
murray")*($C$2:$C$30="W")*($B$2:$B$30=LARGE(IF(A2 :A30="andy murray",B2:B30),10)))

isabelle

Le 2015-06-17 23:16, echounlucky a écrit :
I want to find the X most recent results for a given tennis player in a table
like the one in this link:

https://www.flickr.com/photos/134075.../shares/SM921b

So the desired result would be e.g. 'of Andy Murray's 10 most recent games, 6
were wins and 4 were losses'.

I've tried using the large function with the date field in different ways but
nothing seems to 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 this last one when k=2, k=3 etc.

Everything I've tried has returned either error messages or incorrect results.
Any help would be greatly appreciated.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel formulas

That seems to work, thank you! :)
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 99
Default Excel formulas

thank you for your reply, i'm glad i could help
isabelle

Le 2015-06-18 19:39, echounlucky a écrit :
That seems to work, thank you! :)

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting # of Formulas in a column with formulas and entered data Brand Excel Worksheet Functions 1 October 10th 09 01:01 PM
ms-excel guidence notes, complete formulas in excel, How to runmacros in Ms excel [email protected] Excel Discussion (Misc queries) 0 June 14th 08 03:19 PM
CELLS NOT CALC FORMULAS - VALUES STAY SME FORMULAS CORRECT?? HELP Sherberg Excel Worksheet Functions 4 September 11th 07 01:34 AM
AdvancedFilter on cells with formulas, returning values and not formulas Claus[_3_] Excel Programming 2 September 7th 05 02:40 PM
Excel recalculates formulas when opening files last saved by an earlier version of Excel Jim Rech Excel Programming 0 April 7th 04 06:47 PM


All times are GMT +1. The time now is 05:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"