I give up !
I tried a lot to have a common formula to take care of multiple conditions which will produce the desired result but I failed miserably and thought of trying some luck here if anyone can guide me in this. File attached.
Setup
Raw data is in "Data" Sheet
Filters are placed in range C3:E4
Formulas needed in range D7:E18
Criteria
1. When all three filters has values as NA: range D7:E18 should show an overall total - This was very simple and is done already. I am struggling with the remaining three conditions.
2. When Year is selected keeping Month and Date value as NA: range D7:E18 should fill up with count only for selected year. Month and Date filter would then be unavailable. This will show yearly report.
3. When Year and Month are selected keeping Date value as NA: range D7:E18 should fill up with count only for selected month and year. This will show monthly report.
4. When Year, Month and Date all filters are selected: range D7:E18 should fill up with count only for that selected date. This will show daily report.
Appreciate some help. Thanks.
EDIT: I can achieve this with a pivot but I dont need that for some reasons known only to me. I need to work on this report furher after achieving the desired result.
Bookmarks