You could concatenate the store and category to create a unique ID for each combination.
So, if your stores are in column A and the categories are in column B you could have another column with the formula:
=A2&”¦”&B2
which would give the combination of store and category A a unique ID, e.g.:
Store1¦A
Store1¦B
Store1¦C
Store2¦A
Store2¦B
etc
Then you can use the ID field to do a V or HLOOKUP to your list of store grades.
Alternatively, you can do a SUMIFS to get the sum from the “qty required” sheet on a combination of product categrory and grade.
.
.
.
.
As I’m typing I think I’m getting a clearer idea of what you want and what you’ve got.
So, one worksheet is “Quantity required”. You’ve got three columns A:”Product Category”, B:”Store Grade”, c:”Qty Required”.
A second worksheet is “Stores”. This has three columns again: A:”StoreID”, b:”Product Category”, c:”Grade”.
You want to add a fourth column to the Stores sheet showing what quantity of items should be ordered for each combination of store and category? Is that about right?
So, you could definitely use a sumifs:
=SUMIFS(‘Quantity Required’!C:C,’Quantity Required’!A:A,Stores!B2,’Quantity Required’!B:B,Stores!C2)
edit: You posted the doc while I was typing!