the first task which I've done is to calculate the 104_A to 203_A. the second one which is complicated is to calculate the cost of P type through its BOM(table2) . the answer should be like this:
ItemNumber
Type
ItemNumber
Q
TotalA/TotalQ
Cost
A100
P
B100
1
4.166667
4.166667
A100
P
B200
2
5.714286
11.42857
A101
P
B100
2
4.166667
8.333333
A101
P
B200
1
5.714286
5.714286
A101
P
B300
3
1.285714
3.857143
my QV and excel files i is attached here, how to tackle this problem?