We have data sets on three seperate sheets within Excel
We have a ORDER STATUS (Sheet named STATUS). The STATUS sheet contains all the order numbers as unique values.
Order Numbers (Sheet named ON) which can contain one or more ITEM
We have a list of STOCK (Sheet name STOCK)
I want to be able to PASTE the orders number from STATUS in a new Sheet and produce headings like this. I also want the formula to return multiple values if the ORDER NUMBER has more than one material.
For the work to be completed we need stock of all the ITEM. Anything with a 0 value means we cannot complete the work for that ORDER NUMBER.
In the example below 40002160 has 0 stock so we cannot complete.
If STOCK is greater than 0 then it should return YES
We have a ORDER STATUS (Sheet named STATUS). The STATUS sheet contains all the order numbers as unique values.
ORDER NUMBER | STATUS | AREA | COMMENTS |
100103637 | WSCH | UNDER PREPARATION | INVESTIGATE |
100000483 | WSCH | UNDER PREPARATION | SEND |
100180611 | SCH | UNDER PREPARATION | SEND |
100226506 | WSCH | UNDER PREPARATION | INVESTIGATE |
Order Numbers (Sheet named ON) which can contain one or more ITEM
ORDER NUMBER | ITEM |
100001575 | 11133628 |
100009849 | 40006676 |
100009849 | 40006833 |
100018330 | 11170308 |
100018330 | 40006398 |
100018855 | 40013378 |
100018855 | 11033495 |
100020763 | 40002159 |
100020763 | 40002160 |
100020763 | 40002161 |
100020763 | 40002162 |
We have a list of STOCK (Sheet name STOCK)
ITEM | DESC | STOCK |
40002159 | SEAL | 17 |
40002160 | ORING | 0 |
40002161 | ORING | 37 |
40002162 | ORING | 16 |
11170308 | GLOBE | 0 |
40006398 | GSKT | 379 |
40013378 | GSKT | 25 |
11033495 | PIPE CLAMP | 4 |
I want to be able to PASTE the orders number from STATUS in a new Sheet and produce headings like this. I also want the formula to return multiple values if the ORDER NUMBER has more than one material.
For the work to be completed we need stock of all the ITEM. Anything with a 0 value means we cannot complete the work for that ORDER NUMBER.
In the example below 40002160 has 0 stock so we cannot complete.
PASTE ORDER NUMBER *Paste in CELL A2* | STATUS | AREA | COMMENT | ITEM | DESC | STOCK | CAN COMPLETE ORDER |
100020763 | WSCH | UNDER PREPARATION | INVESTIGATE | 40002159 | SEAL | 17 | NO |
100020763 | WSCH | UNDER PREPARATION | INVESTIGATE | 40002160 | ORING | 0 | NO |
100020763 | WSCH | UNDER PREPARATION | INVESTIGATE | 40002161 | ORING | 37 | NO |
100020763 | WSCH | UNDER PREPARATION | INVESTIGATE | 40002162 | ORING | 16 | NO |
If STOCK is greater than 0 then it should return YES