For future reference, you will get many more potential helpers (& faster) if you post any sample data in small
screen shots directly in your post. Most helpers aren't so keen on having to type out sample data,
My signature block below has a link for several ways to do that. Test them in the
forum. That way, if something goes wrong, you won’t be messing up a main forum.
I would also avoid using whole column references with SUPMPRODUCT. Choose a number of rows that will be sufficient to cover any amount of data you will realistically ever have.
| A | B | C | D | E | F | G | H |
| | | | Valid Codes | | | | |
Alpha | | Alpha | | | | | | |
Bravo | | Bravo | | | | | | |
Green | | Green | | | | | | |
Car | | Yellow | | | | | | |
Mouse | | Ice Cream | | | | | | |
Green | | | | | | | | |
Yellow | | | | | | | | |
Hot | | | | | | | | |
Ice Cream | | | | | | | | |
Dog | | | | | | | | |
<colgroup><col style="font-weight:bold; width:30px; "><col style="width:47px;"><col style="width:33px;"><col style="width:78px;"><col style="width:24px;"><col style="width:89px;"><col style="width:18px;"><col style="width:47px;"><col style="width:33px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]1[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]2[/TD]
[TD="align: right"]1001[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]1001[/TD]
[TD="align: right"]30[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]3[/TD]
[TD="align: right"]1001[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]1002[/TD]
[TD="align: right"]30[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]4[/TD]
[TD="align: right"]1001[/TD]
[TD="align: right"]10[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]5[/TD]
[TD="align: right"]1001[/TD]
[TD="align: right"]10[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]6[/TD]
[TD="align: right"]1002[/TD]
[TD="align: right"]10[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]7[/TD]
[TD="align: right"]1002[/TD]
[TD="align: right"]10[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]8[/TD]
[TD="align: right"]1002[/TD]
[TD="align: right"]10[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]9[/TD]
[TD="align: right"]1002[/TD]
[TD="align: right"]10[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]10[/TD]
[TD="align: right"]1002[/TD]
[TD="align: right"]10[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]11[/TD]
[TD="align: right"]1002[/TD]
[TD="align: right"]10[/TD]
</tbody>