Try this formula in C4 for the most frequent product
=INDEX(B7:B140,MODE(IF(SUBTOTAL(3,OFFSET(B7,ROW(B7:B140)-ROW(B7),,)),MATCH(B7:B140,B7:B140,0))))
This is an "array formula" which needs to be confirmed with CTRL+SHIFT+ENTER so that curly braces like { and } appear around the formula in the formula bar
Now in D4 for the number.....
=SUMPRODUCT(SUBTOTAL(3,OFFSET(B7,ROW(B7:B140)-ROW(B7),,)),--(B7:B140=C4))
Bookmarks