Multi-Criteria Date find/lookup/Index?

Tyrate

New Member
Joined
Mar 27, 2019
Messages
1
I have 2 tables on separate worksheets in the same workbook, the 1st table (TableA) has the Workorders in which an item has been assigned too, the 2nd table (TableB) shows the items on the vendor’s purchase order record table.

TableA

[TABLE="width: 588"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]WO#[/TD]
[TD]Item[/TD]
[TD]Description[/TD]
[TD]QTY in Stock[/TD]
[TD]Location[/TD]
[/TR]
[TR]
[TD]0014598[/TD]
[TD]55698-RC-04[/TD]
[TD]SCREW, 6-32 X 5/16 FLAT, TORX,[/TD]
[TD]46[/TD]
[TD]B17N[/TD]
[/TR]
[TR]
[TD]0016985[/TD]
[TD]1148999-00-3[/TD]
[TD]ASSY, BP/Tx FILTER,[/TD]
[TD]333[/TD]
[TD]FG2B[/TD]
[/TR]
[TR]
[TD]0018562[/TD]
[TD]223045-177[/TD]
[TD]BRKT, EXTENSION, TX FILTER[/TD]
[TD]0[/TD]
[TD]A23B[/TD]
[/TR]
[TR]
[TD]0018869[/TD]
[TD]86359-C6-FC-01[/TD]
[TD]ASSY, CABLE, MMCX M STR-SMA[/TD]
[TD]12[/TD]
[TD]C12D[/TD]
[/TR]
[TR]
[TD]0016980[/TD]
[TD]1456823[/TD]
[TD]CISCO, ROUTER[/TD]
[TD]1[/TD]
[TD]D08C
[/TD]
[/TR]
</tbody>[/TABLE]


TableB

ABCDEF
PO#Component IDManufacturerRequired by DateQTY OrderedQTY Received
000184751456823CISCO2/19/193535
0001848225978-121-CAMacMasters3/1/192520
000192011456823CISCO3/4/19200
00019223223045-177Miller Machine2/28/193030
000196421148999-00-3AD Electrical3/12/19100100
000201011456823CISCO3/15/19150
00020147223045-177Miller Machine3/18/193015
00020358223045-177Miller Machine3/30/19150

<tbody>
</tbody>

What I’m trying to accomplish?
I would like to find the applicable “required by date” on tableB, that matches the “Item” column on TableA with the “Component ID” column on tableB, evaluate the records, then from tableB grab the 1st “required by date” where either the “purchase quantity received” is less than the quantity ordered or equal to “0”.

What it should look like:

TableA (mod)

[TABLE="width: 660"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]WO#[/TD]
[TD]Item[/TD]
[TD]Description[/TD]
[TD]QTY in Stock[/TD]
[TD]Location[/TD]
[TD]Expected
Delivery[/TD]
[/TR]
[TR]
[TD]0014598[/TD]
[TD]55698-RC-04[/TD]
[TD]SCREW, 6-32 X 5/16 FLAT, TORX,[/TD]
[TD]46[/TD]
[TD]B17N[/TD]
[TD]3/18/19[/TD]
[/TR]
[TR]
[TD]0016985[/TD]
[TD]1148999-00-3[/TD]
[TD]ASSY, BP/Tx FILTER,[/TD]
[TD]333[/TD]
[TD]FG2B[/TD]
[TD]4/12/19[/TD]
[/TR]
[TR]
[TD]0018562[/TD]
[TD]223045-177[/TD]
[TD]BRKT, EXTENSION, TX FILTER[/TD]
[TD]0[/TD]
[TD]A23B[/TD]
[TD]3/18/19[/TD]
[/TR]
[TR]
[TD]0018869[/TD]
[TD]86359-C6-FC-01[/TD]
[TD]ASSY, CABLE, MMCX M STR-SMA[/TD]
[TD]12[/TD]
[TD]C12D[/TD]
[TD]4/2/19[/TD]
[/TR]
[TR]
[TD]0016980[/TD]
[TD]1456823[/TD]
[TD]CISCO, ROUTER[/TD]
[TD]1[/TD]
[TD]D08C[/TD]
[TD]3/4/19[/TD]
[/TR]
</tbody>[/TABLE]


Note, that the Item number can be called out several times on the purchase order, with different quantiles that were ordered and received. I thought it would be a fairly simple formula to figure out but I’ve tried several types of excel functions like INDEX/MATCH and VLOOKUP with little to no results to from it, of course, this is most likely because of human error since I’m an advanced novice at best when it comes to excel and formulas.

Whatever help I can get would be greatly appreciated!:confused:
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Hi Tyrate,

Can use this? It seems to work with the data I have available;


Book1
ABCDEF
1WO#ItemDescriptionQTY in StockLocationExpected
21459855698-RC-04SCREW, 6-32 X 5/16 FLAT, TORX,46B17N 
3169851148999-00-3ASSY, BP/Tx FILTER,333FG2B
418562223045-177BRKT, EXTENSION, TX FILTERA23B18-03-19
51886986359-C6-FC-01ASSY, CABLE, MMCX M STR-SMA12C12D
6169801456823CISCO, ROUTER1D08C04-03-19
TableA
Cell Formulas
RangeFormula
F2{=MIN(IF(TableB!$B$2:$B$9=B2,TableB!$G$2:$G$9))}
Press CTRL+SHIFT+ENTER to enter array formulas.



Book1
ABCDEFG
1PO#Component IDManufacturerRequired by DateQTY OrderedQTY ReceivedTest
2184751456823CISCO19-02-193535 
31848225978-121-CAMacMasters01-03-19252001-03-19
4192011456823CISCO04-03-1920004-03-19
519223223045-177Miller Machine28-02-193030
6196421148999-00-3AD Electrical12-03-19100100
7201011456823CISCO15-03-1915015-03-19
820147223045-177Miller Machine18-03-19301518-03-19
920358223045-177Miller Machine30-03-1915030-03-19
TableB
Cell Formulas
RangeFormula
G2=IF(OR(F2),D2,"")
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,249
Members
452,623
Latest member
Techenthusiast

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top