Discussion Help with finding a formula (Lookup, Sum, and If all in one) in Excel
https://techcommunity.microsoft.com/t5/excel/help-with-finding-a-formula-lookup-sum-and-if-all-in-one/m-p/3407641#M147361
<P>So I have a problem that I'm hoping some of you can help me solve.<BR />I have two separate tables created in Excel.</P><P>The first table named <EM>[ROUTER_JOB_MERGED_InspectionLog] </EM>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" <STRONG>only if </STRONG>there are 16 or more <STRONG>of each</STRONG> of the component parts on hand that can be used to build the Parent part no. 11-387-020 as shown.<BR /><BR /></P><P>I then have a second table named <EM>[V_BOM_MSTR_InspectionLog] </EM>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".</P><P>Currently, the formula I'm using to populate the "BUILD_STATUS" column in the first table is</P><P><EM>=IF(XLOOKUP([@[ERGOSEAL PART No.]],V_BOM_MSTR_InspectionLog[PARENT_ERGO_PART No.],V_BOM_MSTR_InspectionLog[CHILD_QTY_ONHAND])>=[@[QTY_ORDERED]],"CAN BUILD","SHORT")</EM></P><P>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?<BR /><BR />@<A title="Excel Data" href="https://ergoseal.sharepoint.com/:x:/s/ErgosealInc/EYj1MWT8F_tHhaTVGwbtrmcBIbesKA_cPgxOQTyKjd5ZqQ?e=8cxgb2" target="_self">Excel Tables</A> </P>Fri, 20 May 2022 20:27:23 GMTCyeazel2022-05-20T20:27:23ZHelp with finding a formula (Lookup, Sum, and If all in one)
https://techcommunity.microsoft.com/t5/excel/help-with-finding-a-formula-lookup-sum-and-if-all-in-one/m-p/3407641#M147361
<P>So I have a problem that I'm hoping some of you can help me solve.<BR />I have two separate tables created in Excel.</P><P>The first table named <EM>[ROUTER_JOB_MERGED_InspectionLog] </EM>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" <STRONG>only if </STRONG>there are 16 or more <STRONG>of each</STRONG> of the component parts on hand that can be used to build the Parent part no. 11-387-020 as shown.<BR /><BR /></P><P>I then have a second table named <EM>[V_BOM_MSTR_InspectionLog] </EM>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".</P><P>Currently, the formula I'm using to populate the "BUILD_STATUS" column in the first table is</P><P><EM>=IF(XLOOKUP([@[ERGOSEAL PART No.]],V_BOM_MSTR_InspectionLog[PARENT_ERGO_PART No.],V_BOM_MSTR_InspectionLog[CHILD_QTY_ONHAND])>=[@[QTY_ORDERED]],"CAN BUILD","SHORT")</EM></P><P>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?<BR /><BR />@<A title="Excel Data" href="https://ergoseal.sharepoint.com/:x:/s/ErgosealInc/EYj1MWT8F_tHhaTVGwbtrmcBIbesKA_cPgxOQTyKjd5ZqQ?e=8cxgb2" target="_self">Excel Tables</A> </P>Fri, 20 May 2022 20:27:23 GMThttps://techcommunity.microsoft.com/t5/excel/help-with-finding-a-formula-lookup-sum-and-if-all-in-one/m-p/3407641#M147361Cyeazel2022-05-20T20:27:23Z