Sorry, I do not understand how the columns are set up in your example. It
looks like you only have four columns so wouldn't the questions be asked in
column D?
The entire flowchart is stored in columns A:D. Questions' text is in
column D:D indeed. This is the underlying structure needed to store a
tree-like graph. But we assume that the questions appear elsewhere, in
other cells. To build the whole thing might require considerable
effort and depends how you want to set it up. In fact my suggested
formula is half-complete, it only shows the philosophy. A semi-
automatic scheme:
In another area we have:
F2 contains 1 (QuestionID for the first question)
G2 contains:
=VLOOKUP(F2,A:D,4,0) -- the question text
H2 contains the answer supplied by the user.
I2 contains your grade (corr/incorr).
Now, in Row 3, we want to produce the next question, according to the
answer grade of the last question.
In F3 (array formula):
=INDEX($A$2:$A$100,MATCH(1,($B$2:$B$100=F2)*($C$2:$C$100=I2),0))
G3 is the copy down of G2. This will produce the new question
H3 is supplied by the user
I3 contains new grade
As I said, this is semiautomatic, it can take considerable work until
it is presentable, but this is one way along which it can be done. I
have to go, so maybe someone else will jump in later if necessary.
Does this help?
> Sorry, I do not understand how the columns are set up in your example. It
> looks like you only have four columns so wouldn't the questions be asked in
[quoted text clipped - 64 lines]
> > > > > > > depending on if the answer to the first was yes or no.
> > > > > > > Any suggestions?
jenhow - 23 Feb 2007 21:10 GMT
Thanks for your help. I will work on it.
> The entire flowchart is stored in columns A:D. Questions' text is in
> column D:D indeed. This is the underlying structure needed to store a
[quoted text clipped - 93 lines]
> > > > > > > > depending on if the answer to the first was yes or no.
> > > > > > > > Any suggestions?