I am using a COUNTIFS function to compare forecast data from a customer (Sorted AC Forecast) with our current orders (Stock & Forecast).
=COUNTIFS('Sorted AC Forecast'!$A:$A;'Stock & Forecast'!$B5;'Sorted AC Forecast'!$B:$B;'Stock & Forecast'!H$3;'Sorted AC Forecast'!$C:$C;"FUTURE NEEDS")
I basically check for matches from the customer's spreadsheet for the following: 1. Model Number, 2. Delivery Week, 3. Order Type. So, if the model number in B5 in my spreadsheet is found in the customers' data, if the delivery week specified in H3 is found in the customers' data, and if order type matches, the match is counted.
The issue I am facing now is that our customer changed the format of their datasheet; it now includes a "Quantity" category. That means that I need to incorporate the quantity, for instance if COUNTIF counts 2 matches and the quantity field reads 1 and 4 respectively, I need it to return 5.
I have attached some links to pictures of the two sheets to try and make the issue clearer.
http://i.stack.imgur.com/NqQeN.jpg
http://i.stack.imgur.com/z3ZGz.jpg
Any suggestions? I've tried using a macro to print out 3 duplicate rows if the quantity is specified as 3, only its slow and doesn't work very well.