Hi All,
I currently have a spreadsheet which sums a Complaint_Count based on three conditions. (Date, Complaint_Description & DailyFilter) This data is kept on a RawData tab where it is sorted by Date.
I'm able to sum them using SumProduct and that works fine, however it was taking a while to sum due to the size of the data. (I'd used named ranges, etc) So what I then did was to use a match query to locate the data within the RawData tab to produce a range where it is (e.g 1/7/2012 starts on row 7900 and finishes on 8000) This coupled with an Offset query sped up my worksheet but have since found out it is a volitile function.
I would like to be able to do exactly the same thing but without using the Offset. I have heard that I may be able to use Index instead? But am not sure. My current formula I have is as follows:
Cell Q10: =MATCH(Q12,RawData!$G:$G,0) - This finds the first row
Cell Q11: =MATCH(Q12,RawData!$G:$G) - This finds the last row
Cell Q14: =SUMPRODUCT(--(OFFSET(RawData!$E$1,Q$10-1,0,Q$11-Q$10+1,1)=$C14),--(OFFSET(RawData!$P$1,Q$10-1,0,Q$11-Q$10+1,1)=$AT$5),--(OFFSET(RawData!$O$1,Q$10-1,0,Q$11-Q$10+1,1)))
Cell Q12: This has the date I want to filter by.
Cell C14: This is the Complaint_Description which is in column E:E of RawData
Cell AT5: This is the DailyFilter which is in column P:P of RawData
Column O:O of RawData has Complaint_Count which is the field I'm summing.
Unfortunately I can't use any array formulas as I have merged cells(!) and I can't change the layout. If there is any vital information I have missed please let me know and I will try my best to answer!
Thanks, Sam
(sorry for the essay!)
Bookmarks