Lookup Function Help

Jfeijoo

New Member
Joined
Jan 23, 2023
Messages
8
Office Version
  1. 365
Platform
  1. Windows
For Item X on table '6' look for the order number for that item on table '7', where the quantity for the order/item on table '7' is greater than or equal to the quantity on table '6'. Once that criteria is met return the order number associated. Once an order number is used in "Order # to fill" column needs to pull the next order after which meets the criteria.

Table 6 - Unavailable
Order NumberItem NumberRequest DateTotalOrder # to fill
1128675AA
7/15/2023​
3
1128675BB
7/15/2023​
1
1128675CC
7/15/2023​
4
1128979DD
7/7/2023​
2
1128979CC
7/7/2023​
2
1136911BB
8/7/2023​
5
1136911AA
8/7/2023​
3
1136911BB
8/7/2023​
2
1136911CC
8/7/2023​
3
1136911AA
8/7/2023​
4
1136911AA
8/7/2023​
3
1136911AA
8/7/2023​
3
1136911DD
8/7/2023​
2
1138934BB
7/7/2023​
2
1138934CC
7/7/2023​
3

Table 7 - Available
Item NumberOrder NumberRequest DateTotal
BB1156793
8/14/2023​
1
AA1156793
8/14/2023​
1
CC1145608
8/14/2023​
3
AA1156127
8/11/2023​
2
AA1156126
8/11/2023​
2
BB1156069
8/11/2023​
6
CC1156091
8/11/2023​
5
DD1156074
8/11/2023​
3
DD1156073
8/11/2023​
2
AA1156022
8/11/2023​
3
AA1156020
8/11/2023​
2
BB1156019
8/11/2023​
1
CC1156013
8/11/2023​
3
CC1156425
8/11/2023​
1
AA1156129
8/11/2023​
2
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Can you provide the expected results based on the sample data?
 
Upvote 0

Forum statistics

Threads
1,215,254
Messages
6,123,893
Members
449,132
Latest member
Rosie14

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