Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Calculating Test Score Averages

I am trying to create a spreadsheet where I can track test scores for given
tests. I would like to automate, through VBA, the process of doing a query
for a test between two given dates and producing the overall average for that
test.

i.e. I may have given a specific test in the month of June 2009. This test
was given three times, in that month, to a group of 12, 9, and 5 individuals
respectively. I may give several different tests over the course of a year.
How can I query out a specific test and all the related scores for that test
between two given dates? Additionally, I need to calculate the average score
only for the results of the query.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default Calculating Test Score Averages

You could probably use a pivot table to do what you described. See pivot
table tutorial in Excel.


"ASteele" wrote in message
...
I am trying to create a spreadsheet where I can track test scores for given
tests. I would like to automate, through VBA, the process of doing a
query
for a test between two given dates and producing the overall average for
that
test.

i.e. I may have given a specific test in the month of June 2009. This
test
was given three times, in that month, to a group of 12, 9, and 5
individuals
respectively. I may give several different tests over the course of a
year.
How can I query out a specific test and all the related scores for that
test
between two given dates? Additionally, I need to calculate the average
score
only for the results of the query.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 131
Default Calculating Test Score Averages

It could also be done with just formulas, if you haven't yet mastered pivot
tables. Use a couple of fixed cells, say at the top of the sheet, where you
can input the begin and end dates of the period you want to include in your
results. Then fill a column next to your score records with an if/then
formula that returns the score if within the date range, and returns "" if
not in the range. Then you can sum the column and divide by COUNT to get an
average.

Come back if you need help with how to write the formulas.

"JLGWhiz" wrote:

You could probably use a pivot table to do what you described. See pivot
table tutorial in Excel.


"ASteele" wrote in message
...
I am trying to create a spreadsheet where I can track test scores for given
tests. I would like to automate, through VBA, the process of doing a
query
for a test between two given dates and producing the overall average for
that
test.

i.e. I may have given a specific test in the month of June 2009. This
test
was given three times, in that month, to a group of 12, 9, and 5
individuals
respectively. I may give several different tests over the course of a
year.
How can I query out a specific test and all the related scores for that
test
between two given dates? Additionally, I need to calculate the average
score
only for the results of the query.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Calculating Test Score Averages

Have not worked well with Pivot Tables in the past. I have dabbled in them,
a little. But an expert, I am not. I will, however, give a shot. Thanks

"JLGWhiz" wrote:

You could probably use a pivot table to do what you described. See pivot
table tutorial in Excel.


"ASteele" wrote in message
...
I am trying to create a spreadsheet where I can track test scores for given
tests. I would like to automate, through VBA, the process of doing a
query
for a test between two given dates and producing the overall average for
that
test.

i.e. I may have given a specific test in the month of June 2009. This
test
was given three times, in that month, to a group of 12, 9, and 5
individuals
respectively. I may give several different tests over the course of a
year.
How can I query out a specific test and all the related scores for that
test
between two given dates? Additionally, I need to calculate the average
score
only for the results of the query.




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Calculating Test Score Averages

I have tried to write the If/Then statement. However, I can not seem to get
the order correct when trying the nest an if/then within an if/then
statement. I am thinking this is what I have to do to get all test scores
between a begin and end date scenario.

My test dates are in column C with test scores in columns D through S and an
average of the test scores, for the individual test in column T. I put my
"Begin Date" in cell d1 and "End Date" in cell f1. However, when I write the
if statement, my results are incorrect. The formula I wrote is as follows:

IF(C11=$D$9,IF(C11<=$F$9,AVERAGE(D11:S11)," "),AVERAGE(D11:S11))

I will keep plugging away, but any help you can offer, I would greatly
appreciate.

"B Lynn B" wrote:

It could also be done with just formulas, if you haven't yet mastered pivot
tables. Use a couple of fixed cells, say at the top of the sheet, where you
can input the begin and end dates of the period you want to include in your
results. Then fill a column next to your score records with an if/then
formula that returns the score if within the date range, and returns "" if
not in the range. Then you can sum the column and divide by COUNT to get an
average.

