Is this possible? Help please

steve17

New Member
Joined
Sep 25, 2013
Messages
10
Hi

Not sure if this is possible or not.
I have a tab with data called 'WOR' and a second tab called 'SHORTAGE' as shown below.
What I need is a formula that gives the output shown in green.

What it needs to do is look at the part number called up in column B (note there may be many different ones but I've shown just one for simplicity). Find how many are needed and when on the 'SHORTAGE' tab (in this case it's 100off, 500off and 600off for the 23/08, 28/08 and 17/09 respectively). On the 'WOR' tab the first available work order is 881234 (based on its due date) for 150off. Because I need 1200 in total I will need all of the 150off with a date of 23/08/14 to ensure I fulfil the 100off needed for then. This needs to be repeated until the 1200 have been fulfilled. In this instance the last work order (884567) is not needed so the quantity required is zero and if zero is shown the date column should just read 'stock'.

Hope that makes sense,
Thanks in advance
Steve


ON A TAB CALLED 'WOR'
WORK ORDER #PART #WORK ORDER QTYWORK ORDER DUE DATEQTY REQDDATE REQD
881234B1234515025/08/1415023/08/14
882345B1234550028/08/1450028/08/14
883456B1234580012/09/1455017/09/14
884567B1234580017/09/140STOCK
ON A TAB CALLED 'SHORTAGE'
PART #QTY REQDDATE REQD
B1234510023/08/14
B2345620025/08/14
B3456720026/08/14
B1234550028/08/14
B2345620029/08/14
B1234560017/09/14

<tbody>
</tbody>
 

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)
why 100 needed by 23/8/14 because you REQUIRE 150 by 25/8/14

Sorry the 'shortage' tab could really be called 'requirements'.

I needed 100 by the 23/08, another 500 by the 28/08 and another 600 by the 17/09.

As each work order completes quite quickly I'm only interested in the earliest date I need that work order to complete, and then an indication of whether I need the full quantity.

Not sure if that makes sense..
 
Upvote 0
do u have 50 in stock already then?

No, none in stock.
The first w/o (881234) for 150off will supply 100off needed on the 23/08 and 50off towards the 500 needed on the 28/08. It's the earliest date required (23/08) that I then want to show. Full quantity (150off) is needed though, just in two different time frames...
 
Upvote 0

Forum statistics

Threads
1,214,386
Messages
6,119,216
Members
448,876
Latest member
Solitario

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