I am using an Excel 2007 spreadsheet where I would like to use the countif function to count values in rows if they meet certain criteria. The challenge is I also need to filter that data and the count only counts visible values. On a posting on the site, the following equation was offered - This workds great. The challenge is this only looks at one column.
=(SUMPRODUCT(SUBTOTAL(3,OFFSET($G$2,ROW($G$2:$G$7)-ROW($G$2),0)),($G$2:$G$7=H10)+0))
In a simplified form, my data is as follows. The above equation counts the number of occurances in the value column when filtered, but the first column dictates how many of those there are. The equation only counts each as a single value, where they must be multiplied by the first column. For example there are 3 2355's not just one.
The question is how can I alter the above equation to look for the volume of the value and take that in to consideration when counting?
Volume Value
3 2355
2 6433
1 2346
6 6433
3 3463
2 6433
Bookmarks