Share via

Sumproduct function with filter / unfilter

Anonymous
2015-08-28T12:52:57+00:00

I prepared a table and I wrote below mentioned formula for counting the month basis..

=SUMPRODUCT(--(B$6:B$20<>"");--(MONTH(B$6:B$20)=6))

1- I want the formula work when I use filter.

2- I want to add one more criteria in the formula.

I want to count monthly basis and additionally Status basis.

for example ; for  June-2015 , Issue number 4, Closed number 3 and Cancelled 1.

Do you have any idea?

15.6.2015 Closed
18.6.2015 Closed
25.6.2015 Cancelled
26.6.2015 Closed
11.7.2015 Cancelled
17.7.2015 Closed
17.7.2015 Rejected
Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Vijay A. Verma 104.8K Reputation points Volunteer Moderator
2015-08-29T11:13:22+00:00

Though Pivot table is the best approach but in case because of business / design need, you are looking for formula, below is the formula -

=SUMPRODUCT(SUBTOTAL(3,OFFSET(B6,ROW(B6:B20)-ROW(B6),))*(B$6:B$20<>"")*(MONTH(B$6:B$20)=6))

The above formula will give you Total for June month. For applying other criteria, just keep multiplying the criteria. Hence, for example, for Closed ones -

=SUMPRODUCT(SUBTOTAL(3,OFFSET(B6,ROW(B6:B20)-ROW(B6),))*(B$6:B$20<>"")*(MONTH(B$6:B$20)=6)*(C$6:C$20="Closed"))

You can build the same for other criteria also.

Was this answer helpful?

0 comments No comments

Answer accepted by question author

Ashish Mathur 101.9K Reputation points Volunteer Moderator
2015-08-29T00:32:36+00:00

Hi,

Create a Pivot Table.  Dates have been grouped by months.

Here's a screenshot

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2015-09-03T11:54:23+00:00

    Before above mentioned formula, I create Pivot table.

    But I couldn't filtered the dates as month. Dates mentioned as "15.08.2015" in my data. When I created the pivot table, rows or coloumns contains the dates as mentioned in data source.

    I attached the screen shot

    Was this answer helpful?

    0 comments No comments