OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Drop down menu and checking right answer

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
tazzbe
Newbie
Newbie


Joined: 10 Nov 2010
Posts: 1

PostPosted: Wed Nov 10, 2010 3:08 pm    Post subject: Drop down menu and checking right answer Reply with quote

Hi there,

Im quite new with Open Office and i would like to create a new file.
The goal is to have a drop down menu with A B C D choices...till here the easy part, cause i found how to make that. I would like however to see with colors if that answer A B C or D is correct or not.

For example
Question 1 - you can pick between A-B-C-D from the drop down menu...and when you click something you see immediatly if it was correct or not.

Question 1 correct answer is B...you should get the cell to show up as green if i pick B, red when i pick A C or D. No idea if this is possible or not? If it's easier next to the cell with the drop down menu a text message saying correct or wrong would work too (altho colors are easier and more appealing to use) Smile

Question is now how i can link the correct answers to the drop down menu and get the colors to show up?

Hope someone can help me out...need to study a lot of multiple choice answers from a book, and would make my life so much easier if i can use a document instead of pen & paper and go check the correct answers each time. Would take me some time to link the correct answers...but then i can at least use it each time i wanna retry the questions Smile
Back to top
View user's profile Send private message
ken johnson
Super User
Super User


Joined: 23 Apr 2009
Posts: 2032
Location: Sydney, Australia

PostPosted: Wed Nov 10, 2010 6:31 pm    Post subject: Reply with quote

Perhaps like this...
http://www.4shared.com/file/w8AxEyrb/Multiple_Choice_Quiz.html
Conditional formatting controls the green (correct) and red (Incorrect) background colours.
Column G with the correct answers should be hidden.

Ken Johnson
_________________
If your problem has been solved please add "[Solved]" to the beginning of your first post title (edit button).
Back to top
View user's profile Send private message
keme
Moderator
Moderator


Joined: 30 Aug 2004
Posts: 2910
Location: Egersund, Norway

PostPosted: Thu Nov 11, 2010 12:06 am    Post subject: Reply with quote

You may also want to wait until all questions are answered before indicating which are correct. If that's interesting, read on...

If you move the conditions in Ken Johnson's file down, you can insert the condition below as condition 1:
Formula is: COUNTA($F$2:$F$21)<COUNTA($A$2;$A$21)
Cell style: Default

This should update ranges when you insert new rows/columns into the questions range. However, it seems that with the versions of Calc I've tried (3.2.0 and 3.2.1), cell references in conditional formats do not update correctly. (I believe it has worked in previous versions.) To work around this, keep counts in named cells:

Select cell A22, and type QuestionCount in the "name box" (address field, far left on the formula bar) to assign that name to the cell.
In cell A22, enter the formula =COUNTA(A2:A21)

Select cell F22, and type AnswerCount in the name box.
Copy the formula from A22 to F22

Alter the condition formula above to AnswerCount<QuestionCount
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group