Hi,
I am trying to find INVOICE ID for all Invoices shipped for each SKU after a certain cut off date. I have a list of over 1000 SKUs with multiple cut off dates for each SKU in Sheet1. The invoice shipments data along with the dates is in Sheet2. I have tried to create a Pivot table and used INDEX-MATCH formula with small function but that is not working. Please advise if there's a VBA code or Excel formula I can use to handle this?
Sheet1
[TABLE="width: 208"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]SKU[/TD]
[TD]Cut off date[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD="align: right"]10/30/2014[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD="align: right"]11/20/2014[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD="align: right"]12/17/2014[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD="align: right"]12/22/2014[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD="align: right"]2/19/2015[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD="align: right"]4/23/2015[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD="align: right"]5/1/2015[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD="align: right"]5/13/2015[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD="align: right"]12/30/2014[/TD]
[/TR]
[TR]
[TD]CRE[/TD]
[TD="align: right"]3/21/2015[/TD]
[/TR]
[TR]
[TD]CRE[/TD]
[TD="align: right"]4/1/2015[/TD]
[/TR]
[TR]
[TD]DR[/TD]
[TD="align: right"]9/11/2014[/TD]
[/TR]
[TR]
[TD]DR[/TD]
[TD="align: right"]3/11/2015[/TD]
[/TR]
[TR]
[TD]DR[/TD]
[TD="align: right"]5/7/2015[/TD]
[/TR]
[TR]
[TD]DR[/TD]
[TD="align: right"]12/4/2014[/TD]
[/TR]
[TR]
[TD]DR[/TD]
[TD="align: right"]1/29/2015[/TD]
[/TR]
[TR]
[TD]DR[/TD]
[TD="align: right"]3/20/2015[/TD]
[/TR]
</tbody>[/TABLE]
Sheet2
[TABLE="width: 320"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Part[/TD]
[TD]invoice_date[/TD]
[TD]invoice_id[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD]9/4/2014[/TD]
[TD]INV4113[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD]9/5/2014[/TD]
[TD]INV4118[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD]9/8/2014[/TD]
[TD]INV4125[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD]9/9/2014[/TD]
[TD]INV4142[/TD]
[/TR]
[TR]
[TD]DR[/TD]
[TD]1/9/2015[/TD]
[TD]INV4143[/TD]
[/TR]
[TR]
[TD]DR[/TD]
[TD]3/25/2015[/TD]
[TD]INV4149[/TD]
[/TR]
[TR]
[TD]DR[/TD]
[TD]4/11/2015[/TD]
[TD]INV4145[/TD]
[/TR]
[TR]
[TD]CRE[/TD]
[TD]9/11/2014[/TD]
[TD]INV4150[/TD]
[/TR]
[TR]
[TD]CRE[/TD]
[TD]4/11/2015[/TD]
[TD]INV4151[/TD]
[/TR]
[TR]
[TD]CRE[/TD]
[TD]5/12/2015[/TD]
[TD]INV4154[/TD]
[/TR]
</tbody>[/TABLE]
I am trying to find INVOICE ID for all Invoices shipped for each SKU after a certain cut off date. I have a list of over 1000 SKUs with multiple cut off dates for each SKU in Sheet1. The invoice shipments data along with the dates is in Sheet2. I have tried to create a Pivot table and used INDEX-MATCH formula with small function but that is not working. Please advise if there's a VBA code or Excel formula I can use to handle this?
Sheet1
[TABLE="width: 208"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]SKU[/TD]
[TD]Cut off date[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD="align: right"]10/30/2014[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD="align: right"]11/20/2014[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD="align: right"]12/17/2014[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD="align: right"]12/22/2014[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD="align: right"]2/19/2015[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD="align: right"]4/23/2015[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD="align: right"]5/1/2015[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD="align: right"]5/13/2015[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD="align: right"]12/30/2014[/TD]
[/TR]
[TR]
[TD]CRE[/TD]
[TD="align: right"]3/21/2015[/TD]
[/TR]
[TR]
[TD]CRE[/TD]
[TD="align: right"]4/1/2015[/TD]
[/TR]
[TR]
[TD]DR[/TD]
[TD="align: right"]9/11/2014[/TD]
[/TR]
[TR]
[TD]DR[/TD]
[TD="align: right"]3/11/2015[/TD]
[/TR]
[TR]
[TD]DR[/TD]
[TD="align: right"]5/7/2015[/TD]
[/TR]
[TR]
[TD]DR[/TD]
[TD="align: right"]12/4/2014[/TD]
[/TR]
[TR]
[TD]DR[/TD]
[TD="align: right"]1/29/2015[/TD]
[/TR]
[TR]
[TD]DR[/TD]
[TD="align: right"]3/20/2015[/TD]
[/TR]
</tbody>[/TABLE]
Sheet2
[TABLE="width: 320"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Part[/TD]
[TD]invoice_date[/TD]
[TD]invoice_id[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD]9/4/2014[/TD]
[TD]INV4113[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD]9/5/2014[/TD]
[TD]INV4118[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD]9/8/2014[/TD]
[TD]INV4125[/TD]
[/TR]
[TR]
[TD]AX[/TD]
[TD]9/9/2014[/TD]
[TD]INV4142[/TD]
[/TR]
[TR]
[TD]DR[/TD]
[TD]1/9/2015[/TD]
[TD]INV4143[/TD]
[/TR]
[TR]
[TD]DR[/TD]
[TD]3/25/2015[/TD]
[TD]INV4149[/TD]
[/TR]
[TR]
[TD]DR[/TD]
[TD]4/11/2015[/TD]
[TD]INV4145[/TD]
[/TR]
[TR]
[TD]CRE[/TD]
[TD]9/11/2014[/TD]
[TD]INV4150[/TD]
[/TR]
[TR]
[TD]CRE[/TD]
[TD]4/11/2015[/TD]
[TD]INV4151[/TD]
[/TR]
[TR]
[TD]CRE[/TD]
[TD]5/12/2015[/TD]
[TD]INV4154[/TD]
[/TR]
</tbody>[/TABLE]