LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Help generating combinations

Hi Group,
I have some text data in a range of cells. Example below

QuesType ANSWER
Tele A
Tele B
Tele C
Comm D
Comm E
Satelite F
Satelite G
Satelite H
Satelite I
Satelite J

I want to write VBA code that will generate all the question
type/answer combinations.
The code must count the number of question type and for each question
type,
the number of different possible answer. It should then generate the
question
types and answer as show below - in this case 30 combinations - and
write
this out to a new worksheet.

This needs to be dynamic so that a user could for example enter a new
question
type with a set of possible answers or a new/additional answers for a
question type
category. He would then execute the code to regenerate a new set of
question type /answer combinations. I have looked at
combination/permutaion generating code posted her
before but I have been unable to adapt any of it to this specific
situation.

Any help will be appreciated.


Tele Comm Satelite
A D F
A E F
B D F
B E F
C D F
C E F
A D G
A E G
B D G
B E G
C D G
C E G
A D H
A E H
B D H
B E H
C D H
C E H
A D I
A E I
B D I
B E I
C D I
C E I
A D J
A E J
B D J
B E J
C D J
C E J
Thanks

 
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
Generating a list of all possible number/letter combinations orion Excel Programming 4 November 27th 16 10:36 PM
Generating Possible Combinations and Assigning ID Number Joe Kluck Excel Worksheet Functions 2 March 28th 10 10:58 PM
Generating excel combinations mark4006 Excel Discussion (Misc queries) 2 March 6th 05 04:40 PM
Function generating all possible combinations of set of numbers Lucia Excel Worksheet Functions 1 February 7th 05 10:41 PM
a problem in generating a list of all of the possible combinations of those words chipper Excel Programming 5 October 31st 04 01:31 PM


All times are GMT +1. The time now is 03:06 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"