I'm working on a project and I need your help
I need Vba code to Auto filter and count items based on multiple columns
For example I have
So the result should be
And so on for all the range
I tried Auto filter then select case code for the filltered data And worked but only for another view not the one I'm looking for And the resulted from select case was as below
Appreciate your support please to get the filtered data as this mode




Since your expected result is confusing (if compare with the data in your picture), I an not so sure what kind of result that you expected.
Anyway, below is a lazy code which create a pivot table based on the data which looks like the one in your picture. After that, it's just a copy paste process.
It assumes that your data is in sheet1,
starts from cell A1 with six column header (cell A1 to F1),
and there's nothing at all to the left after column F.