#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default random


how would I right a code to randomly select from a list of questions an
then check for the answears, like a test

say I have 5 question such as what is 2*2, what is the captial o
france etc, I want the code to cycle through this question in a rando
fashion and check if the answears are correct...

please help, this is for purpose of testing and memorizatio

--
nyn0
-----------------------------------------------------------------------
nyn04's Profile: http://www.excelforum.com/member.php...fo&userid=1265
View this thread: http://www.excelforum.com/showthread.php?threadid=26199

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default random

hi,

add one column to the list and use the formula
=RAND()
to write a random numer in each row. Whenever you start your test
resort the list by this new column, then you can simply loop through
the list from the first to the last row. Remember, the list will be in
random order after (recalculating and) sorting!

maybe you should have another column that has numbers of the original
sort order. then you could sort by that column to get back your
original order.

arno

"nyn04" schrieb im Newsbeitrag
...

how would I right a code to randomly select from a list of questions

and
then check for the answears, like a test

say I have 5 question such as what is 2*2, what is the captial of
france etc, I want the code to cycle through this question in a

random
fashion and check if the answears are correct...

please help, this is for purpose of testing and memorization


--
nyn04
---------------------------------------------------------------------

---
nyn04's Profile:

http://www.excelforum.com/member.php...o&userid=12658
View this thread:

http://www.excelforum.com/showthread...hreadid=261991


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default random

how do you want to interact with the person answering the questions. Are
you writing the questions to a worksheet? Is it an interactive process
(inputbox, msgbox). where are the questions and answers located?

--
Regards,
Tom Ogilvy

"nyn04" wrote in message
...

how would I right a code to randomly select from a list of questions and
then check for the answears, like a test

say I have 5 question such as what is 2*2, what is the captial of
france etc, I want the code to cycle through this question in a random
fashion and check if the answears are correct...

please help, this is for purpose of testing and memorization


--
nyn04
------------------------------------------------------------------------
nyn04's Profile:

http://www.excelforum.com/member.php...o&userid=12658
View this thread: http://www.excelforum.com/showthread...hreadid=261991



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting random Data created from a random formula Six Sigma Blackbelt Excel Discussion (Misc queries) 1 September 11th 08 11:03 PM
Random help please Terry Excel Worksheet Functions 4 September 4th 08 11:35 AM
Non-random numbers generated by excel's data analysis random gener Allie Excel Worksheet Functions 10 September 17th 05 06:19 AM
Non-random numbers generated by excel's data analysis random gener Harlan Grove Excel Discussion (Misc queries) 2 September 13th 05 04:06 PM
How do I find random number in list of random alpha? (Position is. jlahealth-partners Excel Discussion (Misc queries) 0 February 8th 05 05:31 PM


All times are GMT +1. The time now is 08:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"