I'm trying to create an array formula based on data in 2 separate tables. The formula should evaluate the data in table 2 and look for exact matches based on the data in table 1. When it finds an exact match, it will return the value in the "Order #" column in table 2 to the "Order #" column in table 1. Once the formula finds the unique value in table 2, it should then look for the next unique value in table 2 that matches all the criteria in table 1.
Table 1 below shows the desired result. The formula will be in table 1 "Order #" column. In the example below, the formula looked in table 2 for an exact match (12258, Red, Tan) and found two values (268, 657). It returned each unique matching value to the "Order #" column in table 1.
I'm able to use an Index Match formula to evaluate for multiple criteria, but I can't figure out how to find a matching value in table 2, then continue evaluating table 2 to find the next matching value. I can only find the first matching value (as shown in my "Error Table" The purpose in doing this is to match customer orders with product that has already been produced and can be shipped immediately. Your help is greatly appreciated!
Table 1
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Order #[/TD]
[TD]Model[/TD]
[TD]Ext Color[/TD]
[TD]Int Color[/TD]
[/TR]
[TR]
[TD]268[/TD]
[TD]12258[/TD]
[TD]Red[/TD]
[TD]Tan[/TD]
[/TR]
[TR]
[TD]657[/TD]
[TD]12258[/TD]
[TD]Red[/TD]
[TD]Tan[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]12258[/TD]
[TD]Red[/TD]
[TD]Tan[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]12258[/TD]
[TD]Red[/TD]
[TD]Tan[/TD]
[/TR]
</tbody>[/TABLE]
Table 2
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Order #[/TD]
[TD]Model[/TD]
[TD]Ext Color[/TD]
[TD]Int Color[/TD]
[/TR]
[TR]
[TD]268[/TD]
[TD]12258[/TD]
[TD]Red[/TD]
[TD]Tan[/TD]
[/TR]
[TR]
[TD]385[/TD]
[TD]12258[/TD]
[TD]Black[/TD]
[TD]Tan[/TD]
[/TR]
[TR]
[TD]657[/TD]
[TD]12258[/TD]
[TD]Red[/TD]
[TD]Tan[/TD]
[/TR]
[TR]
[TD]915[/TD]
[TD]12258[/TD]
[TD]Red[/TD]
[TD]Orange[/TD]
[/TR]
</tbody>[/TABLE]
ERROR Table
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Order #[/TD]
[TD]Model[/TD]
[TD]Ext Color[/TD]
[TD]Int Color[/TD]
[/TR]
[TR]
[TD]268[/TD]
[TD]12258[/TD]
[TD]Red[/TD]
[TD]Tan[/TD]
[/TR]
[TR]
[TD]268[/TD]
[TD]12258[/TD]
[TD]Red[/TD]
[TD]Tan[/TD]
[/TR]
[TR]
[TD]268[/TD]
[TD]12258[/TD]
[TD]Red[/TD]
[TD]Tan[/TD]
[/TR]
[TR]
[TD]268[/TD]
[TD]12258[/TD]
[TD]Red[/TD]
[TD]Tan[/TD]
[/TR]
</tbody>[/TABLE]
Table 1 below shows the desired result. The formula will be in table 1 "Order #" column. In the example below, the formula looked in table 2 for an exact match (12258, Red, Tan) and found two values (268, 657). It returned each unique matching value to the "Order #" column in table 1.
I'm able to use an Index Match formula to evaluate for multiple criteria, but I can't figure out how to find a matching value in table 2, then continue evaluating table 2 to find the next matching value. I can only find the first matching value (as shown in my "Error Table" The purpose in doing this is to match customer orders with product that has already been produced and can be shipped immediately. Your help is greatly appreciated!
Table 1
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Order #[/TD]
[TD]Model[/TD]
[TD]Ext Color[/TD]
[TD]Int Color[/TD]
[/TR]
[TR]
[TD]268[/TD]
[TD]12258[/TD]
[TD]Red[/TD]
[TD]Tan[/TD]
[/TR]
[TR]
[TD]657[/TD]
[TD]12258[/TD]
[TD]Red[/TD]
[TD]Tan[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]12258[/TD]
[TD]Red[/TD]
[TD]Tan[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]12258[/TD]
[TD]Red[/TD]
[TD]Tan[/TD]
[/TR]
</tbody>[/TABLE]
Table 2
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Order #[/TD]
[TD]Model[/TD]
[TD]Ext Color[/TD]
[TD]Int Color[/TD]
[/TR]
[TR]
[TD]268[/TD]
[TD]12258[/TD]
[TD]Red[/TD]
[TD]Tan[/TD]
[/TR]
[TR]
[TD]385[/TD]
[TD]12258[/TD]
[TD]Black[/TD]
[TD]Tan[/TD]
[/TR]
[TR]
[TD]657[/TD]
[TD]12258[/TD]
[TD]Red[/TD]
[TD]Tan[/TD]
[/TR]
[TR]
[TD]915[/TD]
[TD]12258[/TD]
[TD]Red[/TD]
[TD]Orange[/TD]
[/TR]
</tbody>[/TABLE]
ERROR Table
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Order #[/TD]
[TD]Model[/TD]
[TD]Ext Color[/TD]
[TD]Int Color[/TD]
[/TR]
[TR]
[TD]268[/TD]
[TD]12258[/TD]
[TD]Red[/TD]
[TD]Tan[/TD]
[/TR]
[TR]
[TD]268[/TD]
[TD]12258[/TD]
[TD]Red[/TD]
[TD]Tan[/TD]
[/TR]
[TR]
[TD]268[/TD]
[TD]12258[/TD]
[TD]Red[/TD]
[TD]Tan[/TD]
[/TR]
[TR]
[TD]268[/TD]
[TD]12258[/TD]
[TD]Red[/TD]
[TD]Tan[/TD]
[/TR]
</tbody>[/TABLE]