jbesclapez
Active Member
- Joined
- Feb 6, 2010
- Messages
- 275
Dear All (and Mike )
I have a column with a list of answers (IDs)
I have a table with 7 columns for the answers (some are empty) and an additional column with Result
The answer given in the first table have to be found in the second table to give the Result.
The order of the Answer is not important (Q002R03 + Q001R99 is the same then Q001R99 + Q002R03...)
You must read the table with AND attributes. So for example in the second row it is Q002R03 AND Q001R99 that gives Result B. But the Answers given do not have Q001R99 so result B cannot be expected as a result.
Please note that in the 8 you have Q006R12 + Q002R99 but no Q002R99 in the answer given. But still the result A is expected but coming from other "formulae".
The last table brings the expected results.
<tbody>
</tbody>
<tbody>
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #FCE4D6"] Q001R99 [/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #FCE4D6"] Q002R99 [/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #FCE4D6"] Q002R99 [/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
</tbody>
<tbody>
[TD="bgcolor: #FFFFFF"] Result [/TD]
[TD="bgcolor: #FFFFFF"] A [/TD]
[TD="bgcolor: #FFFFFF"] C [/TD]
[TD="bgcolor: #FFFFFF"] D [/TD]
[TD="bgcolor: #FFFFFF"] E [/TD]
[TD="bgcolor: #FFFFFF"] F [/TD]
</tbody>
Thanks for your time
I have a column with a list of answers (IDs)
I have a table with 7 columns for the answers (some are empty) and an additional column with Result
The answer given in the first table have to be found in the second table to give the Result.
The order of the Answer is not important (Q002R03 + Q001R99 is the same then Q001R99 + Q002R03...)
You must read the table with AND attributes. So for example in the second row it is Q002R03 AND Q001R99 that gives Result B. But the Answers given do not have Q001R99 so result B cannot be expected as a result.
Please note that in the 8 you have Q006R12 + Q002R99 but no Q002R99 in the answer given. But still the result A is expected but coming from other "formulae".
The last table brings the expected results.
Answer given |
Q001R01 |
Q002R03 |
Q003R05 |
Q004R12 |
Q005R10 |
Q006R12 |
Q009R11 |
<tbody>
</tbody>
Answer1 | Answer2 | Answer3 | Answer4 | Answer5 | Answer6 | Answer7 | Result |
Q001R01 | A | ||||||
Q002R03 | B | ||||||
Q004R12 | Q001R01 | Q003R05 | C | ||||
Q005R10 | D | ||||||
Q005R10 | E | ||||||
Q005R10 | F | ||||||
Q006R12 | A | ||||||
Q006R12 | G | ||||||
Q001R01 | Q002R03 | Q003R05 | Q004R12 | Q005R10 | Q006R12 | A | |
Q001R01 | Q002R03 | Q003R05 | Q004R12 | Q005R10 | Q006R12 | Q009R11 | A |
<tbody>
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #FCE4D6"] Q001R99 [/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #FCE4D6"] Q002R99 [/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #FCE4D6"] Q002R99 [/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
</tbody>
<tbody>
[TD="bgcolor: #FFFFFF"] Result [/TD]
[TD="bgcolor: #FFFFFF"] A [/TD]
[TD="bgcolor: #FFFFFF"] C [/TD]
[TD="bgcolor: #FFFFFF"] D [/TD]
[TD="bgcolor: #FFFFFF"] E [/TD]
[TD="bgcolor: #FFFFFF"] F [/TD]
</tbody>
Thanks for your time
Last edited: