Quiz using the If formula

merryperson

Board Regular
Joined
Apr 27, 2005
Messages
72
I wanted to start a quiz using excel and having a question with the choice of 3 answers.

So I have a question what is the sum of 3 + 4
The answers are
A =5
B= 6
C=7
If they put in the answer A or B they get a message saying wrong answer Try again.
if they choose correctly C they get a message Correct.
I used the If formula IF (A1= “A” “Correct’, “Try again”)and this worked but only with two answers but i want three choices to choose from
Any ideas?
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Try the following:

Book1
ABC
1What is the sum of 3 + 4
2A5
3B6
4C7
5AnswerAIncorrect
Sheet1
Cell Formulas
RangeFormula
C5C5=IF(B5="","",(IF(B5="C","Correct","Incorrect")))
Cells with Data Validation
CellAllowCriteria
B5List=$A$2:$A$4
 
Upvote 0
this worked but only with two answers but i want three choices to choose from
Your formula will work with any number of answers, as long as there is only one correct answer.
 
Upvote 0
To test @Fluff 's remark, you can create a drop-down list in A1 with values "A", "B", "C", "D", "E" and in B1 your formula =IF(A1="A","Correct","Try again")
Then use the drop down to select each choice and check result in B1
 
Upvote 0
Quiz using the If formula.png
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,246
Members
449,075
Latest member
staticfluids

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