Index / Match / lookup to give the 1st, 2nd, 3rd, etc value from a list

russthedutch

New Member
Joined
Jan 16, 2015
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hello,

I'm really struggling with this one. I have a dataset which lists item barcodes and then a bunch of storage slots in warehouse where these items live, and will be picked from. I need to build a manual pick sheet for contingency which we can extract the data, dump into a template and give locations to pick from. Here is an example of my dataset. (sorry its a bit out of line)

Barcode Qty Req Plt Qty EAN Pick From Pick Qty
111111 30 10 111111 Slot 1 10
222222 20 10 111111 Slot 2 10
333333 50 10 111111 Slot 3 10
444444 8 2 222222 Slot 4 10
555555 30 15 222222 Slot 5 10
666666 15 15 333333 Slot 6 10
777777 27 9 333333 Slot 7 10
333333 Slot 8 10
333333 Slot 9 10
333333 Slot 10 10
444444 Slot 11 2
444444 Slot 12 2
444444 Slot 13 2
444444 Slot 14 2
555555 Slot 15 15
555555 Slot 16 15
666666 Slot 17 15
777777 Slot 18 9
777777 Slot 19 9
777777 Slot 20 9

So, the first three columns list what items need to be picked, and the quantities that are required. The other three columns are my desired outcome.

Basically if item 111111 requires 30 to be picked, I would like a formula to find all slots related to the item, look at the pallet qty, in this case 10, and then pick one pallet from slot 1, then if the total required has not yet been reached, move to slot 2, then slot 3 until the total amount to pick has been reached. Then move to the next item code 222222.

I'm really puzzled with this one. Usually I can work these things out, but this one I can't. The objective is to reduce the amount of time it takes to prepare a manual pick sheet, so ideally, I'd like to populate a template and let a formula do its work, without manual copy/paste which can result in errors.

Thanks,

Russ
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,215,701
Messages
6,126,289
Members
449,308
Latest member
VerifiedBleachersAttendee

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