Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,560
Default Help With A Golf League

Our golf league uses a point system not a regular handicap system. The
points per round are entered on a worksheet - worksheet 1. Dates are across
the top and player's names down colunm a. Data would begin in column b and
row 2. There will be many days a player can not play. We take the last 6
scores, throw out the highest score and the lowest score and average the
remaining 4 scores. On worksheet 2 we list the same players and dates and
run a current goal which is the same the average of the four scores. I have
this array formula:
=sumproduct(isnumber(match(columnb2:j2),large(((b2 :j2<0*column(b2:j2)),{1,2,3,4,5,6}),0))*b2:j2)/min(6,sumproduct(--(b2:j2<0)))
This formula averages the last 6 non blank cells but fails to throw out the
highest and lowest scores. If anyone can help, it would be greatly
appreciated. Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Help With A Golf League

Try changing the {1,2,3,4,5,6} in the middle to {2,3,4,5}

Hope this helps.

Pete

On Apr 16, 4:51*pm, David wrote:
Our golf league uses a point system not a regular handicap system. *The
points per round are entered on a worksheet - worksheet 1. *Dates are across
the top and player's names down colunm a. *Data would begin in column b and
row 2. *There will be many days a player can not play. *We take the last 6
scores, throw out the highest score and the lowest score and average the
remaining 4 scores. *On worksheet 2 we list the same players and dates and
run a current goal which is the same the average of the four scores. I have
this array formula:
=sumproduct(isnumber(match(columnb2:j2),large(((b2 :j2<0*column(b2:j2)),{1,*2,3,4,5,6}),0))*b2:j2)/min(6,sumproduct(--(b2:j2<0)))
This formula averages the last 6 non blank cells but fails to throw out the
highest and lowest scores. *If anyone can help, it would be greatly
appreciated. *Thank you.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 265
Default Help With A Golf League

Try...

=TRIMMEAN(INDEX(B2:J2,LARGE(IF(B2:J2<"",COLUMN(B2 :J2)-COLUMN(B2)+1),6)):
J2,2/6)

....confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!

In article ,
David wrote:

Our golf league uses a point system not a regular handicap system. The
points per round are entered on a worksheet - worksheet 1. Dates are across
the top and player's names down colunm a. Data would begin in column b and
row 2. There will be many days a player can not play. We take the last 6
scores, throw out the highest score and the lowest score and average the
remaining 4 scores. On worksheet 2 we list the same players and dates and
run a current goal which is the same the average of the four scores. I have
this array formula:
=sumproduct(isnumber(match(columnb2:j2),large(((b2 :j2<0*column(b2:j2)),{1,2,3
,4,5,6}),0))*b2:j2)/min(6,sumproduct(--(b2:j2<0)))
This formula averages the last 6 non blank cells but fails to throw out the
highest and lowest scores. If anyone can help, it would be greatly
appreciated. Thank you.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,560
Default Help With A Golf League

Domenic, thank you very much. Your formula appears to working like a charm.
Thanks again.
David

"Domenic" wrote:

Try...

=TRIMMEAN(INDEX(B2:J2,LARGE(IF(B2:J2<"",COLUMN(B2 :J2)-COLUMN(B2)+1),6)):
J2,2/6)

....confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!

In article ,
David wrote:

Our golf league uses a point system not a regular handicap system. The
points per round are entered on a worksheet - worksheet 1. Dates are across
the top and player's names down colunm a. Data would begin in column b and
row 2. There will be many days a player can not play. We take the last 6
scores, throw out the highest score and the lowest score and average the
remaining 4 scores. On worksheet 2 we list the same players and dates and
run a current goal which is the same the average of the four scores. I have
this array formula:
=sumproduct(isnumber(match(columnb2:j2),large(((b2 :j2<0*column(b2:j2)),{1,2,3
,4,5,6}),0))*b2:j2)/min(6,sumproduct(--(b2:j2<0)))
This formula averages the last 6 non blank cells but fails to throw out the
highest and lowest scores. If anyone can help, it would be greatly
appreciated. Thank you.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,560
Default Help With A Golf League

Domenic, this formula works great for the information in cells b2:j2. I try
to extend it and I receive an error message that there is the wrong kind of
data in the cells. Our league is for old men who play golf every Mon, Wed,
and Friday for about 6 or 7 months depending upon the weather. I need to
extend this formula for for a total of 100 cells or b2:cw2. Can this be done?
Thanks again
David

"Domenic" wrote:

Try...

=TRIMMEAN(INDEX(B2:J2,LARGE(IF(B2:J2<"",COLUMN(B2 :J2)-COLUMN(B2)+1),6)):
J2,2/6)

....confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!

In article ,
David wrote:

Our golf league uses a point system not a regular handicap system. The
points per round are entered on a worksheet - worksheet 1. Dates are across
the top and player's names down colunm a. Data would begin in column b and
row 2. There will be many days a player can not play. We take the last 6
scores, throw out the highest score and the lowest score and average the
remaining 4 scores. On worksheet 2 we list the same players and dates and
run a current goal which is the same the average of the four scores. I have
this array formula:
=sumproduct(isnumber(match(columnb2:j2),large(((b2 :j2<0*column(b2:j2)),{1,2,3
,4,5,6}),0))*b2:j2)/min(6,sumproduct(--(b2:j2<0)))
This formula averages the last 6 non blank cells but fails to throw out the
highest and lowest scores. If anyone can help, it would be greatly
appreciated. 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
golf league schedule golfinkathy Excel Discussion (Misc queries) 2 December 25th 06 04:07 PM
golf score templet for a league are there any maxalax Charts and Charting in Excel 0 April 1st 06 04:04 PM
Golf scorecard again kevhatch New Users to Excel 10 July 6th 05 11:53 AM
Golf Pool FRR Excel Discussion (Misc queries) 1 May 7th 05 06:21 PM
Golf League Schedule Golf League Schedule Excel Worksheet Functions 0 April 20th 05 03:50 PM


All times are GMT +1. The time now is 11:54 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"