CountIFS Issue

SFCChase

Board Regular
Joined
Jun 25, 2013
Messages
107
Office Version
  1. 2016
Platform
  1. Windows
I have a larger version of the data sheet below. Basically I need to calculate the number of initial exam failures. The trouble I'm having is when a student passes their initial exam but it was a retest version (for other calculation reasons I can't put this "initial" score in the initial column since it's a different test version). I was using a COUNTA formula and just counting the number of retests taken, but it still counts an initial pass (of a retest version) as a test failure. Passing score is a 76. If a student fails the initial and passes a retest they will get a grade of 76 (no matter what the retest score was)
INITIAL 1RETEST 1ARETEST 1BFINAL 1INITIAL 2RETEST 2ARETEST 2BFINAL 2INITIAL 3RETEST 3ARETEST 3BFINAL 3TEST FAILURES
8080808080800
748076808080801
74728076808080801
8080808080800
808074807680801
8080808080800
7480767480767480763

I have tried using COUNTIF formulas but can't find one that works. I'm sure there's a simple set of IF equations or something out there, but i can't seem to come up with it today.

Thanks in advance
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
How about:

Book1
ABCDEFGHIJKLM
1INITIAL 1RETEST 1ARETEST 1BFINAL 1INITIAL 2RETEST 2ARETEST 2BFINAL 2INITIAL 3RETEST 3ARETEST 3BFINAL 3TEST FAILURES
28080808080800
3748076808080801
474728076808080801
58080808080800
6808074807680801
78080808080800
87480767480767480763
Sheet1
Cell Formulas
RangeFormula
L2:L8,H2:H8,D2:D8L2=IF(IF(I2="",J2,I2)>=76,IF(I2="",J2,I2),IF(MAX(J2:K2)>=76,76,""))
M2:M8M2=SUMPRODUCT(--(LEFT(A$1:I$1,7)="INITIAL"),--(A2:I2<>""),--(A2:I2<76))+SUMPRODUCT(--(LEFT(A$1:I$1,7)="INITIAL"),--(A2:I2=""),--(B2:J2<76))
 
Upvote 0
How about:

Book1
ABCDEFGHIJKLM
1INITIAL 1RETEST 1ARETEST 1BFINAL 1INITIAL 2RETEST 2ARETEST 2BFINAL 2INITIAL 3RETEST 3ARETEST 3BFINAL 3TEST FAILURES
28080808080800
3748076808080801
474728076808080801
58080808080800
6808074807680801
78080808080800
87480767480767480763
Sheet1
Cell Formulas
RangeFormula
L2:L8,H2:H8,D2:D8L2=IF(IF(I2="",J2,I2)>=76,IF(I2="",J2,I2),IF(MAX(J2:K2)>=76,76,""))
M2:M8M2=SUMPRODUCT(--(LEFT(A$1:I$1,7)="INITIAL"),--(A2:I2<>""),--(A2:I2<76))+SUMPRODUCT(--(LEFT(A$1:I$1,7)="INITIAL"),--(A2:I2=""),--(B2:J2<76))
I was able to get the L2 formula to work, but when I swapped in the M2 formula it isn't calculating. I did make 1 small change. My Initial label cells are actually much longer so instead of using LEFT I used RIGHT since all the cells would end with Initial. Is that the source of my error?
 
Upvote 0
Unfortunately I'm on a Govt computer and can't download the Excel Book tool thing that would let you see my actual workbook. I'll try to be as clear as I can. I have a workbook that has the following setup (Columns B through F) for a total of 26 exams.

NameBasic Nursing InitialBasic Nursing Retest ABasic Nursing Retest BCalculationBasic Nursing FinalTest Failures
IF(A2="","",IF(B2>=76,B2,IF(C2>=76,
76,IF(D2>=76,76,B2)
IF(E2=0,"",E2)was using =COUNTA(C2)
Jones8080800
Smith748076761
Andrews8080800

I used the calculation column because I can hide it and have blank workbook for exams that students haven't taken (the final column) without a bunch of #VALUE errors. The following standards for class need to be tracked/met: If a student passes the initial exam they get that score (will be used later for GPA calculations). If they fail an initial exam they will take a retest (or 2 if necessary)....passing either of those exams will give them a 76 (for GPA purposes) and allow them to move on to the next exam. If they are unsuccessful on all 3 attempts, their initial failing score is used (for GPA calculation later). I can't label first attempts as the "initial" because there are lots of statistics and breakdown work done on the test versions. If a student misses the initial exam they are allowed to take the retest and that will be considered their initial try (but must be tracked in the retest version column for test statistical analysis). If they pass, they will get that score but my current COUNTA formula ends up tracking it as a failure when it shouldn't be. I have a total of 26 exams per class and an average class size of 70 so I'm hoping that i can just write out formulas on the top line and apply them all the way down.

In the example above I would need the 80 for Andrews to be calculated as an 80 for his GPA and no test failure.

I can't re-label any of the column headers because I use those specific names in INDEX formulas in other tabs that help me transcribe grades from the data flow sheet to a formal grade sheet.

I hope this is a little clearer of what i need. I apologize for the lenghty post.
 
Upvote 0
Book1
ABCDEFGHIJKLMN
1NameBasic Nursing InitialBasic Nursing Retest ABasic Nursing Retest BBasic Nursing FinalBasic Nursing InitialBasic Nursing Retest ABasic Nursing Retest BBasic Nursing FinalBasic Nursing InitialBasic Nursing Retest ABasic Nursing Retest BBasic Nursing FinalTest Final
2Jones8080808080800
3Smith748076808002
4Andrews7472807674728076747280763
5727274074728076747280763
Sheet1
Cell Formulas
RangeFormula
I2:I5,E2:E5,M2:M5M2=(SUM(J2:L2)>0)*CHOOSE(COUNTIF(J2:L2,"<80")+1,80,76,76,0)
N2:N5N2=(E2<80)+(I2<80)+(M2<80)
 
Upvote 0

Forum statistics

Threads
1,215,029
Messages
6,122,760
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top