#1   Report Post  
Posted to microsoft.public.excel.misc
TimH
 
Posts: n/a
Default Golf scores table


I have a simple database of two columns. Column 1 is the golfer's name
and column 2 is the score for that round. There are about 50 golfers
who have recorded 5 to 50 rounds each.

I want to create a table that lists the golfers in column 1, rounds
played in column 2, average score in column 3, etc. I'm going nuts
trying to figure this out. Thanks.


--
TimH
------------------------------------------------------------------------
TimH's Profile: http://www.excelforum.com/member.php...o&userid=29131
View this thread: http://www.excelforum.com/showthread...hreadid=488523

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Golf scores table

On sheet2

A1: = Sheet1!A1
A2: =IF(ISERROR(MATCH(0,COUNTIF(A$1:A1,Sheet1!$A$1:$A$ 200&""),0)),"",
INDEX(IF(ISBLANK(Sheet1!$A$1:$A$200),"",Sheet1!$A$ 1:$A$200),MATCH(0,COUNTIF(
A$1:A1,Sheet1!$A$1:$A$200&""),0)))

as an array formula, so commit with Ctrl-Shift-Enter. Copy down however many
players that you have.

B1: =SUMPRODUCT(--(Sheet1!A1:A200=A1),--(Sheet1!A1:A200<""))

and copy down

C1: =AVERAGE(IF(Sheet1!A1:A20=Sheet2!A1,Sheet1!B1:B20) )

again an array formula, and again copy down.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"TimH" wrote in message
...

I have a simple database of two columns. Column 1 is the golfer's name
and column 2 is the score for that round. There are about 50 golfers
who have recorded 5 to 50 rounds each.

I want to create a table that lists the golfers in column 1, rounds
played in column 2, average score in column 3, etc. I'm going nuts
trying to figure this out. Thanks.


--
TimH
------------------------------------------------------------------------
TimH's Profile:

http://www.excelforum.com/member.php...o&userid=29131
View this thread: http://www.excelforum.com/showthread...hreadid=488523



  #3   Report Post  
Posted to microsoft.public.excel.misc
bpeltzer
 
Posts: n/a
Default Golf scores table

Have you considered a Pivot Table? Highlight your data then, from the menu
bar, Data Pivot Table and Chart Report. Click 'Next' twice, then click
'Layout'. Drag 'Name' to the row area, and score to the data area TWICE.
Excel will default to 'Sum of Score' in the data area. Double click to edit.
Change the name (first time to '# Rounds', second time to 'Average') and
change the 'summarize by' function (first time to 'count', second time to
'average'). When the table is build, click on the cell labeled 'data', drag
it to the cell labeled 'total' and drop it.
One caveat about the Pivot Table: you'll have to explicitly refresh it when
your data changes (right-click in the table and select 'Refresh'). If you
add rows, you may need to invoke the Wizard as well to update the data range.
HTH. --Bruce

"TimH" wrote:


I have a simple database of two columns. Column 1 is the golfer's name
and column 2 is the score for that round. There are about 50 golfers
who have recorded 5 to 50 rounds each.

I want to create a table that lists the golfers in column 1, rounds
played in column 2, average score in column 3, etc. I'm going nuts
trying to figure this out. Thanks.


--
TimH
------------------------------------------------------------------------
TimH's Profile: http://www.excelforum.com/member.php...o&userid=29131
View this thread: http://www.excelforum.com/showthread...hreadid=488523


  #4   Report Post  
Posted to microsoft.public.excel.misc
TimH
 
Posts: n/a
Default Golf scores table


Your suggestions were spot on! Thanks!


--
TimH
------------------------------------------------------------------------
TimH's Profile: http://www.excelforum.com/member.php...o&userid=29131
View this thread: http://www.excelforum.com/showthread...hreadid=488523

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
Linking table in Excel to word travis Links and Linking in Excel 1 November 19th 05 02:30 PM
Change Data In Pivot Table John Calder New Users to Excel 1 July 7th 05 10:41 PM
Lookup Table Dilemma Karen Excel Worksheet Functions 2 June 10th 05 08:22 PM
Golf Handicap Using Last 5 Scores Golf League Schedule Excel Worksheet Functions 5 May 13th 05 12:14 AM
How to create a calculated field formula based on Pivot Table resu dha17 Excel Discussion (Misc queries) 1 December 15th 04 05:39 AM


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