DESPERATELY Need Help With Creating Text Function

Naradain

New Member
Joined
Mar 27, 2013
Messages
3
I need help with a school assignment. The assignment has given me 3 students that have taken a multiple choice test with the answers either "a", "b" or "c" along with the answer key. I need a formula that does the following: "write functions that will grade each answer, giving 1 point for a correct answer and 0 otherwise. Assume that all answers are in lowercase letters, therefore, the function that tests the answer to the first question should check for a "c" rather than a "C". Basically, I need a formula that will display a "1" if the answer is correct and a "0" if it's incorrect. This is for an online school assignment and I've gone everywhere I can think of and the instructions on how to create this function just aren't there, not even in the 900+ page book. PLEASE HELP :(
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

riddenstudios

New Member
Joined
Mar 26, 2013
Messages
25
Are you planning on different worksheets for each student (would be the easiest) or putting it all onto one worksheet? Further more do you need to grade these in the worksheet as well?
 
Upvote 0

Robert Mika

MrExcel MVP
Joined
Jun 29, 2009
Messages
7,256
I need help with a school assignment. The assignment has given me 3 students that have taken a multiple choice test with the answers either "a", "b" or "c" along with the answer key. I need a formula that does the following: "write functions that will grade each answer, giving 1 point for a correct answer and 0 otherwise. Assume that all answers are in lowercase letters, therefore, the function that tests the answer to the first question should check for a "c" rather than a "C". Basically, I need a formula that will display a "1" if the answer is correct and a "0" if it's incorrect. This is for an online school assignment and I've gone everywhere I can think of and the instructions on how to create this function just aren't there, not even in the 900+ page book. PLEASE HELP :(

Hello and welcome.
Does this help:

Excel 2010
AB
1c
2C
3C
4C3
5C
6c
7c
Sheet1
Cell Formulas
RangeFormula
B4=SUMPRODUCT(--(ISNUMBER(FIND("c",A1:A7,1))))
 
Upvote 0

Naradain

New Member
Joined
Mar 27, 2013
Messages
3
Are you planning on different worksheets for each student (would be the easiest) or putting it all onto one worksheet? Further more do you need to grade these in the worksheet as well?

They want it all on one sheet and I do need to grade them in the worksheet.
 
Upvote 0

Naradain

New Member
Joined
Mar 27, 2013
Messages
3
ADVERTISEMENT
I will try it and let you know if it works. Thanks!
 
Upvote 0

West Man

Well-known Member
Joined
Mar 27, 2006
Messages
1,175
on another sheet create a table of question # in column A and correct answer in column B. Use vlookup to get the correct answer, use an if to compare the student's answer to the correct answer. I have supplied an approach rather than a complete solution including the formulas so that you will do the actual work, learning from it.
 
Upvote 0

riddenstudios

New Member
Joined
Mar 26, 2013
Messages
25
Most instructors use the machines or do it by hand. Then just input the grade points into the system. You can find a "grade example" under lookup function by going into function, type in lookup, click on help, go down to the bottom under "array" there is a good example of grading. You could do your points similar to this by the way you discribed. You could use combinations of the if statement to match answers to students answer 1, correct, 0 false...Then points earned add them up in the row. Total points is whatever the tot. points are, and the grade% just divide and then format to %.

AnswerscdabPoints earnedPoints TotGrade %
Student 1cabb
10012450%
Student 2cdab
111144100%
Student 3cdbb
11013475%

<colgroup><col span="6"><col><col span="2"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,196,010
Messages
6,012,840
Members
441,733
Latest member
MartijnB

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
Top