Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default Possible Combinations of scores

Hello all,

I'm having a really hard time with developing some VBA code to accomplish
the following:

I have a questionnaire that has 12 questions with varying possibility of
answers for each question. Based on the answers, the person will be scored
and grouped accordingly.

Here's an example of the 12 question scores:

Q1 0 2 6 6
Q2 0 1 3 4
Q3 1 2 3 4 5 6 7
Q4 1 2 3 4
Q5 1 2 3 4 5 6
Q6 2 1
Q7 1 2 3 4 5
Q8 1 2 3 4 5
Q9 1 2 3 4
Q10 1 2 3
Q11 1 2 3
Q12 5 4 3 2 1

Based on the above, I need some code that will give me a random answering of
the questions and a total of the points but I'm stumped.

Any help that anyone may be able to provide would be greatly appreciated.
Thanks in advance and have a great day,

Mike
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Possible Combinations of scores


Using the rnd() function and select case statements might help

X = Rnd()
Select Case X
Case Is < 1 / NumberOfOptions
Score = 1
Case Is < 2 / NumberOfOptions
Score = 2
......
.......


End Select


--
mrice

Research Scientist with many years of spreadsheet development experience
------------------------------------------------------------------------
mrice's Profile: http://www.excelforum.com/member.php...o&userid=10931
View this thread: http://www.excelforum.com/showthread...hreadid=547583

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
Top 3 scores Gilbo Excel Discussion (Misc queries) 3 December 24th 09 09:13 PM
excel golf scores, how do I add the scores for all par 3's etc Golf Analyst Excel Worksheet Functions 2 November 24th 07 02:25 PM
Fit scores Sciguy Excel Worksheet Functions 4 January 19th 07 09:45 AM
Top 5 Scores [email protected] Excel Worksheet Functions 2 July 31st 06 12:35 AM
max scores Cricket Excel Discussion (Misc queries) 2 February 19th 06 06:45 PM


All times are GMT +1. The time now is 06:56 AM.

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

About Us

"It's about Microsoft Excel"