Markmzz,
Which has me thinking. Would it be better to have a "VALUES" list that is manually sorted so we do not have to rely on alphabetical order? That would make the formula more robust to handle many use cases. Any ideas / opinions on that?
Thanks.
In this case, do some tests with this:
Layout
[TABLE="width: 290"]
<colgroup><col width="82" style="width: 62pt; mso-width-source: userset; mso-width-alt: 2998;"> <col width="59" style="width: 44pt; mso-width-source: userset; mso-width-alt: 2157;"> <col width="17" style="width: 13pt; mso-width-source: userset; mso-width-alt: 621;"> <col width="82" style="width: 62pt; mso-width-source: userset; mso-width-alt: 2998;"> <col width="67" style="width: 50pt; mso-width-source: userset; mso-width-alt: 2450;"> <col width="78" style="width: 59pt; mso-width-source: userset; mso-width-alt: 2852;"> <tbody>[TR]
[TD="width: 82, bgcolor: transparent"]
SPECIFICATION #[/TD]
[TD="width: 59, bgcolor: transparent"]
VALUES[/TD]
[TD="width: 17, bgcolor: transparent"] [/TD]
[TD="width: 82, bgcolor: transparent"]
SPECIFICATION #[/TD]
[TD="width: 67, bgcolor: transparent"]
RESULT[/TD]
[TD="width: 78, bgcolor: transparent"]
EXCLUSION LIST[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
1[/TD]
[TD="bgcolor: transparent"]
COMP EVAL[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent, align: right"]
1[/TD]
[TD="bgcolor: yellow"]
P2[/TD]
[TD="bgcolor: transparent"]
P5[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
5[/TD]
[TD="bgcolor: transparent"]
COMP EVAL[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent, align: right"]
2[/TD]
[TD="bgcolor: yellow"]
P4[/TD]
[TD="bgcolor: transparent"]
COMP EVAL[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
3[/TD]
[TD="bgcolor: transparent"]
P1[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent, align: right"]
3[/TD]
[TD="bgcolor: yellow"]
PROTOTYPE[/TD]
[TD="bgcolor: transparent"]
P1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
4[/TD]
[TD="bgcolor: transparent"]
P1[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent, align: right"]
4[/TD]
[TD="bgcolor: yellow"]
P2[/TD]
[TD="bgcolor: transparent"]
P3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
5[/TD]
[TD="bgcolor: transparent"]
P1[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent, align: right"]
5[/TD]
[TD="bgcolor: yellow"]
P2[/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
1[/TD]
[TD="bgcolor: transparent"]
P2[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
4[/TD]
[TD="bgcolor: transparent"]
P2[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
5[/TD]
[TD="bgcolor: transparent"]
P2[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
2[/TD]
[TD="bgcolor: transparent"]
P3[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
4[/TD]
[TD="bgcolor: transparent"]
P3[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
2[/TD]
[TD="bgcolor: transparent"]
P4[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
2[/TD]
[TD="bgcolor: transparent"]
P5[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
1[/TD]
[TD="bgcolor: transparent"]
P5[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
3[/TD]
[TD="bgcolor: transparent"]
P5[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
3[/TD]
[TD="bgcolor: transparent"]
PROTOTYPE[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]
***************[/TD]
[TD="bgcolor: transparent"]
**********[/TD]
[TD="bgcolor: transparent"]
**[/TD]
[TD="bgcolor: transparent"]
***************[/TD]
[TD="bgcolor: transparent"]
************[/TD]
[TD="bgcolor: transparent"]
**************[/TD]
[/TR]
</tbody>[/TABLE]
Formula
Code:
In E2
=IFERROR(INDEX($B$2:$B$16,MATCH(1,INDEX(($B$2:$B$16<>"")*($A$2:$A$16=$D2)*ISNA(MATCH($B$2:$B$16,$F$2:$F$5,0)),),0)),"")
And copy down.
Markmzz