Hi People,
This is a great community and I have seen some really good answers to questions.. so thanks in advance.
I have the following workbook -:
Sheet1:
Date : ItemName : Qty
01/01/2012 ItemA 7
02/01/2012 ItemA 6
02/01/2012 ItemB 8
02/01/2012 ItemA 7
03/01/2012 ItemA 7
Sheet2:
Cell A1 = 20
Cell A2 = ItemA
Cell A3 = 01/01/2012
Cell A4 = 03/01/2012
I want to sum the quantity column in Sheet 1 until the total reaches the goal value of 20 (cell reference A1 IN SHEET2) and then return the row number where it reaches or crosses 20. The sum should be applied only for ItemA (cell reference A2 in sheet2) and only between the dates of 01/01/2012 and 03/01/2012 (cell reference A3 and AR in Sheet2), all records for other dates and other items should be excluded.
So, In the above example, formula should evaluate to "5", which is the 5th row.
I came very close to getting the solution I need in this post -:
http://chandoo.org/forums/topic/sum-...column-counted
Only issue is, I cant really filter records in the above solution.
I reallly hope someone can help and thanks a ton.
Rgds
Bookmarks