Results 1 to 5 of 5

Average Calculation based on criteria

Threaded View

  1. #1
    Registered User
    Join Date
    07-14-2010
    Location
    New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    7

    Average Calculation based on criteria

    I am using the formula below for averaging a student’s preparedness and it seems to work fine.
    =IF(ISERR(COUNTIF(Progress!$D2:$O2,"y")/COUNTA(Progress!$D2:$O2)),"",COUNTIF(Progress!$D2:$O2,"y")/COUNTA(Progress!$D2:$O2))

    Now I’d like to create a similar formula to determine average preparedness of an entire class, by month. Cells D2:D123 contain Y or N for preparedness for one month and cells A2:A123 identifies the class number. These cells are on the sheet titled Progress. I’ve spent days trying to write the formula but I finally gave up because I could not figure out how to add the class criteria. Below is an overview of the workbook.

    Basically I'd like to display the monthly average of each class's preparedness. However, if a cell is blank (doesn't contain a Y or N), I do not want to count the cell as some students are not in attendance for certain months.

    Workbook sheets:
    Progess: Worksheet to enter data for student preparedness, by month.
    Column A: Class Number
    Column B: First Name
    Column C: Last Name
    Columns D-O: Months, beginning with July

    Percentages: Worksheet to summarize average class preparedness by month. (I will populate new formula in cells beneath each month.)
    Column A: Class Number (linked from Students worksheet)
    Column B: Class Percentage To Date (linked from Students worksheet)
    Column C: Headcount (Linked from Students Worksheet)
    Columns D-O: Months of the school year, beginning with July

    Students: Worksheet provides general date regarding student progress and classroom needs.
    Column A: Class Number (used for calculations - numbers only)
    Column B: Student's average preparedness based on data in worksheet Progress.
    Column C: Class Number based on text (some classes contain test and numbers)
    Column D: First Name
    Column E: Last Name
    Column F: Activity Date (Text field)
    Columns G-I: Text fields for miscellaneous information
    Last edited by NBVC; 07-14-2010 at 08:00 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1