I have a table in Excel that represents the purchase orders. Ex:
pedido | linea ped. | estado línea
-----------------------------------
1 | 1 | Cumplido
1 | 2 | En progreso
2 | 1 | Cumplido
And I need to add a column that is calculated automatically, through formulas, the status of the order:
pedido | línea ped. | estado línea | estado pedido
-------------------------------------------------------
1 | 1 | Cumplido | En progreso
1 | 2 | En progreso | En progreso
2 | 3 | Cumplido | Cumplido
In the case of example, the order 1 has the states Met and In progress (for lines 1 and 2 respectively) . In other words, one part of the order arrived and the other did not. I need the order status column to condense that information and tell me that it is still In progress (since one of the materials has not yet arrived.) In the case of the 2 order, It only has one line (a material), which was already complied, so the status of the entire order was fulfilled.
When the line 2 of the order 1 arrives, I'll say that it's Met and, in that case, the status of the entire order should pass a Met (since both lines are already fulfilled).
Ideally I would like to be able to add the column in the same table, but if it can not be, it could be in a separate one.