I have the formula below that looks at a table of transactions, which show
stock movements by date by location. The formula shown gives me total
purchases for a Product Code that is detailed within H6, within the table
concerned for the location 'London'
What I also want to achieve is to detail the closing Stock for this
particular product also for 'London'. My problem is that say if the table
shows all transaction between 11/04/05 and 17/04/05 (I show 7 days at a time
because my table is big) and Product H6 has no transactions on the 17/04/05
i.e. only for the 6 days to 16/04/05 I need a flexible formula that can say
look at the 'MAX' date between two date Ranges for that Product and Location
(I do have the dates shown in Cells AA1 and AA2 - Start and End dates) and
return the value within the Named Range "Closing_Stock", whether that is
Zero or 100 etc
Thanks
=SUMPRODUCT((StoreNo="London")*(Inventory_No=$H$6),(Purchases))/10
Bookmarks