2D lookup with multiple results

mick0005

Active Member
Joined
Feb 21, 2011
Messages
406
Hi all - long time listener, first time caller. Just kidding, I used to be active around here a few years ago and do my best to answer questions when I could in my spare time; I enjoyed it. I've been in a role that used excel a lot less so haven't been on in awhile.

I am trying to return multiple results from a 2d lookup. I've managed to get a single result using an array formula to do a 2 dimensional matrix lookup successfully, however, I have multiple results I am looking for and can't figure that out.

What I have here is a shipping schedule. I have a many columns (H-BZ) on the "Production Shipping Plannin" wksht that captures the quantities shipping within each container by date for a given item. It is possible (and certain for many items) that there are multiple containers shipping on the same date for the same item and these will appear on multiple columns. I need a way to capture the aggregate quantity shipped by item, by container, by date to aggregate inbound by date (column D) in order to compare to our demand. Ultimately, I am looking to compare total demand by date to total inbound by date.

The results should go on the "Automated Requirements" wksht in the highlighted area. The multiple results can go horizontally across the various container locations (1-10).

https://www.dropbox.com/s/lsnxr8m0q5raoie/Build Plan POC_PUB.xlsx?dl=0

Thanks for your help!!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hi everyone, I managed to figure out a portion of my problem. Answer for that is at the end of this post. However, now I have a new challenge related to this, and I guess I still consider it a 2D lookup with multiple results, but its not the same kind of 2D lookup I am used to seeing done.

In my image, I have put a border around the ranges I need to evaluate for criteria and I have highlighted in yellow the range that will get the results from. Basically I need to evaluate a vertical list of Items, find the corresponding columns where that item has a value >0 (or not blank), evaluate the date for that column against a date cell I will use as criteria, and then return the container number that that item has a quantity for. Brownie points would be awarded if you could also result in the corresponding qty on the shipment for that container (in this example, 132 and 2880 are the shipment volumes for various items).


Screenshot%202018-11-02%2013.42.52.png


The formula I used to get me the TOTAL shipping qty by Item and Date was this array formula
Code:
=SUMPRODUCT(('Shipping Schedule'!$A$9:$A$69='PN (1)'!$B$1)*('Shipping Schedule'!$N$6:$AX$6='PN (1)'!$A11)*'Shipping Schedule'!$N$9:$AX$69)
Screenshot%202018-11-02%2013.39.59.png
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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