In Sheet 1, I want to report the number of instances of a string, based on two criterion : (1) BL or OL and (2) Development Term.
SHEET 2
COURSE | TERM CODE | MODALITY | SOURCE TYPE | STUDENTS | COMBINED
ENG 101 | 201910 | BL | M | 25 | ENG 101$201910@BL^M~24
ENG 101 | 201930 | BL | M | 18 | ENG 101$201930@BL^M~18
ENG 101 | 201990 | OL | C | 16 | ENG 101$201990@OL^C~16
GEN 202 | 201910 | BL | M | 11 | GEN 202$201910@BL^M~11
I added a cell (Combined), which is a combination of the previous four columns (separated by unique characters to help perhaps with a FIND) to hopefully simplify the reference and reduce the number of cells that have to be referenced (there are nearly 120,000 rows).
In Sheet 1, for example, if want to show that, for example, there have been 6 sections of ENG 101 since 201960 (this is a term code)
SHEET 1
COURSE | DEV TERM | NUM SECTIONS (BL) | NUM SECTIONS (OL) | AVG NUM STUDENTS (BL) | AVG NUM STUDENTS (OL)
ENG 101 | 201960 | 6 | 4 | 18 | 12
I know I could use something like INDEX-CONTAINS to count the number of instances of a particular course, either in the COURSE or COMBINED columns of Sheet 2. However, I want to ONLY count instances that not only contain the COURSE (e.g., ENG 101), but also have a certain modality (BL or OL), and were in a term equal to greater than the DEV TERM in Sheet 1.
So, it may count 40 instances of ENG 101 in total, but there may have only been 6 on the schedule since (and including) a particular DEV TERM (201960) and in BL modality.
I also want to find the average of the number of students in those 6 sections. (I guess I could use the total number of students across the sections that meet that particular criteria of modality.)