Search code examples
excelexcel-formulaworksheet-functionexcel-2011

Set Pass/fail based on 10 answers from each of many individuals


I'm trying to output a Pass/Fail indicator for each student. A new student is on every row and their 10 answers are logged from Column E to N.

Link to picture of data

I want to match their answers with the 10 correct answers in Column S to AB, count them, and then have the word Pass show in the results Column O if they have a 70% pass rate, and fail if they are under that 70%.

All help appreciated.


Solution

  • I'd suggest a separate row for the answers but in matching columns:

    SO27682763 example

    then something like:

     =IF(SUMPRODUCT(--(E$1:N$1=E3:N3))>6,"Pass","fail")  
    

    As @Jeeped points out, the correct answers could be left where they are with only a small adjustment to the formula above but (apart from the lurid colours!) I think the layout shown is neater and possibly more useful.