Help with finding a formula (Lookup, Sum, and If all in one)

Copper Contributor

So I have a problem that I'm hoping some of you can help me solve.
I have two separate tables created in Excel.

The first table named [ROUTER_JOB_MERGED_InspectionLog] is a dashboard that displays Parent part numbers per column C "ERGOSEAL PART No." and any corresponding sales orders that are open, past due, etc. etc. The last column (column Y) called "BUILD STATUS" is supposed to act as an indicator of whether or not all the required Child components that go into the Parent part per column C "ERGOSEAL PART No. meet or exceed the quantity required for the sales order in column O "QTY_ORDERED. Using the first part no. shown as an example, I need the ''BUILD_STATUS" column to display "CAN BUILD" only if there are 16 or more of each of the component parts on hand that can be used to build the Parent part no. 11-387-020 as shown.

I then have a second table named [V_BOM_MSTR_InspectionLog] that displays all the child components required for each parent part. The parent part no. is found in the column "PARENT_ERGO_PART No." and the child part no. is found in the column "CHILD_ERGO_PART No." The on hand quantity for each child part no. is shown in column "CHILD_QTY_ONHAND".

Currently, the formula I'm using to populate the "BUILD_STATUS" column in the first table is


This formula works in the sense that it does provide a "CAN BUILD" status but it fails in doing everything I need. Since its a lookup formula, its returning a "CAN BUILD" or "SHORT" result if the first component it finds meets the criteria. It doesn't work if the next component or any of the remaining components have less than the required quantity available. As you can see in the sample data that I've attached , the result that should be returned in the first table "BUILD STATUS" column is "SHORT" because there is one child component (CO-242-060-042-000) in the second table that has "0" on hand. Is there a formula that can do what I'm trying to accomplish?

@Excel Tables 

0 Replies