Come back if you need help with how to write the formulas.

"JLGWhiz" wrote:

You could probably use a pivot table to do what you described. See pivot
table tutorial in Excel.


"ASteele" wrote in message
...
I am trying to create a spreadsheet where I can track test scores for given
tests. I would like to automate, through VBA, the process of doing a
query
for a test between two given dates and producing the overall average for
that
test.

i.e. I may have given a specific test in the month of June 2009. This
test
was given three times, in that month, to a group of 12, 9, and 5
individuals
respectively. I may give several different tests over the course of a
year.
How can I query out a specific test and all the related scores for that
test
between two given dates? Additionally, I need to calculate the average
score
only for the results of the query.






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Calculating Test Score Averages

I changed the If/Then formula to:
IF(AND(C7=$D$1,C7<=$F$1),AVERAGE(D7:L7)," ")

This did provide me with an average for the test scores between given dates.
Now I have to figure out how to calculate only a specific test score between
said dates. The current formula provided an average for all test scores
within the date range given. Still working on the issue.

"B Lynn B" wrote:

It could also be done with just formulas, if you haven't yet mastered pivot
tables. Use a couple of fixed cells, say at the top of the sheet, where you
can input the begin and end dates of the period you want to include in your
results. Then fill a column next to your score records with an if/then
formula that returns the score if within the date range, and returns "" if
not in the range. Then you can sum the column and divide by COUNT to get an
average.

Come back if you need help with how to write the formulas.

"JLGWhiz" wrote:

You could probably use a pivot table to do what you described. See pivot
table tutorial in Excel.


"ASteele" wrote in message
...
I am trying to create a spreadsheet where I can track test scores for given
tests. I would like to automate, through VBA, the process of doing a
query
for a test between two given dates and producing the overall average for
that
test.

i.e. I may have given a specific test in the month of June 2009. This
test
was given three times, in that month, to a group of 12, 9, and 5
individuals
respectively. I may give several different tests over the course of a
year.
How can I query out a specific test and all the related scores for that
test
between two given dates? Additionally, I need to calculate the average
score
only for the results of the query.




  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 131
Default Calculating Test Score Averages

With the further detail in your last post regarding the complexity of
measures you want to calculate for the date range, JLGWhiz' suggestion of
pivot tables really is the way to go. There are some points in building an
Excel skill set where you just have to grit your teeth and get over the hump.
A good tutorial might be the way to go.

"ASteele" wrote:

Have not worked well with Pivot Tables in the past. I have dabbled in them,
a little. But an expert, I am not. I will, however, give a shot. Thanks

"JLGWhiz" wrote:

You could probably use a pivot table to do what you described. See pivot
table tutorial in Excel.


"ASteele" wrote in message
...
I am trying to create a spreadsheet where I can track test scores for given
tests. I would like to automate, through VBA, the process of doing a
query
for a test between two given dates and producing the overall average for
that
test.

i.e. I may have given a specific test in the month of June 2009. This
test
was given three times, in that month, to a group of 12, 9, and 5
individuals
respectively. I may give several different tests over the course of a
year.
How can I query out a specific test and all the related scores for that
test
between two given dates? Additionally, I need to calculate the average
score
only for the results of the query.




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
Logical Test for blank and then for score Mikesnhu Excel Worksheet Functions 1 May 1st 10 12:02 AM
problem with a function to calculate weighted test score Drew P. Excel Worksheet Functions 2 September 17th 09 12:55 PM
Help needed...test score statistics Justin Excel Discussion (Misc queries) 8 July 8th 06 01:35 AM
Highest Score for each Test abqhusker Excel Worksheet Functions 4 October 8th 05 06:25 PM
Test Score Tabulation - Multiple conditions SteveG[_7_] Excel Programming 0 October 19th 04 04:26 PM


All times are GMT +1. The time now is 11:47 PM.

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"