Hello,
I am trying to automate some order forms. Product Sheet is a list of products and quantities. Product-Parts Sheet shows which parts and quantities are needed for each product. I would like for the Parts Order Sheet to calculate the number of each part I need to order based on the product quantity and part quantity per product. Products have multiple parts and parts can be in multiple products.
What I need my formula to return is the following:
(quantity of p1 for product A) * (quantity of Product A) +
(quantity of p1 for product B) * (quantity of Product B) +
(quantity of p1 for product C) * (quantity of Product C) +
(quantity of p1 for product D) * (quantity of Product D) +
and so on for all values matching (p1)
It seems like it might be a nested VLOOKUP function?
Product Sheet
Product Quantity
A 2
B 5
C 3
D 8
Product-Parts Sheet
Product Part Quantity
A p1 1
A p2 2
A p3 1
B p1 2
B p3 1
C p3 1
C p4 3
C p5 2
D p2 1
Parts Order Sheet
part part quantity
p1 12
p2 12
p3 10
p4 9
p5 6
Bookmarks